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

body {
    overflow: hidden;
    background-color: #000;
    font-family: sans-serif;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

#loader-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
}

/* BRAND TEXT */
.brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 150px;
    color: white;
    letter-spacing: 10px;
    font-size: 18px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* PROGRESS BAR */
.progress-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 560px;
    width: 150px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: #912a2d;
    transition: width 3s ease-out;
}


/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {

    .brand {
        font-size: 13px;
        letter-spacing: 6px;
        top: 120px;
        white-space: nowrap;
    }

    .progress-container {
        /* On mobile the canvas is the same size but the cube is centered,
           so we position the bar near the bottom third */
        top: auto;
        bottom: 18%;
        width: 120px;
    }
}

@media (max-width: 480px) {

    .brand {
        font-size: 11px;
        letter-spacing: 4px;
        top: 100px;
    }

    .progress-container {
        bottom: 20%;
        width: 100px;
    }
}