body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f0f0f0;
}

#calendar-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.year-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.year-nav h1 {
    margin: 0 20px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.month {
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: center;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.month:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.month h2, .month h3 {
    margin-top: 0;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #e0e0e0;
    padding: 5px;
    text-align: center;
}

th {
    background-color: #f8f8f8;
    color: #333;
}

.sat {
    background-color: #e6f3ff;
    color: #0066cc;
}

.sun, .holiday {
    background-color: #fff0f0;
    color: #cc0000;
}

.holiday .date {
    font-weight: bold;
}

.holiday-name {
    font-size: 0.8em;
    color: #666;
}

.holiday {
    background-color: #ffcccc;
    color: #ff0000;
}

td.past {
    background-color: #f0f0f0;
    color: #bbb;
}

.single-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.single-month table {
    width: 100%;
    height: 70vh;
    table-layout: fixed;
}

.single-month td {
    height: calc(70vh / 6);
    vertical-align: top;
}

.single-month .date {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-buttons {
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.today-month-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #2196F3;
}

.today-month-btn:hover {
    background-color: #1976D2;
}

.today {
    background-color: #ffffc0;
    font-weight: bold;
}

.adjacent-months {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.adjacent-months .month {
    width: 100%;
    margin-bottom: 20px;
}

.adjacent-months table {
    width: 100%;
    height: 16.67vh;
    table-layout: fixed;
}

.adjacent-months td {
    height: calc(16.67vh / 6);
    vertical-align: top;
    font-size: 0.8em;
    padding: 2px;
}

.adjacent-months .date {
    font-size: 1em;
    font-weight: bold;
}

.adjacent-months .holiday-name {
    font-size: 0.7em;
}

.adjacent-months h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}
