#calendarApp {
    max-width: 900px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0;
}

.calendar-layout {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.calendar-main {
    -webkit-box-flex: 2;
    -ms-flex: 2;
    flex: 2;
    position: relative;
    overflow: hidden;
}

.calendar-sidebar {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 0.5rem;
    background: #fafafa;
    overflow-y: auto;
    max-height: 395px;
    height: 100%;
    background: #6F2C3E;
}

.calendar-sidebar h3 {
    margin-top: 0;
    font-family: "adriannabold", sans-serif;
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: #fff;
}

.sidebar-event {
    padding: 8px;
    margin-bottom: 8px;
    background: white;
    border-radius: 2px;
    cursor: pointer;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
}

.sidebar-event:hover {
    background: #f4f4f4;
}

.calendar-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    background: #F0AB00;
}

.calendar-header button {
    border: none;
    background: #6F2C3E;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    line-height: 1;
    
}
.calendar-header button:after {
    font-family: 'icons' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.5rem;
}

.calendar-header button#nextMonth:after {
    content: "\e910";
}
.calendar-header button#prevMonth:after {
    content: "\e90f";
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
#monthTitle {
    font-family: "adriannabold", sans-serif;
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.55px;
}
.day-name {
    text-align: center;
    font-family: "adriannabold", sans-serif;
    font-size: .6875rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    padding: 8px;
    background: #fafafa;
    background: #000;
    /* border-bottom: 1px solid #eee; */
    color: #fff;
}

.day {
    -webkit-box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.3);
    min-height: 60px;
    padding: 5px;
    cursor: pointer;
    position: relative;
}
.day:hover {
    background: #f9f9f9;
}

.date {
    font-weight: bold;
    font-size: 1.25rem;
    font-family: "adriannabold", sans-serif;
}
.day .date {
    opacity: 0.25;
}
.day.hasEvent .date {
    color: #000;
    opacity: 1;
}
.dots {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 3px;
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    margin: 0 auto;
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F0AB00;
}

/* Modal */

#eventModal {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #fff;
    overflow: hidden;
    -webkit-transition: all .75s ease;
    -o-transition: all .75s ease;
    transition: all .75s ease;
    -webkit-transform: translate3d(100%, 0, 0);
            transform: translate3d(100%, 0, 0);
            -webkit-backface-visibility: hidden;
                    backface-visibility: hidden;
                    padding-top: 3rem;
}
.iseventModal #eventModal {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}
.modal-content {
    padding: 1rem;
    width: 100%;
    overflow: hidden;
    height: 100%;
    overflow-y: scroll;
    text-align: left;
    font-size: 0.925rem;
    position: relative;
    z-index: 2;
}

.event_modal_close {
    height: 2rem;
    width: 2rem;
    margin: auto 0 auto auto;
    cursor: pointer;
    color: #fff;
}
.event_modal_close:after {
    font-family: 'icons' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f2c0";
    font-size: 1.5rem;
}
#modalEvents {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
.modal-event {
    padding: 0 0 0 1rem;
    border-left: 3px solid #F0AB00;
    margin: 1rem 0;
    width: 100%;
}

.modal-content-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 3rem;
    background-color: #6F2C3E;
    color: #fff;
    padding: 0.5rem 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.modal-content-header h3 {
    font-size: 1rem;
    margin: 0;
    color: #fff;
}

.sidebar_event_title {
    margin: 0 0 0.5rem 0;
    font-size: 0.925rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.sidebar_event_date,
.sidebar_event_time {
    font-size: 0.725rem;
    margin: 0;
}
.sidebar_event_time {
    margin: 0.25rem 0 0 0;
}
.modal-event .event_title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    text-transform: uppercase;
    line-height: 1.2;
    font-family: "adriannabold", sans-serif;
    font-weight: normal;
}
.modal-event .event_button {
    text-decoration: none;
    display: table;
    margin: 0;
}
.modal-event .event_button span[tabindex="-1"] {
    font-family: "adriannabold", sans-serif;
    font-size: .6875rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    line-height: 1;
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 0.75rem 1rem;
    background-color: #6F2C3E;
    color: #fff;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    cursor: pointer;
}
.modal-event .event_button:hover span[tabindex="-1"],
.modal-event .event_button:focus span[tabindex="-1"] {
    background-color: #F0AB03;
    color: #000;
}

.modal-event .event_time {
    font-size: 0.825rem;
    margin: 0;
    font-family: "adriannabold", sans-serif;
}
@media screen and (max-width:639px){
    .calendar-layout {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .calendar-main, 
    .calendar-sidebar {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 100%;
                flex: 0 0 100%;
    }
    .calendar-sidebar {
        max-height: 240px;
        margin-top: 0.5rem;
        border-top: 3px solid #6F2C3E;
        padding-top: 1rem;
    }
}

.page {
    scroll-margin-top: 185px;
}