* {
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
}

.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-header a {
    color: #333;
    text-decoration: none;
    border: 1px solid black;
    border-radius: 10px;
    padding: 1%;
}

.calendar-title {
    text-align: center;
}

.calendar-title h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.current-date {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #666;
}

.nav-button {
    padding: 10px 16px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background-color: #2563eb;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.calendar-table th {
    padding: 12px;
    background-color: #1f2937;
    color: white;
    border: 1px solid #374151;
    font-weight: 600;
}

.calendar-day {
    padding: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    vertical-align: top;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 60px;
}

.calendar-day:hover {
    background-color: #eff6ff;
}

.calendar-day.empty {
    background-color: #f9fafb;
    cursor: default;
}

.calendar-day.empty:hover {
    background-color: #f9fafb;
}

.calendar-day.today {
    background-color: #3b82f6;
    color: white;
    font-weight: bold;
}

.calendar-day.today:hover {
    background-color: #2563eb;
}

.event {
    background-color: #8080f0 !important;
}

.event:hover {
    background-color: #808080;
}


.calendar-day div {
    font-size: 14px;
}


.contextMenu {
    border: 2px solid black;
    background: white;
    padding: 0.3em;
}

.contextMenu h1 {
    padding: 0;
    margin: 0;
}

.contextMenu button {
    border: none;
    background: transparent;
}

.contextMenu a {
    color: black;
    text-decoration: none;
}

a.button {
    color: black;
    text-decoration: none;
    appearance: button;
}

button {
    border-radius: 10px;
    padding: 0.1em 0.6em;

    transition: all 0.3s ease
}

button:hover {
    transform: scale(1.2);
}


h5 {
    white-space: pre-line;
}

@media only screen and (max-width: 600px) {
    body {
        padding: 8px;
    }

    .calendar-container {
        padding: 12px;
        border-radius: 4px;
    }

    .calendar-header {
        margin-bottom: 12px;
    }

    .calendar-title h2 {
        font-size: 16px;
    }

    .current-date {
        font-size: 11px;
    }

    .nav-button {
        padding: 6px 10px;
        font-size: 12px;
    }

    .calendar-table th {
        padding: 6px 2px;
        font-size: 11px;
    }

    .calendar-day {
        padding: 4px 2px;
        height: 44px;
        font-size: 12px;
    }

    .calendar-day div {
        font-size: 11px;
    }

    .contextMenu {
        font-size: 13px;
        padding: 0.5em;
        max-width: 85vw;
    }

    .contextMenu h1 {
        font-size: 16px;
    }

    h5 {
        font-size: 12px;
    }

    a.button {
        font-size: 12px;
        padding: 4px 8px;
    }
}