/* General Body Styling */
body {
    font-family: 'Merriweather', serif;
    margin: 20px;
    background: linear-gradient(135deg, #f6f9fc, #dff9fb);
}

.calculator-container {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

h1, h2 {
    font-family: "Merriweather", serif;
    font-weight: 900;
}

h1 {
    font-size: 35px;
    color: #0d7dd4;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fade-in 0.8s ease forwards;
}

h2 {
    font-size: 25px;
    color: #0d7dd4;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fade-in 1.2s ease forwards;
}

input, button {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    max-width: 300px;
    padding: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input {
    border: 1px solid #0d7dd4;
    border-radius: 10px;
}

/* Make the "Number of Courses" input field blue on focus and hover */
#numCoursesInput {
    background-color: white;
    border: 1px solid #ccc;  /* Default border color */
    color: #333;
    padding: 10px;
    font-size: 16px;
    border-radius: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#numCoursesInput:hover,
#numCoursesInput:focus {
    border-color: #0d7dd4;  /* Blue border on hover and focus */
    box-shadow: 0 0 5px rgba(13, 125, 212, 0.4);  /* Subtle shadow for emphasis */
    outline: none;
}

button {
    cursor: pointer;
    background-color: #0d7dd4;
    color: white;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(13, 125, 212, 0.4);
    transition: box-shadow 0.3s ease;
}

button:hover {
    background-color: #0b6fbb;
    box-shadow: 0 8px 20px rgba(13, 125, 212, 0.6);
}

#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;
}

#results.show {
    opacity: 1;
    transform: scale(1);
}

/* Animations */
@keyframes fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fade-in 1s ease forwards;
}

.slide-in {
    animation: fade-in 1s ease forwards;
}

.input-group, .button-group {
    opacity: 0;
    transform: translateY(10px);
    animation: fade-in 0.6s ease forwards;
}
