* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

html, body {
    height: 100%;
    width: 100%;
}

.calendar-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90vw; /* Expand width to 90% of viewport width */
    max-width: 900px; /* Set a max width to avoid too much stretching */
    height: 90vh; /* Expand height to 90% of viewport height */
    max-height: 700px; /* Set a max height to avoid too much stretching */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-header button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.calendar-header button:hover {
    background-color: #0056b3;
}

#month-year {
    font-size: 24px;
    font-weight: bold;
}

table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    text-align: center;
    table-layout: fixed; /* Makes cells responsive and equal */
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
}

thead th {
    background-color: #007bff;
    color: white;
    font-size: 18px;
}

tbody td {
    background-color: #f9f9f9;
}

tbody td:hover {
    background-color: #007bff;
    color: white;
    cursor: pointer;
}
