/* Gradient Background (Top-Left to Bottom-Right) */
body {
    background: linear-gradient(to bottom right, #4307b5, #8a03b5);
    font-family: Arial, sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Container Styling */
.container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    /* Margin inside the container */
    width: calc(100% - 40px);
    /* Account for 20px margin on both sides */
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: 20px;
    /* Outer margin */
}

/* Heading */
h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    /* 20px margin */
    color: #4307b5;
}

/* Input Group */
.input-group {
    margin-bottom: 20px;
    /* 20px margin */
    text-align: center;
    /* Center-align input fields */
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    /* Half of 20px for better spacing */
    font-size: 1rem;
    color: #333;
}

.input-group input {
    width: 80%;
    /* Adjust width for better centering */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    /* Center-align text inside input */
}

.input-group input:focus {
    outline: none;
    border-color: #8a03b5;
    box-shadow: 0 0 5px rgba(138, 3, 181, 0.5);
}

/* Button Styling */
button {
    width: 80%;
    /* Match input width */
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to bottom right, #4307b5, #8a03b5);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 20px;
    /* 20px margin */
}

button:hover {
    background: linear-gradient(to bottom right, #8a03b5, #4307b5);
}

/* Result Styling */
#result {
    margin-top: 20px;
    /* 20px margin */
}

#result p {
    font-size: 1.2rem;
    margin: 10px 0;
    /* 10px margin for better spacing */
}

#bmiValue,
#bmiCategory {
    font-weight: bold;
    color: #8a03b5;
    /* Highlight color for results */
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        /* Maintain 20px padding */
        width: calc(100% - 40px);
        /* Account for 20px margin on both sides */
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 20px;
        /* 20px margin */
    }

    .input-group input,
    button {
        width: 90%;
        /* Adjust width for smaller screens */
        padding: 10px;
    }
}