html,
body {
    margin: 0;
    width: 100%;
    height: 100%;

    overflow: hidden;

    background: rgba(251, 249, 245,1);

    cursor: none;
}

@font-face {
    font-family: "Geist";
    src: url("./fonts/Geist-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist";
    src: url("./fonts/Geist-Black.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist";
    src: url("./fonts/Geist-Medium.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist";
    src: url("./fonts/Geist-Light.otf") format("opentype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

body {
    position: fixed;
    inset: 0;
}

#swarmCanvas {
    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    display: block;

    background: rgba(251, 249, 245,1);

    cursor: none;
}
#cursor {
    position: fixed;

    left: 0;
    top: 0;

    width: 10px;
    height: 10px;

    background: #000000;

    border-radius: 50%;

    pointer-events: none;

    z-index: 10006;

    transform:
        translate3d(-50%, -50%, 0)
        rotate(0deg);

    transition:
        width 300ms cubic-bezier(.34, 1.56, .64, 1),
        height 300ms cubic-bezier(.34, 1.56, .64, 1),
        border-radius 300ms ease,
        transform 400ms cubic-bezier(.34, 1.56, .64, 1);
}


#cursor.isDown {
    width: 15px;
    height: 15px;

    border-radius: 10%;

    background: #000000;

    transform:
        translate3d(-50%, -50%, 0)
        rotate(45deg);
}
/* ============================================================
   CONTROLS OVERLAY
   ============================================================ */

#controlsOverlay {

    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 9000;

    background:
        rgba(251, 249, 245, 0.2);

    backdrop-filter:
        blur(22px);

    -webkit-backdrop-filter:
        blur(22px);

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;

    cursor: none;
}


#controlsOverlay.isHidden {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/* ============================================================
   NOTE
   ============================================================ */

#controlsNote {

    width: min(34vw, 520px);

    padding: 2.2vw 2.5vw;

    box-sizing: border-box;





    font-family:
        "Geist",
        Arial,
        sans-serif;

    color: #000;
}


/* ============================================================
   TITLE
   ============================================================ */

.controlsTitle {

    margin-bottom: 2vw;

    font-size: 0.8vw;

    font-weight: 500;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


/* ============================================================
   CONTROL ROW
   ============================================================ */

.controlsRow {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 2vw;

    padding: 0.75vw 0;


    font-size: 0.72vw;

    line-height: 1.4;
}




/* ============================================================
   KEY
   ============================================================ */

.controlsKey {

    font-weight: 300;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.controlsDescription {

    opacity: 0.55;
        letter-spacing: 0.1em;

    text-align: right;
}


/* ============================================================
   SMALL SCREENS
   ============================================================ */

@media (max-width: 800px) {

    #controlsNote {

        width: 78vw;

        padding: 7vw;
    }

    .controlsTitle {

        font-size: 2.5vw;

        margin-bottom: 6vw;
    }

    .controlsRow {

        gap: 5vw;
        
        padding: 3vw 0;

        font-size: 2.5vw;
    }
}