/* Font Families */
body {
    font-family: 'Merriweather', 'Playfair Display', serif;
    margin: 20px;
}

/* Main Title */
h1 {
    font-size: 35px;
    color: #0d7dd4;
    margin-bottom: 20px;
    letter-spacing: 0;
    animation: fadeIn 1s ease-out;
}

/* Secondary Title */
h2 {
    color: #0d7dd4;
    margin-bottom: 20px;
    font-size: 20px;
    animation: fadeIn 1s ease-out;
}

div {
    margin-bottom: 15px;
}

/* Input Labels, Fields, and Buttons */
label, input, select, button {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    max-width: 300px;
    animation: slideIn 0.5s ease-out;
}

label {
    color: #000000;
    animation: fadeIn 1s ease-out;
}

input#height, input#weight, input#age {
    border: 1px solid #0d7dd4;
    border-radius: 15px; /* Border radius for round shape */
    padding: 10px;
    font-size: 16px;
}

select {
    padding: 14px;
    font-size: 16px;
    border: 1px solid #0d7dd4;
    box-shadow: none;
    border-radius: 15px; /* Rounded select box */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
}

select:focus {
    border-color: #0d7dd4;
    outline: none;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Button Styles */
button {
    cursor: pointer;
    background-color: #0d7dd4;  /* Blue color */
    color: white;
    border: 1px solid #0d7dd4;
    padding: 10px;
    font-size: 16px;
    border-radius: 15px;  /* Rounded buttons */
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

/* Button Hover State */
button:hover {
    background-color: #0b6fbb;  /* Slightly darker blue */
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Button Focus State */
button:focus {
    background-color: #0d7dd4;  /* Retain blue color on focus */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    outline: none;  /* Remove default focus outline */
}

/* Button Active (Clicked) State */
button:active {
    background-color: #0b6fbb;  /* Slightly darker blue */
    transform: scale(0.95);  /* Shrinking effect on click */
}

/* Results Section */
#results, .results-table-container {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;  /* Rounded corners for result box */
    background-color: #f0fdf9;
    border: 2px solid #0d7dd4;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

/* Show results when active */
#results.show, .results-table-container.show {
    opacity: 1;
    transform: scale(1);
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

/* Table Header and Cell Styling */
th, td {
    padding: 8px 12px;
    border: 1px solid #0d7dd4;
    text-align: center;
    border-radius: 15px; /* Rounded corners for table cells */
}

th {
    background-color: #0d7dd4;
    color: white;
}

td {
    background-color: white;
    color: #333;
}

/* Button Group Styling */
.button-group {
    display: flex;
    justify-content: space-between;
}

.button-group button {
    width: 32%;
}

/* Animation: Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation: Slide In */
@keyframes slideIn {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
