@media (max-width: 575.98px), (max-height: 800px) {
    nav.ec-toolbar {
        position: sticky;
        background-color: var(--background);
        right: 0;
        left: 48px;
        top: 0;
        padding: 5px 0 12px 0;
        z-index: 98;
        margin-bottom: 0;
        height: 36px;
        box-sizing: content-box;
    }

    button.ec-today {
        display: none;
    }

    body .ec-list .ec-event-title,
    .ec-list .ec-event-symbols span {
        /*font-size: 0.8rem;*/
        overflow-wrap: anywhere;
    }
    .ec-day-foot a {
        white-space: nowrap;
    }
}


@media (max-width: 575.98px) {
    .ec-day-grid div.ec-day-foot a {
        font-size: 1.5rem;
    }
}


@media (min-width: 576px), (min-height: 800px)  {
	#ec .ec.ec-day-grid {
		height: 500px;
	}

}

@media (min-width: 992px) {
	#ec .ec.ec-day-grid {
		height: 700px;
	}
}

@media (min-width: 1200px) {
	#ec .ec.ec-day-grid {
		height: 800px;
	}
}

@media (max-width: 1000px) {
    .ec-day-grid .ec-day-foot {
        top: 0;
        left: 0;
        right: 0;
    }

    .ec-day-grid .ec-day-foot a {
        height: 100%;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2rem;
    }

    .ec-day-grid h4.ec-event-title {
        white-space: unset;
        width: 0;
    }

    .ec-day-grid .ec-popup h4.ec-event-title {
        white-space: nowrap;
        line-height: 1.5rem;
        width: auto;
    }

    .ec-day-grid .ec-popup .ec-day-head {
        padding-bottom: 8px;
    }

    .ec-popup .ec-events .ec-event {
        margin-bottom: 5px;
    }
}


.ec {
	height: auto;
}
.ec.ec-day-grid {
	height: 400px;
}

body .ec {
    --ec-button-active-bg-color: hsl(0, 0%, 91%);
}

body .ec-toolbar>*,
body .ec-toolbar>*>*,
body .ec-toolbar>*>*:not(:last-child) {
    margin: 0;
}


nav.ec-toolbar div:last-child {
    display: flex;
    justify-content: right;
}

html body nav.ec-toolbar div:last-child .ec-button-group {
    margin-right: 0;
}

button.ec-today {
    margin-left: .75em;
}

div.ec-day.ec-today {
    background-color: transparent;
}

.ec-day-grid .ec-day.ec-today {
    box-shadow: inset 0px 0px 0px 1px var(--highlight);
}

div.ec-list .ec-today .ec-day-head {
    border-color: var(--highlight);
}

div.ec-list .ec-day-head {
    background-color: transparent;
}

button.ec-button {
    box-sizing: content-box;
    height:24px;
    border:0;
}

.ec-button.material-icons {
    line-height: 1.5rem;
    font-size: 1.5rem;
}

.ec-title {
    white-space: nowrap;
}

.ec-event {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.ec-event:hover {
    filter: brightness(85%);
}

.ec-list article.ec-event {
    padding: 0 0 0 14px;
}

article.ec-event:hover {
    background-color: var(--background);
}

div.ec-body,
div.ec-header {
    border: 0;
}

div.ec-header {
    border-bottom: 1px solid var(--ec-border-color);
}

div.ec-list .ec-day-head {
    border-top-style: none;
}

.ec-list div.ec-day {
    margin-bottom: 3rem;
}

.ec-body.ec-uniform {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.ec-header {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#ec {
    /* flex-grow: 1; */
    /* 30% are for the map */
    flex: 1;
    overflow: auto;
}


#ec::before {
    display: none;
    background: #e9e9e9;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.8;
    z-index: 99;
}


.ec-list.ec-month-view,
.ec-list.ec-year-view { 
    max-width: 700px;
}


.ec-event-symbols,
.ec-event-title {
    display: inline-block;
}

.ec-event-symbols {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 1.2rem;
    margin-left: auto;
    height: 35px;
}

.ec-event-symbols span {
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 1.2rem;
    color: var(--text_light);
}

.ec-event-symbols .material-icons {
    font-size: 1.2rem;
    line-height: 1.2rem;
}

.symbol_admission {
    font-size: 1.1rem;
}

.ec-list .ec-event-title-container {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.ec-list .ec-event-tag {
    margin: 8px 8px 8px 0;
}

.ec-list div.ec-event-body {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    height: fit-content;
}

.ec-event-symbols .favorite {
    font-size: 1.5rem;
    line-height: 1.5rem;
    padding: 0 24px 0 10px;
    height: 100%;
}
