body {
    overflow: hidden;
    margin: 0;
    height: 100vh;
    width: 100vw;
    font-family: sans-serif;
    background: black;
    text-shadow: 0 0 3px black;
}
a, body {
    color: white;
}
#info {
    z-index: 100;
    position: absolute;
    top: 10px;
    left: 15px;
}
h3 {
    margin: 5px 0;
}
p {
    margin: 5px 0;
    font-size: small;
}

.cube-wrapper {
    transform-style: preserve-3d;
}

.cube {
    transform-style: preserve-3d;
    transform: rotateX(45deg) rotateZ(45deg);
    animation: rotation 2s infinite;
}

.cube-faces {
    transform-style: preserve-3d;
    height: 80px;
    width: 80px;
    position: relative;
    transform-origin: 0 0;
    transform: translateX(0) translateY(0) translateZ(-40px);
}

.cube-face {
    position: absolute;
    inset: 0;
    background: #0017ff;
    border: solid 1px #ffffff;
}
.cube-face.top {
    transform: translateZ(80px);
}
.cube-face.front {
    transform-origin: 0 50%;
    transform: rotateY(-90deg);
}
.cube-face.back {
    transform-origin: 0 50%;
    transform: rotateY(-90deg) translateZ(-80px);
}
.cube-face.right {
    transform-origin: 50% 0;
    transform: rotateX(-90deg) translateY(-80px);
}
.cube-face.left {
    transform-origin: 50% 0;
    transform: rotateX(-90deg) translateY(-80px) translateZ(80px);
}

@keyframes rotation {
    0% {
        transform: rotateX(45deg) rotateY(0) rotateZ(45deg);
        animation-timing-function: cubic-bezier(
            0.17,
            0.84,
            0.44,
            1
        );
    }
    50% {
        transform: rotateX(45deg) rotateY(0) rotateZ(225deg);
        animation-timing-function: cubic-bezier(
            0.76,
            0.05,
            0.86,
            0.06
        );
    }
    100% {
        transform: rotateX(45deg) rotateY(0) rotateZ(405deg);
        animation-timing-function: cubic-bezier(
            0.17,
            0.84,
            0.44,
            1
        );
    }
}

.scene,
#message {
    position: absolute;
    display: flex;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
}
#message {
    font-weight: bold;
    font-size: large;
    color: red;
    pointer-events: none;
}

details {
    font-size: small;

}

#progress {
    position: absolute;
    top: 0;
    height: 5px;
    background: blue;
    z-index: 99;
    transition: width 0.1s ease-in-out;
}

#quality {
    position: absolute;
    bottom: 10px;
    z-index: 999;
    right: 50px;
}

#caminfo {
    position: absolute;
    top: 10px;
    z-index: 999;
    right: 10px;
}
#canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
}

#instructions {
    background: rgba(0,0,0,0.6);
    white-space: pre-wrap;
    padding: 10px;
    border-radius: 10px;
    font-size: x-small;
}
body.nohf .nohf {
    display: none;
}
body.nohf #progress, body.nohf .cube-face {
    background: #ff9d0d;
}

        /* Styling for the progress bar container */
.progress-container {
    width: 40%;
    margin: 0 auto;
    background-color: #f3f3f3;
    border-radius: 10px;
    position: relative;
    padding: 2px 2px 2px 2px;
    top: 90%;
    height: 10px;
    box-shadow: #adacac 0 0 10px;
}
.progress-container-inner {
    /* margin: 0 2px 0 2px; */
    position: relative;
}
/* Buffered progress (loaded frames) */
.progress-buffered {
    position: absolute;
    height: 10px;
    background-color: #a5a5a5;
    border-radius: 10px;
}

/* Current frame progress */
.progress-current {
    position: absolute;
    height:  10px;
    background-color: #3a3a3a;
    border-radius: 10px;
}

.control-btn {
    cursor: pointer; 
    text-decoration: underline;
    font-weight: 800;
}