:root {
    --theme-color: #00b199;
}

* {
    margin: 0;
    padding: 0;
    --scrollbarBG: var(--background-color);
    --thumbBG: var(--theme-color);
    --background-color: white;
    font-family: Poppins, sans-serif;
    font-size: 100%;
}

html, body {
    min-height: 100% !important;
    height: 100%;
    width: 100%;
    color: var(--theme-color);
    scrollbar-width: thin;
    scrollbar-color: var(--thumbBG) var(--scrollbarBG);
    --scrollbar-width: thin;
    --scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}

body::-webkit-scrollbar {
    display: none;
}

.grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

@media (orientation: landscape) {
    .grid {
        grid-template-columns: 25% 50% 25%;
        grid-template-rows: 15% 5% 75% 5%;
    }
}

@media (orientation: portrait) {
    .grid {
        grid-template-columns: 5% 90% 5%;
        grid-template-rows: 15% 5% 75% 5%;
    }
}

.banner {
    grid-area: 1 / 2 / 2 / 3;
    margin-top: 1%;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
    align-self: start;
    position: sticky;
    height: 85%;
    object-fit: contain;
}

.ical-wrapper {
    grid-area: 2 / 2 / 3 / 3;
    margin-left: auto;
    margin-right: auto;
    color: var(--theme-color);
    display: inline-block;
    border-bottom: #00b199 1px solid;
    width: 100%;
    height: 90%;
    text-align: center;
    overflow: auto;
}

.ical-link {
    color: var(--theme-color);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.ical-link:hover {
    color: var(--theme-color);
    text-decoration: underline;
}

.ical-info {
    color: var(--theme-color);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.ical-first-next {
    color: var(--theme-color);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.ical-info:hover, .ical-first-next:hover {
    transform: scale(1.3)
}

.termin-container {
    grid-area: 3 / 2 / 4 / 3;
    text-align: center;
    width: 100%;
    color: var(--theme-color);
}

#state-info {
    position: fixed;
    bottom: 0;
    margin-left: auto;
    margin-right: auto;
    color: var(--theme-color);
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    background-color: var(--background-color);
    z-index: 10;
}

.termin-item {
    border-bottom: #00b199 1px solid;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0.5;
}

.termin-item-next {
    opacity: 0.75;
}

.termin-item:hover, .termin-item-next:hover {
    opacity: 1;
}

.termin-committee {
    padding-bottom: 0.5rem;
    border-left: #00b199;
}

.termin-committee:before {
    content: "..:: ";
    color: var(--theme-color);
}

.termin-committee:after {
    content: " ::.. ";
    color: var(--theme-color);
}

.termin-date:before {
    content: ":: termín ";
    color: var(--theme-color);
}

.termin-date:after {
    content: " ::";
    color: var(--theme-color);
}

.termin-date {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: bolder;
}

.central img, .contact-container img {
    position: relative;
    top: -1.5rem;
}

.svg-theme {
    filter: invert(58%) sepia(85%) saturate(953%) hue-rotate(124deg) brightness(79%) contrast(103%) !important;
}

.clickable {
    cursor: pointer;
    transition: transform .2s;
}

.clickable:hover {
    transform: scale(1.2);
}


textarea {
    position: relative;
    display: block;
    height: 100%;
    border: 2px solid var(--theme-color);
    border-radius: 0 0 8px 8px;
    outline-color: var(--theme-color);
    padding: 0.5rem;
    width: calc(100% - 1rem);
    resize: none;
    cursor: auto;
}

input[type=text] {
    position: relative;
    display: block;
    text-align: center;
    height: 2rem;
    border: 2px solid var(--theme-color);
    border-radius: 0 0 8px 8px;
    outline-color: var(--theme-color);
    padding-left: 4rem;
    padding-right: 4rem;
    width: calc(100% - 8rem);
}

input[type=text]:focus {
    border: 3px solid var(--theme-color);
}

.icon {
    width: 1rem;
    height: 1rem;
    color: var(--theme-color);
}

#link, #contact {
    float: left;
    padding-left: 0.5rem;
}

.contact-icon {
    float: left;
    padding-left: 0.5rem;
}

#shorten, #qr {
    float: right;
    padding-right: 0.5rem;
}

#toast-icon {
    float: left;
    padding-left: 0.5rem;
}


.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

.read-only {
/ /
}

.spinner {
    position: fixed;
    display: block;
    left: calc(50% - 2.5rem);
    top: calc(50% - 2.5rem);
    width: 80px;
    height: 80px;
    z-index: 1000;
}

.spinner div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--theme-color) transparent transparent transparent;

}

.spinner div:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner div:nth-child(2) {
    animation-delay: -0.3s;
}

.spinner div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.backdrop {
    display: block;
    backdrop-filter: blur(6px);
    position: fixed;
    _position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
}

#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #fff;
    color: var(--theme-color);
    text-align: center;
    border: 2px solid var(--theme-color);
    border-radius: 0 0 8px 8px;
    outline-color: var(--theme-color);
    padding: 16px;
    position: fixed !important;
    z-index: 10000 !important;
    left: 50% !important;
    transform: translateX(-50%);
    top: unset !important;
    bottom: 30px !important;
}

#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.toast-ok {
    content: url(/assets/images/check-circle.svg);
}

.toast-err {
    content: url(/assets/images/exclamation-triangle.svg);
}

.toast-info {
    content: url(/assets/images/info-icon.svg);
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}
