body {
    margin: 0;
    overflow: hidden;
    background: #000;
    display: flex;
    width: 100vw;
    height: 100vh;
}


#loader {
    position: fixed;
    inset: 0;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #d8d8d8;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



canvas {
    display: block;
    cursor: default;
    width: 100vw;
    height: 100vh;
}

html {
    width: 100%;
    height: 100%;
}

#overlayInput {
    position: fixed;
    left: -9999px;
    top: -9999px;
    width: 20px;
    height: 0px;
    opacity: 0;
    pointer-events: none;
    font-size: 12px;
    font-weight: bold;

    border: none;
    outline: none;
    background: transparent;
    color: transparent;
    caret-color: transparent !important;
    caret-shape: auto;
    z-index: 999999;
}

#viewer {
    position: relative;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#fakeCaret {
    position: absolute;
    width: 1px;
    height: 16px;
    transform: translateY(-40%);
    background: white;
    z-index: 999999;
    pointer-events: none;
    display: none;
    animation: caretBlink 1s step-end infinite;

   
}

@keyframes caretBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}