/* General Reset */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 20px;
}

/* Container */
.container {
    background: white;
    max-width: 400px;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Headings */
h2 {
    color: #007BFF;
}

/* Input Fields */
.input-group {
    margin: 10px 0;
    text-align: left;
}

input {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Buttons */
button {
    background: #007BFF;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    margin-bottom: 10px;
}

button:hover {
    background: #0056b3;
}

/* Dark Mode */
.dark-mode {
    background-color: #1e1e1e;
    color: white;
}

.dark-mode .container {
    background: #333;
}

.dark-mode button {
    background: #FF5722;
}

.dark-mode button:hover {
    background: #E64A19;
}

/* Result Box */
#result {
    display: none;  /* Initially hidden */
    opacity: 0;  /* Start with opacity 0 */
    transform: translateY(10px); /* Slight lift effect */
    animation: fadeInSmooth 0.8s ease-out forwards; /* Smooth fade-in */
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: #e0f7fa;
    font-size: 18px;
    font-weight: bold;
    color: #007BFF;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out;
}

/* Keyframes for Smooth Fade-in */
@keyframes fadeInSmooth {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BMI Categories */
.underweight {
    background-color: #ffcc00;
    color: #ffffff;
}

.normal {
    background-color: #4caf50;
    color: #ffffff;
}

.overweight {
    background-color: #ff9800;
    color: #ffffff;
}

.obese1 {
    background-color: #f44336;
    color: #ffffff;
}

.obese2 {
    background-color: #d32f2f;
    color: #ffffff;
}

.obese3 {
    background-color: #b71c1c;
    color: #ffffff;
}

/* Styling for invalid data message */
#result.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
    border-radius: 5px;
}

/* Add margin to the bottom of the result box */
#result {
    margin-bottom: 10px;
}
