.timetable {
    box-sizing: border-box;
    margin-top: 2%;
    margin-bottom: 2%;
    display:flex;
}

.timetable::after {
    clear: both;
    content: "";
    display: table
}

.timetable *,
.timetable *:before,
.timetable *:after {
    box-sizing: inherit
}

.timetable ul,
.timetable li {
    margin: 0;
    padding: 0;
    list-style-type: none
}

.timetable aside,
.timetable section {
    float: left
}

.timetable aside {
    width: auto;
    padding: 0!important;
    margin-top: 46px;
    border-right: 5px solid transparent
}

.timetable aside li {
    padding: 0 15px;
    background-color: transparent;
    line-height: 60px;
    color: white;
    font-size: 20px;
}

.timetable aside li:not(:last-of-type) {
    border-bottom: 1px solid #fff
}

.timetable aside .row-heading {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
}

.row-heading {
    color: #262626;
    font-family: BebasNeue Bold;
    font-size: 1.2em;
}

.timetable aside {
    width: auto;
    flex: 1;
    flex-basis: content;
}

.timetable ul {
    list-style-type: none;
    margin: 0;
}

.timetable aside li {
    background: #F4F4F4;
}

.timetable aside li:nth-child(odd) {
    background-color: white;
}

.timetable aside li,
.timetable time li {
    height: 60px
}

.timetable section {
    flex-grow: 1;
    padding: 0!important;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch
}

.timetable section time {
    white-space: nowrap;
    display: inline-block
}

.timetable section header {
    height: 46px;
    transform-style: preserve-3d;
    font-size: 0;
}

.timetable section header::after {
    clear: both;
    content: "";
    display: table
}

.timetable section header li {
    display: inline-block;
    font-size: 1rem;
    overflow: visible;
    width: 0;
    line-height: 46px;
    display: inline-block;
    position: relative
}

.timetable section header li:not(:last-of-type) {
    width: 96px
}

.timetable section header li .time-label {
    display: block;
    position: absolute;
    left: 0
}

.timetable section header li:not(:first-of-type) .time-label {
    transform: translateX(-50%)
}

.timetable section header li:last-of-type .time-label {
    transform: translateX(-100%)
}

@media only screen and (max-width:960px) {
    .timetable aside {
        width: 40%
    }
    .timetable section {
        width: 60%
    }
}

.timetable ul.room-timeline {
    border-left: none;
    position: relative;
    overflow: hidden;
}

.timetable ul.room-timeline li {
    position: relative;
    background-color: #F4F4F4
}

.timetable ul.room-timeline li:nth-of-type(odd) {
    background-color: #FDFDFD
}

.timetable ul.room-timeline li:first-of-type {
    border-top: 1px solid #E5E5E5
}

.timetable ul.room-timeline li:last-of-type {
    border-bottom: 1px solid #E5E5E5
}

.timetable ul.room-timeline li:not(:last-of-type) {
    border-bottom: none
}

.timetable ul.room-timeline li:first-child .time-entry {
    height: 59px
}

.timetable ul.room-timeline li:after,
.timetable ul.room-timeline li:before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0
}

