@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


* {
    box-sizing: border-box;
}

ul {
    list-style-type: none;
}

body {
    font-family: sans-serif;
    position: relative;
}

body.dark {
    font-family: sans-serif;
    position: relative;
    background-color: #484848;
}

#calendar {
    max-width: auto;
}

.month {
    padding: 35px 25px;
    width: 100%;
    background: #24b4d7;
    text-align: center;
}


.month > ul {
    width: 50%;
    position: relative;
    left: 25%;
}



.month ul {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}

.month ul li {
    color: white;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}



#weekdays {
    margin: 0;
    padding: 10px 0;
    background-color: #4b4f55;
}

#weekdays.dark {
    margin: 0;
    padding: 10px 0;
    background-color: #8D8D8D;
}

#weekdays li {
    color: white;
    text-align: center;
}

#weekdays.dark li {
    color: white;
    text-align: center;
}

#days {
    padding: 10px 0;
    background: #eee;
    margin: 0;
}

#days.dark {
    padding: 10px 0;
    background: #606060;
    margin: 0;
}


#days li {
    list-style-type: none;
    text-align: center;
    font-size: 16px;
    color: #777;
    padding: 10px;
    border: 1px solid #898d8e;
}

#days.dark li {
    list-style-type: none;
    text-align: center;
    font-size: 16px;
    color: white;
    padding: 15px;
    border: 1px solid #484848;
}

#days li.active {
    background: #24b4d7;
    color: white !important;
    animation: fadein 1s;
}

#days li.closed {
    background: #484848;
    color: white !important;
    animation: fadein 1s
}

#days li.exception {
    background: #DA68CE;
    color: white !important;
    animation: fadein 1s
}

#days li.make-up {
    background: #666699;
    color: white !important;
    animation: fadein 1s
}

#days li.campaign-closed {
    background: #F9F232;
    color: #4b4f55 !important;
    animation: fadein 1s
}

#days li.agent-only {
    background: #009999;
    color: white !important;
    animation: fadein 1s
}

#days li.closing {
    background: #a9a9a9;
    color: white !important;
    animation: fadein 1s
}

#days.dark li.active {
    background: #24b4d7;
    color: #484848 !important;
    animation: fadein 1s
}

#days.dark li.closed {
    background: #000000;
    color: white !important;
    animation: fadein 1s
}

#days.dark li.closing {
    background: #484848;
    color: white !important;
    animation: fadein 1s
}

#next,
#prev {
    cursor: pointer;
}

/* Add media queries for smaller screens */
@media screen and (max-width: 720px) {

    .weekdays li,
    #days li {
        width: 13.1%;
    }
}

@media screen and (max-width: 420px) {

    .weekdays li,
    #days li {
        width: 12.5%;
    }

    #days li .active {
        padding: 2px;
    }
}

@media screen and (max-width: 290px) {

    .weekdays li,
    #days li {
        width: 12.2%;
    }
}

#days,
#weekdays {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}
