@charset "UTF-8";
* {
  margin: 0px;
  padding: 0px;
  text-decoration: none;
  outline: none;
}

body {
  background: rgba(0,51,102,1); 
  background-image: radial-gradient( circle 427px at 51.8% 56.2%,  rgba(0,122,255,1) 0%, rgba(0,51,102,1) 64.4% );
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.container-main {
  display: flex;
  flex-flow: column;
  width: 500px;
  padding: 20px;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.39);
}

.container-main h1 {
  padding: 10px;
  text-align: center;
}

.tabela-imc {
  width: 100%;
  margin: 15px 0;
  border-collapse: collapse;
}

.tabela-imc th, .tabela-imc td {
  padding: 8px 4px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.tabela-imc th {
  font-size: 1.2em;
  padding-bottom: 10px;
}

.form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0px;
  flex-grow: 1;
  font-weight: 600;
}

.form input {
  padding: 12px 8px;
  font-size: 1rem;
  margin: 10px 0px;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form input:focus {
  border-color: #362241;
  box-shadow: 0 0 5px rgba(39, 34, 65, 0.5);
}

#button-submit {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: rgba(0,51,102,1);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 12px 0px;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

#button-submit:hover {
  background-color: rgb(1, 30, 59);
}

#Resultado {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 20px;
  margin-top: 10px;
  border-radius: 5px;
  display: none; 
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  line-height: 1.5;
  transition: all 0.4s ease;
}

#Resultado.visivel {
  display: flex; 
}

.imc-classificacao {
  font-size: 1.3rem;
}

.imc-valor {
  font-size: 2.5rem;
  font-weight: bold;
}


.abaixo {
  background-color: #3498db; 
  color: white;
}
.normal {
  background-color: #2ecc71; 
  color: white;
}
.sobrepeso {
  background-color: #f1c40f; 
  color: #333;
}
.obesidade-1 {
  background-color: #e67e22; 
  color: white;
}
.obesidade-2, .obesidade-3 {
  background-color: #e74c3c; 
  color: white;
}
.invalido {
  background-color: #c0392b; 
  color: white;
}