.timetable ul.room-timeline li:before {
    background-image: linear-gradient(to right, #E5E5E5 1px, transparent 1px);
    background-size: 24px auto
}

.timetable ul.room-timeline li:after {
    background-image: linear-gradient(to right, #E5E5E5, #E5E5E5 1px, #F4F4F4 1px, #F4F4F4 2px, #E5E5E5 2px, #E5E5E5 3px, transparent 3px, transparent);
    background-size: 96px auto;
    background-position: -2px 0
}

.timetable .time-entry {
    background-color: #8C8989;
    transition: 200ms;
    height: 59px;
    font-size: 15px;
    display: block;
    position: absolute;
    z-index: 2;
    padding: 0 10px;
    white-space: normal;
    overflow: hidden;
    border: 1px solid rgb(68, 70, 67);
    transform-style: preserve-3d;
}

.timetable .time-entry button, .timetable .time-entry .fa-exclamation {
    color: rgb(68,70,67);
}

.timetable .sec-high {
    border: 1px solid darkred;
    color: #fff
}

.timetable .sec-high.crowd-low {
    background: linear-gradient(to right, green 50%, red 50%);

    &.highEnergy {
        background: url("../../pictures/high_energy2.png"), linear-gradient(to right, green 50%, red 50%);
        background-repeat: no-repeat;
        background-size: contain;
    }
}

.timetable .sec-high.crowd-med {
    background: linear-gradient(to right, orange 50%, red 50%);

    &.highEnergy {
        background: url("../../pictures/high_energy2.png"), linear-gradient(to right, orange 50%, red 50%);
        background-repeat: no-repeat;
        background-size: contain;
    }
}

.timetable .sec-high.crowd-high {
    background-color: red;
}

.timetable .sec-high.crowd-highest {
    background: linear-gradient(to right, #00D3F7 50%, red 50%);

    &.highEnergy {
        background: url("../../pictures/high_energy2.png"), linear-gradient(to right, #00D3F7  50%, red 50%);
        background-repeat: no-repeat;
        background-size: contain;
    }
}

.timetable .crowd-high button, .timetable .crowd-high .fa-exclamation {
    color: darkred;
}

.timetable .sec-med {
    border: 1px solid rgb(172, 112, 2);
    color: #fff
}

.timetable .sec-med.crowd-low {
    background: linear-gradient(to right, green 50%, orange 50%);

    &.highEnergy {
        background: url("../../pictures/high_energy2.png"), linear-gradient(to right, green 50%, orange 50%);
        background-repeat: no-repeat;
        background-size: contain;
    }
}

.timetable .sec-med.crowd-med {
    background-color: orange;
}

.timetable .sec-med.crowd-highest {
    background: linear-gradient(to right, #00D3F7 50%, orange 50%);

    &.highEnergy {
        background: url("../../pictures/high_energy2.png"), linear-gradient(to right, #00D3F7 50%, orange 50%);
        background-repeat: no-repeat;
        background-size: contain;
    }
}

.timetable .sec-med.crowd-high {
    background: linear-gradient(to right, red 50%, orange 50%);

    &.highEnergy {
        background: url("../../pictures/high_energy2.png"), linear-gradient(to right, red 50%, orange 50%);
        background-repeat: no-repeat;
        background-size: contain;
    }
}

.timetable .crowd-med button, .timetable .crowd-med .fa-exclamation {
    color: rgb(172, 112, 2);
}

.timetable .sec-low {
    border: 1px solid rgb(1, 75, 1);
    color: #fff
}

.timetable .sec-low.crowd-low {
    background-color: green;
}

.timetable .sec-low.crowd-med {
    background: linear-gradient(to right, orange 50%, green 50%);

    &.highEnergy {
        background: url("../../pictures/high_energy2.png"), linear-gradient(to right, orange 50%, green 50%);
        background-repeat: no-repeat;
        background-size: contain;
    }
}

.timetable .sec-low.crowd-high {
    background: linear-gradient(to right, red 50%, green 50%);

    &.highEnergy {
        background: url("../../pictures/high_energy2.png"), linear-gradient(to right, red 50%, green 50%);
        background-repeat: no-repeat;
        background-size: contain;
    }
}

.timetable .sec-low.crowd-highest {
    background: linear-gradient(to right, #00D3F7 50%, green 50%);

    &.highEnergy {
        background: url("../../pictures/high_energy2.png"), linear-gradient(to right, #00D3F7 50%, green 50%);
        background-repeat: no-repeat;
        background-size: contain;
    }
}

.timetable .crowd-low button, .timetable .crowd-low .fa-exclamation {
    color: rgb(1, 75, 1);
}

.timetable .sec-none {
    background-color: gray;
    border: 1px solid rgb(77, 76, 76);
    color: #fff
}

.timetable .sec-none button, .timetable .sec-none .fa-exclamation {
    color: rgb(77, 76, 76);
}

.timetable .highEnergy {
    background-image: url("../../pictures/high_energy2.png");
    background-repeat: no-repeat;
    background-size: contain;
}

.timetable .sec-med:hover,
.timetable .sec-none:hover,
.timetable .sec-low:hover,
.timetable .sec-high:hover {
    z-index: 10;
}

.timetable .event button, .timetable .event .fa-exclamation {
    color: rgb(33, 56, 56);
}

.timetable .time-entry .eventInfo {
    position: absolute;
    left: 0;
    top:50%;
    transform:translateY(-50%);
    
    width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 2px;
}

.timetable .time-entry .eventInfo span, .timetable .time-entry .eventInfo p {
    margin: 0;
}

/*.timetable .sec-high:hover {
    background-color: #e74030
}

.sec-low:hover {
    background-color: #69C562
}

.sec-none:hover {
    background-color: orange
}

.sec-med:hover {
    background-color: #F3A64E
}*/

.eventButtons {   
    position: absolute;
    right: 0;
    width: 34px;

    margin-right: 2px;
}
  
.buttonsBottomRow {
    margin-top: 20px;
}

.eventButtons button {
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0;
}

.fileSymbol {
    color: white;
}

.fa-exclamation {
    margin-left: 2px;
}

.timetable button:hover {
    color: white;
}

.arrow {
    position: absolute;
    z-index: 2;
    width: 2px;
    height: 100%;
    background-color: darkred;
    opacity: 0.5;
}