/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6; /* Lighter grey */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align top for longer content */
    min-height: 100vh;
    margin: 0;
    padding: 30px 15px; /* Add padding top/bottom */
    box-sizing: border-box;
}

/* Main Content Container */
.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 700px; /* Slightly wider */
    width: 100%;
    animation: fadeInContainer 0.8s ease-out forwards; /* Add fade-in animation */
    opacity: 0; /* Start hidden for animation */
}

/* Fade-in Animation */
@keyframes fadeInContainer {
    to {
        opacity: 1;
    }
}

h1 {
    color: #2a7de1; /* Slightly different blue */
    margin-bottom: 25px;
}

/* Section Styling */
.age-section, .quote-section, .calendar-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e8eaed; /* Lighter border */
}

.age-section p {
    font-size: 1.1em;
    margin: 5px 0;
    color: #5f6368; /* Google Grey */
}
.age-section p:first-of-type {
    font-style: italic; /* Italicize the "Calculating..." text */
}


#age {
    font-weight: 600; /* Bolder */
    font-size: 1.4em;
    color: #e67e22; /* Orange color */
}

.quote-section h2, .calendar-section h2 {
    color: #3c4043; /* Darker grey */
    margin-bottom: 15px;
}

#daily-quote {
    font-style: italic;
    color: #5f6368;
    line-height: 1.5;
    min-height: 3em;
    padding: 0 10px; /* Add some horizontal padding */
}

/* Calendar Specific Styling */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px; /* Add padding */
}

#month-year {
    font-weight: 600; /* Bolder */
    font-size: 1.3em;
    color: #3c4043;
}

button {
    padding: 10px 18px; /* Larger buttons */
    background-color: #2a7de1;
    color: white;
    border: none;
    border-radius: 8px; /* More rounded */
    cursor: pointer;
    font-size: 1em; /* Slightly larger font */
    transition: background-color 0.2s ease, transform 0.1s ease; /* Add transitions */
}

button:hover {
    background-color: #1b6ec2; /* Darker blue on hover */
    transform: translateY(-1px); /* Slight lift on hover */
}

button:active {
    transform: translateY(0px); /* Push down on click */
}


#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px; /* Increase gap */
    margin-top: 15px;
    transition: opacity 0.3s ease-in-out; /* Transition for fade effect */
}

/* Animation Classes */
.calendar-grid.fade-out {
    opacity: 0;
}

.calendar-header,
.calendar-day {
    padding: 10px 5px; /* Adjust padding */
    text-align: center;
    border-radius: 6px; /* Rounded corners for days */
    font-size: 0.95em;
    transition: background-color 0.2s ease, transform 0.15s ease; /* Hover transition */
}

.calendar-header {
    font-weight: 600; /* Bolder */
    color: #5f6368;
    background-color: transparent; /* No background */
    border-bottom: 1px solid #e8eaed; /* Underline headers */
    padding-bottom: 8px;
    margin-bottom: 5px;
}

.calendar-day {
    background-color: #f8f9fa;
    color: #3c4043;
    cursor: default; /* Default cursor */
    min-height: 25px; /* Ensure height */
    display: flex; /* Center number vertically */
    align-items: center;
    justify-content: center;
}

.calendar-day:not(.empty):not(.today):hover {
    background-color: #e8eaed; /* Light grey hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
    cursor: pointer; /* Pointer on hoverable days */
}


.calendar-day.empty {
    background-color: transparent;
    pointer-events: none; /* Make empty cells non-interactive */
}

.calendar-day.weekend:not(.empty) {
    background-color: #f1f3f4; /* Slightly different background for weekend days */
    color: #5f6368; /* Slightly lighter text */
}

.calendar-day.today {
    background-color: #2a7de1; /* Blue background */
    color: white; /* White text */
    font-weight: 700; /* Boldest */
    border: 1px solid #1b6ec2; /* Add a border */
    transform: scale(1.05); /* Make today slightly larger */
}

.calendar-day.today:hover {
     background-color: #1b6ec2; /* Darker blue on hover */
     transform: scale(1.08);
}