#calendar {
    width: 100%;
}

#calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12pt;
    gap: 12px;
}

#calendar-header button {
    background-color: #7d2128;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    width: 100px;
    font-size: 1.2em;
}

#calendar-header button:active {
    background-color: #32402c;
}


.calendar-month-card {
    background-color: rgba(4, 5, 5, 0.82);
    border: 1px solid rgba(125, 33, 40, 0.45);
    border-radius: 16px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
    padding: 12px 28px;
    min-width: 220px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#month-year {
    font-weight: bold;
    font-size: 16pt;
}

#calendar-weekdays,
#calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    width: 100%;
    background-color: rgba(4, 5, 5, 0.82);
    border: 1px solid rgba(125, 33, 40, 0.45);
    border-radius: 16px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
}

#calendar-days .event .training-event {
    border: #ddd solid 1px;
    font-size: 5pt;
    overflow: hidden;
}

.event a {
    color: white;
    text-decoration: none;
}

#calendar-weekdays {
    background-color: rgba(0, 0, 0, 0.92);
}

#calendar-weekdays div,
#calendar-days div {
    text-align: center;
    padding: 6px;
    border: 0.5px solid #ddd;
    overflow: hidden;
    min-height: 80px;
    font-size: 1.05em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#calendar-weekdays div {
    background-color: rgba(0, 0, 0, 0.92);
    font-weight: 600;
}

#calendar-days .day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 6px;
}

#calendar-days .day-number.current-day {
    background-color: #7d2128;
    color: #ffffff;
}

#calendar-days .event .regular-event {
    font-size: 5pt;
    overflow: hidden;
    border: #7d2128 solid 1px;
}

@media screen and (min-width: 1200px) {
    #calendar-header {
        font-size: 20pt;
        margin-bottom: 15px;
        padding-top: 15px;
        gap: 24px;
    }

    #calendar-header button {
        width: 300px;
        padding: 24px;
        font-size: 1.5em;
    }

    .calendar-month-card {
        padding: 18px 48px;
        min-width: 320px;
    }

    #month-year {
        font-size: 28pt;
    }

    #calendar-days,
    #calendar-weekdays {
        gap: 5px;
    }

    #calendar-days div,
    #calendar-weekdays div {
        padding: 8px;
        min-height: 50px;
        font-size: 1.2em;
    }

    #calendar-days .day-number {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }

    #calendar-days .event .regular-event {
        font-size: 12pt;
        border: #7d2128 solid 3px;
    }

    #calendar-days .event .training-event {
        font-size: 12pt;
        border: #ddd solid 3px;
    }

}
