body {
  margin: 0;
  font-family: Arial, sans-serif;
  padding: 0px;
  background: #f5f5f5;
}

/* ESTILOS DO HEADER E SECTION */

@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

body {
  align-items: center;
  justify-content: center;
}

header {
  min-height: 80px;
  max-width: 100%;
  background-color: #ffffff;
  padding: 10px 20px;
  display: flex; /* Usa Flexbox para organizar a logomarca e a navegação */
  justify-content: center; /* Distribui espaço entre a logomarca e a navegação */
  align-items: center; /* Alinha os itens verticalmente */
  gap: 50%;
  /*border: 1px solid #17337f; 
  border-radius: 8px;*/
  border-bottom: 2px solid #17337f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
  width: 150px; /* Ajuste a largura da logomarca */
}

nav ul {
  list-style: none; /* Remove os marcadores de lista */
  margin: 0;
  padding: 0;
  display: flex; /* Usa Flexbox para organizar os itens da navegação */
}

nav li {
  margin-left: 20px; /* Adiciona espaçamento entre os itens */
}

nav a {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 20px;
  text-decoration: none; /* Remove a sublinhado dos links */
  color: #333; /* Define a cor do texto */
  transition: 0.3s;
}

nav a:hover {
  color: blue;
}

section {
  max-width: 60%;
  margin: 20px; /* Adiciona margem ao redor da seção */
  padding: 15px; /* Adiciona espaço interno na seção */
  /*border: 1px solid #ccc;*/ /* Adiciona uma borda leve */
  text-align: center;
  justify-content: center;
  margin: 0 auto;
  margin-top: 20px;
}

.title {
  font-family: "Raleway", sans-serif;
  font-size: 30px;
}

h1 {
  font-family: "Raleway", sans-serif;
  font-size: 24px; /* Define o tamanho da fonte do título */
  color: #17337f; /* Define a cor do texto do título */
  margin-bottom: 10px; /* Adiciona espaço abaixo do título */
}

h3 {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 20px;
  color: #333;
}

p {
  font-family: "Raleway", sans-serif;
  font-size: 18px; /* Define o tamanho da fonte do texto */
  line-height: 1.4; /* Define o espaçamento entre as linhas */
  text-align: center;
}

/* ESTILOS DA CALCULADORA DE FORMULAS MÉDICAS versão 3.0  */

.container {
  max-width: 500px;
  margin: auto;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}
h1 {
  text-align: center;
  margin-bottom: 20px;
}
label {
  display: block;
  margin-top: 10px;
}
input,
select {
  width: 100%;
  padding: 8px;
  margin-top: 12px;
  box-sizing: border-box;
}
input {
  outline: none;
  border: 1px solid rgb(128, 128, 128); /* Borda padrão */
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Aplica a transição a borda e sombra */
}

button {
  font-size: 18px;
  width: 100%;
  padding: 15px;
  margin-top: 25px;
  border: none;
  border-radius: 4px;
  background: #007bff;
  color: white;
  cursor: pointer;
}
button:hover {
  background: #0056b3;
}
#result {
  margin-top: 20px;
  text-align: center;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
th,
td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}
th {
  background: #f0f0f0;
}

footer {
  min-height: 40px;
  max-width: 100%;
  background-color: #17337f;
  padding-top: 1px;
  padding-bottom: 2px;
}

.footer {
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  justify-content: center;
}

/* MEDIA QUERY */

@media (max-width: 450px) {
  /* Estilos para telas com no máximo 768px de largura */
  header {
    gap: 18%;
  }
  .title {
    font-size: 26px;
  }
  section {
    max-width: 95%;
  }

  section h3 {
    font-size: 18px;
  }
  section p {
    font-size: 15px;
  }
}

@media (min-width: 769px) {
  /* Estilos para telas com no mínimo 769px de largura */
}
