* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #121212; /* Dark theme */
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 40px;
}

/* Flex container to align form and image side by side */
.wrapper {
  display: flex;
  gap: 30px; /* Space between form and image */
  align-items: center;
  max-width: 900px; /* Max width to prevent stretching */
  width: 100%;
}

/* Form container */
.container {
  background-color: #1e1e1e;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  width: 50%; /* Takes half of the available space */
}

/* Headings */
h1, h2 {
  text-align: center;
  color: #00bcd4;
}

/* Form styling */
form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 12px;
  font-weight: bold;
}

input, select {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #333;
  color: white;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

input[type="submit"], input[type="reset"] {
  flex: 1;
  background-color: #00bcd4;
  color: black;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

input[type="reset"] {
  background-color: #e74c3c;
}

input[type="submit"]:hover, input[type="reset"]:hover {
  opacity: 0.8;
}

/* Result styling */
#result {
  margin-top: 20px;
  font-size: 18px;
  text-align: center;
  color: #00bcd4;
}

/* BMI Chart Styling */
.bmi-chart {
  width: 50%; /* Takes half of the space */
  text-align: center;
}

.bmi-chart img {
  max-width: 100%;
  border: 1px solid #444;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
