@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    background-color: white;
    display: flex;
    transition-property: all;
    transition-duration: 1s;
    font-family: sans-serif;
}

body.loading {
    background-color: #ffffff;
}

body.playing {
    background-color: black;
}

body.playing #player {
    opacity: 1;
}

#loading {
    background-color: white;
    background-image: url(../img/logo.png);
    background-size: 200px;
    z-index: 10000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0; /* Start invisible */
    margin-top: 0px;
    animation: appear 1s forwards, moveup 0.35s forwards;
    animation-delay: 1s, 2s; /* Wait 3 seconds before starting */
}

body.login #loading {
    display: none;
}

body.login #login {
    opacity: 1;
}

body.playing #loading {
    display: none;
}

body.playing #login {
    display: none;
}

@keyframes appear {
    to {
      opacity: 1;
    }
}

@keyframes disappear {
    to {
      opacity: 0;
    }
}

@keyframes moveup {
    to {
        background-position: center calc(50% - 150px);
    }
}

#player {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1s;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #dedede;
    border-bottom-color: rgb(127, 195, 209);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: appear 1s forwards, rotation 1s linear infinite;
    animation-delay: 2s, 0s;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -24px;
    opacity: 0; /* Start invisible */
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 
#login {
    background: white;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.5s;
    transition-timing-function: ease-in;
}
#login .box {
    display: flex;
    max-width: 70vw;
}
#login #info {
    display: flex;
    flex-direction: column;
}
#login #qr {
    margin-right: 40px;
}
#login #logo {
    flex-grow: 1;
    
    background: url(../img/logo.png);
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 30px;
}
#login h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    margin: 0;
    margin-bottom: 10px;
}
#login p {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    margin-bottom: 10px;
}
#login p:last-child {
    margin-bottom: 0px;
}
#link-code {
    font-weight: bold;
}
#login #qr img {
    max-height: 300px;
    max-width: 300px;
}
#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 80vw;
    height: 80vh;
}
#ticker {
    position: absolute;
    top: 80%;
    left: 0;
    width: 100vw;
    height: 20vh;
    
}
#panels {
    position: absolute;
    top: 0;
    left: 80%;
    width: 20%;
    height: 80%;
}
#ticker marquee {
    color: white;
    display: flex; 
    align-items: center;
    height: 100%;
    font-size: calc(20vh - 80px);
}
.ticker-separator {
    max-height: calc((100vh * 0.2) - 80px);
    margin-left: 40px;
    margin-right: 40px;
}
#panels .panel {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: green;
    background-size: cover;
    opacity: 0;
    transition: opacity 1s;
}
#panels .panel.active {
    opacity: 1;
}
#login {
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: row;
}
#instructions {
    display: flex;
    flex-direction: column;
    
}
#instructions img {
    flex-grow: 0;
    
}