/* Basic styles for the body and container */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #5159a9;
  color: #0056b3;
  height: 110vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 800px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px 5px rgba(50, 60, 50, 0.702);
  border-radius: 8px;
}

/* Styling for the headings */
h1 {
  text-align: center;
  color: #0056b3;
  font-weight: bolder;
}

/* Responsive grid layout for form and results */
.form-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Make form and result sections full width on smaller screens */
@media (max-width: 600px) {
  .form-result {
    grid-template-columns: 1fr;
  }
}

/* Styling for individual sections */
.checking {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

/* Styling for form labels and inputs */
form p {
  margin: 0 0 20px;
}

label {
  display: inline-block;
  width: 120px;
  font-weight: bold;
  /* color: #333; */
}

input[type="text"] {
  width: calc(100% - 130px);
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

/* Button styling */
button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Styling for results */
#results {
  font-size: 24px;
  font-weight: bold;
  margin-top: -8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive styling for BMI categories section */
.range-info {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

#bmi-categories-heading {
  font-weight: bold;
  margin-bottom: 10px;
}

#bmi-categories p {
  margin: 5px 0;
  font-size: 17px;
}

/* General styling for responsiveness */
@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  label {
    display: block;
    margin-bottom: 5px;
  }

  input[type="text"] {
    width: 100%;
  }

  button {
    width: 100%;
  }
  .container #description {
    display: none;
  }
}

#bmi-out {
  background-color: #11255a;
  padding: 4px 0;
  border-radius: 5px;
  color: #fff;
  border: none;
  font-size: 27px;
  margin-top: -20px;
  width: 8rem;
  text-align: center;
}

#result-head {
  background: #138808;
  text-align: center;
  padding: 10px 10px 5px 10px;
  margin: -20px -20px 0px -20px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
}
span {
  font-weight: bolder;
}
#conclusion {
  font-size: 18px;
  margin-top: 10px;
}

#results p {
  font-size: 22.6px;
}
