@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0Q5n-wU.woff2) format('woff2');
    unicode-range: U+0460 -052F, U+1C80 -1C8A, U+20B4, U+2DE0 -2DFF, U+A640-A69F, U+FE2E-FE2F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Inter', sans-serif;
}

body {

    background: #ffffff;
    position: relative;
    width: 100%;
    height: 100dvh;


    scroll-padding-top: constant(safe-area-inset-top);
    scroll-padding-top: env(safe-area-inset-top) ;

    height: calc(100% - constant(safe-area-inset-top));
    overflow-y:scroll;
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

#splash, #imprint, #about {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

#overlay {
    position: absolute;
    font-size: 16px;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /*background: rgba(0, 0, 0, 0.5);*/
    background: transparent;
}

#start_button {
    margin: 0;
    max-width: 200px;
    max-height: 80px;
    margin: auto;
    font-weight: bold;
}

.metal-button {
    --convexity: 3;
    background: white;
    border: none;
    border-radius: 0.5em;
    cursor: pointer;
    line-height: 1.5em;
    margin: 0 0.75em 0.5em 0.75em;
    outline: none;
    padding: 0.5em 1em;

    font-size: 1rem;
    color: #000;
    text-decoration: underline;
    border: 0.5px solid #ddd;
}

.back-button {
    position: fixed;
    width: 60px;
    height: 30px;
    top: 30px;
    left: 30px;
    z-index: 30;
}

.logo-svg {
    max-height: 20vw;
    margin: 75px 0 35px 0;
}

#overlay button {
    cursor: pointer;
}

.overlay-welcome {
    width: 100vw;
    height: 100dvh;
    white-space: pre-wrap;
    text-align: center;
    line-height: 1rem;
}

.overlay-welcome-header {
    top: 0;
    left: 0;
}

.section {
    padding: 0 1rem;
    text-align: center;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.5rem;
    margin-bottom: 1.5rem;
}

.section h1 {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    margin-top: 80px;
}

.section h2 {
     font-size: 1.2rem;
     font-weight: bold;
     margin-bottom: 0.5rem;
 }

.spacer-4rem {
     margin-bottom: 4rem;
 }

#container {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: block;
    overflow: hidden;
    line-height: 0;
}

#container > canvas, #container > div {
    position: absolute;
    display: block;
    user-select: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: fadeIn 1.2s;
}

#container > video {
    object-fit: cover;
    object-position: 50% 50%;
    /*background: red;*/
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (max-device-width: 480px) and (orientation: landscape) {
    #container {
        display: none;
    }

    body::before {
        content: "Rotate device to portrait mode.";
        color: white;
    }
}

@media screen and (max-device-width: 480px) and (orientation: portrait) {
    #container {
        display: block;
    }

    body::before {
        content: none;
    }
}

.panel {
    width: 100vw;
    background: transparent;
    display: flex;
    flex-direction: column;
    /*height: 100dvh;*/
}

.horizontal-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tracking {
    border: 2px solid green;
}

.ballast {
    width: 100%;

    height: 100px;

}