/* General body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #2e2e2e; /* Dark grey background */
    color: #e0e0e0; /* Light grey text */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: calc(1vw + 1vh + 0.5rem);
}

/* Dark mode styles */
body.dark-mode {
    background-color: #3b3b3b; /* Dark yellow background */
    color: #ffc500; /* Dark grey text */
}

/* Calendar container styles */
.calendar-container {
    background: #3b3b3b; /* Slightly lighter grey than the body */
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.5); /* Subtle shadow */
    padding: 1.25rem;
    width: 90%;
    max-width: 80%;
    color: #fcc500; /* Dark yellow for contrast */
}

body.dark-mode .calendar-container {
    background: #2e2e2e; /* Dark grey background */
    color: #8e8e8e; /* Light grey text */
    max-width: 80.5%;
}

/* Calendar table styles */
.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar th {
    background: #444444; /* Dark grey header */
    color: #fcc500; /* Dark yellow text */
    padding: 0.625rem;
    text-align: center;
    font-weight: bold;
    border-bottom: 0.125rem solid #fcc500; /* Yellow underline for emphasis */
}

body.dark-mode .calendar th {
    background: #fcc500; /* Dark grey background */
    color: #444444; /* Dark yellow text */
    border-bottom: 0.125rem solid #5e5e5e; /* Light grey underline */
}

.calendar td {
    border: 0.0625rem solid #5e5e5e; /* Mid-tone grey borders */
    height: 6.25rem;
    vertical-align: top;
    padding: 0.3125rem;
    position: relative;
    color: #e0e0e0; /* Light grey text */
}

body.dark-mode .calendar td {
    border: 0.0625rem solid #444444; /* Dark grey borders */
    color: #ffc500; /* Light grey text */
}

/* Event styling */
.event {
    margin-top: 0.3125rem;
    padding: 0.3125rem;
    border-radius: 0.25rem;
    background: #fcc500; /* Dark yellow for events */
    color: #3b3b3b; /* Dark grey text for contrast */
    font-size: 1.125rem;
    text-align: center; /* Center the text */
}

body.dark-mode .event {
    background: #444444; /* Dark grey background */
    color: #fcc500; /* Dark yellow text */
}

/* Highlight today's date */
.calendar td.today {
    background: #555555; /* Medium grey background for today */
    color: #fcc500; /* Dark yellow for emphasis */
    font-weight: bold;
}

body.dark-mode .calendar td.today {
    background: #fcc500; /* Dark grey background */
    color: #3b3b3b; /* Dark yellow text */
}

/* Logo styles */
.logo {
    margin-top: 1.25rem;
    position: fixed;
    bottom: 0.625rem;
    right: 0.625rem;
    width: 6.25rem;
    filter: brightness(0.9); /* Slightly dim logo to match theme */
}

body.dark-mode .logo {
    filter: brightness(1.1); /* Brighten logo for dark mode */
}

/* Current month styling */
.current-month {
    background-color: #4a4a4a; /* Medium grey for the current month */
    color: #fcc500; /* Dark yellow text */
}

body.dark-mode .current-month {
    background-color: #3b3b3b; /* Dark grey background */
    color: #fcc500; /* Dark yellow text */
}

.logo {
    display: block;
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1;
    transition: opacity 0.3s ease-in-out;
}

.logo.hidden {
    opacity: 0; /* Smoothly hide the logo */
    pointer-events: none; /* Prevent interaction while hidden */
}

@media (max-width: 37.5rem) {
    .logo {
        display: none; /* Completely hide on small screens */
    }
}

.month-nav {
    background: none;
    border: none;
    color: #fcc500;
    font-size: 3.75rem;
    cursor: pointer;
    padding: 0 0.625rem;
}

.month-nav:hover {
    color: #666;
}

body.dark-mode .month-nav {
    color: #a78d5b;
}

body.dark-mode .month-nav:hover {
    color: #888;
}

#month-year {
    margin: 0 1.25rem;
}

body.dark-mode #month-year {
    color: #a78d5b;
}

