:root {
    --body-bg: #FDFDFD;
    --thead-bg: #F7F9FB;
    --thead-color: hsl(210, 5%, 40%);
    --bd-color: #ebebeb;
    --time-color: hsl(210, 5%, 70%);
    --columns: 1;

    --time-width: 75px;
    --sticky-height: 80px;

    --base-cell-height: 80px;
    --base-cell-width: 10%;
    --mobile-cell-width: 25%;

    --main-color: rgb(193 166 241);
    --main-color-odd: rgb(221 202 255);
}

.timetable .guide-line {
    height: 1px !important;
}

.timetable .guide-line::before {
    content: '';
    display: block;
    position: absolute;
    height: 3000px;
    border-right: dashed 1px #0002;
    margin: 0 0 0 0;
}

.event-cell {
    overflow: visible !important;

}

.event-cell-wrapper {
    box-shadow: 0 1px 3px #444;
    background-color: var(--main-color);
    height: 100%;
    padding: 8px;
    margin-right: 5px;
    position: relative;
    overflow: hidden !important;
}

.cell-content {
    word-break: break-word;
}

.timetable .event-name {
    font-size: 0.8rem;
}

.timetable .event-organizer {
    font-size: 0.8rem;
}


.wrapper {
    padding: 15px;
    /*margin: 0em auto 10em;*/
}


.line {
    padding-bottom: 5px;
    /*padding: 2px 0;*/
}

.odd-line{
    background-color: #f4f4f4;
}

.odd-line .event-cell-wrapper{
    background-color: var(--main-color-odd) !important;
}

.timetable {
    position: relative;
    /*border: solid var(--bd-color);*/
    border-width: 0 1px 0 0;
    overscroll-behavior: contain;
}

.headers {
    top: var(--sticky-height);
    position: -webkit-sticky;
    position: sticky;
    display: flex;
    justify-content: flex-end;
    z-index: 50;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.04);
}

.location-entry {
    width: var(--time-width);
    text-align: center;
    background-color: #edcc4c !important;
    height: calc(var(--location-row-count) * (var(--base-cell-height) + 4px) + (var(--location-row-count) - 1) * 5px) !important;
    box-shadow: -1px 1px 3px #444;
    margin-top: 5px;
}

.location-entry-odd{
    background-color: #ead079 !important
}

.location-entry span {
    font-weight: bold;
    font-size: 0.8rem;
    margin: auto;
    position: relative;
    display: inline-block;
    text-align: center;
    left: 50%;
    min-width: 100%;
    transform-origin: center;
    transform: translateX(-50%) rotate(310deg);

}

.tracks,
.scroller {
    display: flex;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.scroller {
    overflow-x: hidden;
    flex: 1;
    cursor: grab;
}

.scroller.active {
    cursor: grabbing;
}

.tracks {
    overflow: auto hidden;
}

.tracks::-webkit-scrollbar,
.scroller::-webkit-scrollbar {
    display: none;
}

.track {
    flex: 1 0 var(--base-cell-width);
}


.location {
    flex: 0 0 var(--time-width);
    position: -webkit-sticky;
    position: sticky;
    left: 0;
}

.headers .location {
    z-index: 5;
}

.tracks .location {
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.05);
}


.location .heading {
    justify-content: flex-end;
    padding-right: 1em;
    font-weight: 500;
    background: #F9F9F9;
}

.heading {
    height: 50px;
    display: flex;
    justify-content: start;
    padding-left: 2px;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    border: solid var(--bd-color);
    border-width: 1px;
    color: hsla(210, 5%, 40%, 1);
    z-index: 1;
    background: var(--thead-bg);
    font-weight: 700;
}

.heading-first {
    background: rgba(249, 249, 249, 0) !important;
}

.entry {
    border: 1px solid #ebebeb;
    border-top: 0;
    background: var(--body-bg);
    height: calc(var(--location-row-count) * var(--base-cell-height));
    padding: 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.entry:not(:last-of-type) {
    border-bottom-style: dashed;
}

.track:last-of-type > div {
    border-right: 0;
}

.location .entry,
.location .heading {
    position: relative;
    border-color: transparent var(--bd-color) var(--bd-color) transparent;
    border-color: transparent var(--bd-color) transparent transparent;
}


.timetable p {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    margin: 0;
}

.timetable p + p {
    color: #858585;
    margin-top: 5px;
    font-weight: 400;
}

.timetable-full-screen {
    max-width: 100% !important;
    /*--base-cell-width: clamp(5%, 10% - 2.5vw, 10%);*/
}

.buttons {
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    position: absolute;
    z-index: 6;
    height: 100%;
    padding: 1px 0;
    width: calc(100% - var(--time-width));
}

.btn-left {
    transform: scaleX(-1);
    pointer-events: auto;
}

.btn-right {
    pointer-events: auto;
}


.buttons button {
    /*border-radius: 5px;*/
    /*border: 4px solid purple;*/
    border: 0;
    background-color: rgba(103, 36, 217, 0.6);
    padding: 5px;
    font: inherit;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    outline: none !important;
    cursor: pointer;
}

button > svg {
    line-height: 0;
    width: 30px;
    height: 30px;
    fill: var(--thead-color);
    pointer-events: none;
}


#top-of-site-pixel-anchor {
    position: absolute;
    width: 1px;
    height: 1px;
    top: 15em;
    left: 0;
}

.cell {
    height: calc(var(--base-cell-height));
    overflow: hidden;
    flex: var(--columns) 0 calc(var(--base-cell-width) / var(--grid-size) * var(--columns));
    margin: 2px 0;
}

.switcher {
    margin-left: var(--time-width);
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.switcher-button {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: .15em;
    color: black;
    display: block;
    width: 156px;
    height: 48px;
    text-align: center;
    background: #fff;
    margin: 5px 10px 5px 0;
    border: solid 2px #6920de;
    transition: background 0.5s;
    -webkit-transition: 0.5s;
    border-radius: 5px;
}

.switcher-button.active {
    background-color: var(--main-color);
}

.switcher-button:hover {
    background-color: var(--main-color);
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}


@media (max-width: 767px) {
    .track:not(.location) {
        flex: 1 0 calc(var(--mobile-cell-width));
    }

    .timetable .buttons {
        display: none;
    }

    .cell {
        flex: 1 0 calc(var(--mobile-cell-width) / var(--grid-size) * var(--columns));
    }

    .wrapper {
        padding: 0;
        margin: 0em auto 10em;
    }
}


