.title {
    display: flex;
    width: 706px;
    margin: 20px auto;
    justify-content: center;
    align-items: center;
}

.date {
    flex-grow: 1;
    font-family: "Bebas Neue";
    font-size: 40px;
    color: #116AAC;
    text-align: left;
}

.controls {
    font-size: 0;
}

.control-button {
    color: #116aac;
    font-size: 14px;
    font-family: "Montserrat";
    cursor: pointer;
    background-color: Transparent;
    font-weight: 400;
    border: 1px solid;
    height: 45px;
    transition: 0.3s;
}

control-button:focus {
    outline: 0;
}

.control-button:hover {
    background-color: rgb(0 0 0 / 5%);
    text-decoration: none;
    color: #116aac;
}

.control-button:active {
    background-color: rgb(0 0 0 / 10%);
    color: #116aac;
}

.control-button:focus {
    box-shadow: 0 0 7px 0 rgb(0 0 0 / 25%);
    outline: none;
}

.button-today {
    border-radius: 10px;
    width: 150px;
    margin: 0px 10px;
}

.button-previous {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    width: 45px;
    position: relative;
    left: 1px;
}

.button-next {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    width: 45px;
}

.table {
    display: flex;
    flex-flow: column nowrap;
    text-align: center;

    margin: 20px auto;

    width: 706px;
    /*height: 640px;*/
    background: #FFFFFF;
    box-shadow: 9px 9px 37px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;

    font-family: "Montserrat";
    font-size: 14px;
    user-select: none;
}

.table-header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;

    background: #116AAC;
    color: white;
    font-weight: 600;
    height: 40px;
}

.row {
    display: flex;
    flex-flow: row nowrap;
    min-height: 100px;
}

.cell {
    display: flex;
    flex: 1;

    flex-direction: column;

    position: relative; /* remove */
}

.current-day {
    background: rgba(17, 106, 172, 0.15);
}

.row:not(:last-child) {
    border-bottom: 1px solid #F3F3F3;
}

.row .cell:not(:last-child) {
    border-right: 1px solid #F3F3F3;
}

.day {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #116AAC;
    font-weight: 500;
}

.day-other {
    color: #B9B9B9;
}

.event-container {
    height: 30px;
    margin: 35px 0 0;
}

.event-container ~ .event-container {
    margin: 5px 0 0;
}

.event {
    position: absolute;
    left: 0;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;

    background: #D82B28;
    color: white;
    font-size: 12px;
}

.event:hover {
    height: auto;
    min-height: 30px;
    max-width: fit-content;
    z-index: 2;
}

.event:hover .event-title {
    display: block;
}

.event-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.2;
}

.event-1-day {
    min-width: 100px;
    max-width: 100px;
}

.event-2-day {
    min-width: 201px;
    max-width: 201px;
}

.event-3-day {
    min-width: 302px;
    max-width: 302px;
}

.event-4-day {
    min-width: 403px;
    max-width: 403px;
}

.event-5-day {
    min-width: 504px;
    max-width: 504px;
}

.event-6-day {
    min-width: 605px;
    max-width: 605px;
}

.event-7-day {
    min-width: 706px;
    max-width: 706px;
}

.event-line-1 {
    top: 35px;
}

.event-line-2 {
    top: 70px;
}

@media screen and (max-width: 573px) {
    .date {
        margin-bottom: 20px;
    }

    .title {
        width: 356px;
        display: flex;
        flex-direction: column;
    }

    .table {
        width: 356px;
    }

    .row {
        min-height: 50px;
    }

    .event-container {
        height: 10px;
        margin: 25px 0 0;
    }

    .event-container ~ .event-container {
        margin: 5px 0 0;
    }

    .event-title {
        display: none;
    }

    .event {
        height: 10px;
    }

    .event:hover .event-title {
        padding: 5px;
    }

    .event-1-day {
        min-width: 50px;
        max-width: 50px;
    }

    .event-2-day {
        min-width: 101px;
        max-width: 101px;
    }

    .event-3-day {
        min-width: 152px;
        max-width: 152px;
    }

    .event-4-day {
        min-width: 203px;
        max-width: 203px;
    }

    .event-5-day {
        min-width: 254px;
        max-width: 254px;
    }

    .event-6-day {
        min-width: 305px;
        max-width: 305px;
    }

    .event-7-day {
        min-width: 356px;
        max-width: 356px;
    }

    .event-line-1 {
        top: 35px;
    }

    .event-line-2 {
        top: 70px;
    }
}

@media screen and (min-width: 573.1px) and (max-width: 780px) {
    .title {
        width: 496px;
    }

    .table {
        width: 496px;
    }

    .row {
        min-height: 70px;
    }

    .event-1-day {
        min-width: 70px;
        max-width: 70px;
    }

    .event-2-day {
        min-width: 141px;
        max-width: 141px;
    }

    .event-3-day {
        min-width: 212px;
        max-width: 212px;
    }

    .event-4-day {
        min-width: 283px;
        max-width: 283px;
    }

    .event-5-day {
        min-width: 354px;
        max-width: 354px;
    }

    .event-6-day {
        min-width: 425px;
        max-width: 425px;
    }

    .event-7-day {
        min-width: 496px;
        max-width: 496px;
    }

    .event-line-1 {
        top: 35px;
    }

    .event-line-2 {
        top: 70px;
    }
}