/* General body styling */
body {
    font-family: 'Merriweather', 'Playfair Display', serif;
    margin: 20px;
}

h1 {
    font-size: 35px;
    color: #0d7dd4;
    margin-bottom: 20px;
    letter-spacing: 0;
    animation: fadeIn 1s ease-out;
}

h2 {
    color: #0d7dd4;
    margin-bottom: 20px;
    font-size: 20px;
    animation: fadeIn 1s ease-out;
}

div {
    margin-bottom: 15px;
}

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#age, input#weight, input#height, input#neck, input#waist, input#hip {
    border: 1px solid #0d7dd4;
    border-radius: 50px;
    padding: 10px;
    font-size: 16px;
    width: calc(100% - 50px); /* Adjust for dropdown next to input */
}

select {
    padding: 14px;
    font-size: 16px;
    border: 1px solid #0d7dd4;
    box-shadow: none;
    border-radius: 50px;
    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 {
    cursor: pointer;
    background-color: #0d7dd4 !important;
    color: white;
    border: 1px solid #0d7dd4 !important;
    padding: 10px;
    font-size: 16px;
    border-radius: 50px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    background-color: #0b6fbb !important;
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.95);
}

#results {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    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);
}

#results.show {
    opacity: 1;
    transform: scale(1);
}

.button-group {
    display: flex;
    justify-content: space-between;
}

.button-group button {
    width: 48%;
}

.unit-input {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
}

.unit-input input {
    flex: 1;
    margin-right: 10px;
}

.unit-input select {
    flex: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
