html, body {
    padding: 0;
    margin: 0;
}

#calendarContainer {
    width: 95%;
    border: 4px solid #9b0000;
    margin: auto;
    /* margin-top: 20px; */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: white;
    position: relative;
}

#calendar {
    flex: 80%
}

#calendarHeader,
#calendarFooter {
    display: flex;
    background-color: #9b0000;
    /* flex-direction: column; */
    /* flex: 10%; */
}
#calendarFooter {
    width: 100%;
    margin: auto;
}
/* #calendarHeader {
    flex: 30px;
} */
#calendarFooter .sponsor {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
    cursor: pointer;
    transition: all .2s;
    background-color: white;
    color: black;
}
#calendarFooter .sponsor::before {
    display: inline-block;
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-right: 6px;
}
#calendarFooter .sponsor[sponsor='IMF'].active::before {
    background-color: #03bd9e;
}
#calendarFooter .sponsor[sponsor='WB'].active::before {
    background-color: #8e44ad;
}
#calendarFooter .sponsor[sponsor='MEF'].active::before {
    background-color: #d35400;
}
#calendarFooter .sponsor[sponsor='UM6P'].active::before {
    background-color: #c0392b;
}
#calendarFooter .sponsor[sponsor='IMF']::before {
    border: 2px solid #03bd9e;
}
#calendarFooter .sponsor[sponsor='WB']::before {
    border: 2px solid #8e44ad;
}
#calendarFooter .sponsor[sponsor='MEF']::before {
    border: 2px solid #d35400;
}
#calendarFooter .sponsor[sponsor='UM6P']::before {
    border: 2px solid #c0392b;
}

#calendarHeader .day{
    background-color: #9b0000;
    color: white;
    flex: 1;
    padding: 8px 8px 0 8px;
    cursor: pointer;
    font-size: 30px;
    display: block;
    font-weight: bold;
    transition: all .2s;
    border-bottom:  4px solid #9b0000;
}
#calendarHeader .day:hover{
    border-bottom:  4px solid white;
}
#calendarHeader .day::after{
    content: " Oct";
    /* display: block; */
    font-size: .8em;
}
#selectedDate {
    display: block;
    /* width: 100%; */
    text-align: center;
    margin: 10px auto;
    font-weight: bold;
    font-size: 20px;
}
#calendarHeader .day.active{
    border-bottom:  4px solid white;
    background-color: white;
    color: #9b0000;
    border-radius: 4px 4px 0 0;
}

.toastui-calendar-panel.toastui-calendar-day-view-day-names,
.toastui-calendar-milestone,
.toastui-calendar-task,
.toastui-calendar-panel-resizer,
.toastui-calendar-allday {
    display: none;
    visibility: hidden;
    box-sizing: none;
}
/* 
#calendar {
    height: 80vh;
} */

.toastui-calendar-panel.toastui-calendar-time {
    height: 50vh !important;
    max-height: 700px !important;
}
.toastui-calendar-timegrid {
    height: 100% !important;
    min-height: 100%;
}

.toastui-calendar-event-time {
    border-left: none !important;
}



#eventDetails {
    position: absolute;
    max-width: 80%;
    max-height: 60%;
    width: 500px;
    height: 600px;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-color: white;
    border: 4px solid #9b0000;
    border-radius: 8px;
    box-shadow: 0 0 10px #333;
    padding: 0;
    opacity: 0;
    transition: all .2s;
    padding: 5px 10px;
}

#eventDetails.active{
    z-index: 9;
    opacity: 1;
}
.toastui-calendar-event-time .toastui-calendar-event-time-content {
    font-size: 14px !important;
    font-weight: bold;
}

.toastui-calendar-template-time strong {
    display: none;
}

#eventDetails .title{
    margin: 0;
}

#sponsors {
    margin: 10px 0;
}
#sponsors span {
    border-radius: 4px;
    padding: 2px 4px;
    font-weight: bold;
    margin-right: 4px;
}
#sponsors span[sponsor='IMF'] {
    background-color: #03bd9e;
}
#sponsors span[sponsor='WB'] {
    background-color: #8e44ad;
}
#sponsors span[sponsor='MEF'] {
    background-color: #d35400;
}
#sponsors span[sponsor='UM6P'] {
    background-color: #c0392b;
}

#eventDetails #description {
    max-height: 25vh;
    overflow: auto;
}
#eventDetails .footer {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 0px;
    display: flex;
    justify-content: space-between;
    margin: auto;
}

#eventDetails .footer button{
    background-color: #9b0000;
    color: white;
    border: none;
    font-size: 18px;
    border-radius: 4px;
    box-shadow: 0px 0px 8px #aaa;
    cursor: pointer;
    transition: all .4s;
    margin: 8px 10px;
    padding: 4px 18px;
    border: 1px solid #9b0000
}
#eventDetails .footer button:hover{
    box-shadow: 0px 0px 14px #aaa;
    border: 1px solid #000
}