/* Overall Page Styles */
body {
    font-family: 'Merriweather', 'Playfair Display', serif;
    margin: 20px;
    background: linear-gradient(135deg, #f0f4f8, #dbe7f1);
}

/* Main Title Styling */
h1 {
    font-size: 42px;
    color: #0d7dd4;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    animation: titleFadeIn 1s ease-in-out;
}

/* Input Group Styling */
.input-group {
    margin-bottom: 20px;
    animation: fadeInSlideUp 1.5s ease-in-out;
}

label, input, select {
    display: block;
    margin-bottom: 12px;
    width: 100%;
    max-width: 350px;
    font-size: 18px;
}

/* Specific styling for numerator and denominator fields to have blue borders */
#numerator1, #denominator1, #numerator2, #denominator2 {
    border: 2px solid #0d7dd4; /* Blue border */
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

input:focus, select:focus {
    outline: none;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.03);
}

/* Enhanced Button Styles */
button {
    cursor: pointer;
    background: linear-gradient(135deg, #0d7dd4, #0b6fbb);
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.15);
}

button:hover {
    background: linear-gradient(135deg, #0b6fbb, #095a9f);
    transform: scale(1.08);
    box-shadow: 0px 7px 16px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.95);
}

/* Button Group Styles */
.button-group {
    display: flex;
    justify-content: space-between;
    max-width: 350px;
    margin: auto;
}

.button-group button {
    width: 48%;
}

/* Results Container with Enhanced Animation */
#results {
    display: none;
    padding: 25px;
    border-radius: 15px;
    background-color: #ffffff;
    border: 2px solid #0d7dd4;
    margin-top: 25px;
    box-shadow: 0px 8px 22px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#results.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#stepsContainer {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    animation: fadeInSlideUp 1s ease-in-out;
}
