body {
    --line-w: 0.3vw;
    --line-col: blue;
    --base-col: white;
}

#container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    overscroll-behavior-y: none;
}

#preloader {
    position: fixed;
    background-color: var(--base-col);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
    z-index: 1;
}

#preloader.hide {
    opacity: 0;
}

#header {
    position: fixed;
    bottom: 3vw;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1;
    color: var(--base-col);
    mix-blend-mode: exclusion;

    
    font-family: "neue-haas-unica", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1vw;

    text-align: center;
}

#rotate-control {
    position: fixed;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--rotation));
    width: 10vw;
    height: 10vw;
    border-radius: 100%;
    /* border: var(--line-w) solid var(--line-col); */
    mix-blend-mode: exclusion;
    cursor: progress;

    font-family: "neue-haas-unica", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1vw;
    color: var(--line-col);
}

.rotate-dial-h {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--line-w);
    height: 100%;
    background-color: var(--line-col);
}

.rotate-dial-w {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: var(--line-w);
    background-color: var(--line-col);
}

#rotate-control .label {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(calc(-1.5*var(--line-w)), var(--line-w));
    pointer-events: none;
}

#rotate-control .label-x {
    position: absolute;
    top: 0;
    left: calc(50% + var(--line-w));
    pointer-events: none;
}

#rotate-control .label-y {
    position: absolute;
    right: 0;
    top: calc(50% + var(--line-w));
    pointer-events: none;
}

#rotate-control .label-zoom {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(calc(-1*var(--rotation))) translate(0, 7vw);
    pointer-events: none;
} 


@media (max-width: 800px) {
    body {
        --line-w: 0.6vw;
    }

    #rotate-control {
        font-size: 3vw;
        width: 15vh;
        height: 15vh;
    }

    #rotate-control .label-zoom {
        transform: translate(-50%, -50%) rotate(calc(-1*var(--rotation))) translate(0, 10vh);
    } 

    #header {
        font-size: 3vw;
        bottom: 6vw;
    }
}