*{
    padding: 0;
    margin: 0;
}

body{
    touch-action: none;
    overflow: hidden;
}

.rendercontainer{
    height: 100vh;
}

#content{
    position: absolute;
    top: 10%;
    left: 10%;
    background: rgba(255, 255, 255, 0.9);
    height: 80%;
    width: 80%;
    border-radius: 15px;
    border: 1px solid black;
    visibility: hidden;
    overflow: hidden;
}

#header{
    background: transparent;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 10rem;
    color: white;
}


@keyframes hide{
    0%{
        opacity: 1;
    }
    50%{
        opacity: 0.5;
    }
    100%{
        display: none;
        opacity: 0;
    }
}

#tooltip{
    position: absolute;
    width: 100%;
    bottom: 50%;
    font-size: 3rem;
    text-align: center;
    animation-name: hide;
    animation-duration: 3s;
    animation-delay: 1s;
    animation-fill-mode: forwards;
}

@media (max-width: 600px){
    #content{
        height: 50%;
        width: 100%;
        left: 0;
    }
    #header{
        font-size: 3rem;
    }
}

#mobileControls{
    position: absolute;
    height: 8rem;
    width: 8rem;
    border-radius: 4rem;
    background-color: rgba(255, 255, 255, 0.3);
    visibility: hidden;
}

#mobileControls #direction{
    position: relative;
    height: 2rem;
    width: 2rem;
    top: 3rem;
    left: 3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
}

.loader {
    aspect-ratio: 1;
    border: 5px solid #000;
    padding: 0 8px;
    box-sizing: border-box;
    background:
            linear-gradient(#fff 0 0) 0    0/8% 20%,
            linear-gradient(#fff 0 0) 100% 0/8% 20%,
            radial-gradient(farthest-side, #ff0000 90%,#0000) 0 5px/8% 8% content-box;
    background-repeat: no-repeat;
    animation: l3 2s infinite linear;
}
@keyframes l3{
    25% {background-position: 0 0   ,100% 100%,100% calc(100% - 5px)}
    50% {background-position: 0 100%,100% 100%,0    calc(100% - 5px)}
    75% {background-position: 0 100%,100%    0,100% 5px}
}

#loadingScreen{
    position: absolute;
    height: 100vh;
    width: 100vw;
    background: black;
    z-index: 10;
}

#loading-center{
    position: relative;
    width: 30vw;
    max-height: 30vh;
    left: 35vw;
    text-align: center;
    color: white;
}

#loading-center p{
    margin-top: 1rem;
}
#loading-center p:first-of-type{
    font-size: 3rem;
}
