* {
    margin: 0;
    padding: 0;
}

html,
body {
    overflow: hidden;
}

.webgl {
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
}

.jitter {
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: jittery;
    z-index: -10;
    will-change: transform, filter;
}

.jitter.jitter-paused {
    animation: none;
    transform: none;
    filter: none;
    will-change: auto;
}

.interface-wrapper {
    width: 100%;
    top: 64px;
    left: 64px;
}

.icon-control-container {
    height: 26.5px;
    width: 26.5px;
}

@media only screen and (max-width: 768px) {
    .interface-wrapper {
        width: 100%;
        top: 24px;
        left: 24px;
    }

    .icon-control-container {
        height: 19.5px;
        width: 19.5px;
    }
}

@keyframes jittery {
    10% {
        transform: translate(-0.1px, -0.15px) scale(1, 1);
    }

    20% {
        transform: translate(0.15px, 0.1px) scale(1, 1);
    }

    30% {
        transform: translate(-0.2px, -0.25px) scale(1, 1);
    }

    40% {
        transform: translate(0.05px, 0.1px) scale(1, 1);
    }

    50% {
        transform: translate(-0.025px, -0.05px) scale(1, 1);
    }

    60% {
        transform: translate(0px, 0.075px) scale(1, 1);
    }

    70% {
        transform: translate(-0.075px, -0.1px) scale(1, 1);
    }

    80% {
        transform: translate(0.075px, 0.125px) scale(1, 1);
    }

    90% {
        transform: translate(-0.125px, -0.075px) scale(1, 1);
    }

    100% {
        transform: translate(0.075px, 0.025px) scale(1, 1);
    }
}

.liquid-intro {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff1ff;
    background: radial-gradient(ellipse at 50% 110%, #dc3ddf 0%, #9241c6 34%, #5745a2 64%, #285393 100%);
    opacity: 1;
    transition: opacity 350ms ease 550ms;
}

.liquid-intro__lens {
    position: absolute;
    left: 50%;
    top: 95%;
    width: min(38vw, 38vh, 350px);
    height: min(38vw, 38vh, 350px);
    min-width: 160px;
    min-height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ffd7ffcc 0%, #fa88ff88 20%, #d74de266 46%, transparent 72%);
    box-shadow: 0 0 70px 14px #f362ecaa, inset 0 0 45px #ffd7ff88;
    pointer-events: none;
    transition: transform 280ms ease-out;
    will-change: transform;
}

.liquid-intro.is-ready {
    background: linear-gradient(115deg, #384493, #513697 55%, #3f378e);
}

.liquid-intro.is-ready .liquid-intro__lens { opacity: 0; }

.liquid-intro__ready-scene {
    position: absolute;
    inset: 0;
    animation: liquid-ready-in 650ms ease-out both;
}

.liquid-intro__horizon {
    position: absolute;
    inset: 42% 0 0;
    background: #292b69;
    clip-path: polygon(0 14%, 48% 0, 100% 17%, 100% 100%, 0 100%);
}

.liquid-intro__desk {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 19%;
    width: min(76%, 710px);
    height: 9%;
    max-height: 38px;
    transform: translateX(-50%);
    border-radius: 7px;
    background: linear-gradient(#6850ae, #3c357e 66%, #1d204f 67%);
    box-shadow: 0 1px 0 #202052;
}

.liquid-intro__desk-leg {
    position: absolute;
    top: 86%;
    width: 13px;
    height: 28vh;
    background: #202052;
}

.liquid-intro__desk-leg:first-child { left: 10%; }
.liquid-intro__desk-leg:last-child { right: 10%; }

.liquid-intro__monitor {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 28%;
    width: min(40%, 380px);
    height: 52%;
    max-height: 230px;
    transform: translateX(-50%);
    padding: 13px;
    border-radius: 16px;
    background: #242351;
}

.liquid-intro__monitor-screen {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #7242b1, #40337e 64%, #282b69);
}

.liquid-intro__monitor-enter {
    padding: 18px;
    border: 0;
    background: transparent;
    color: #fff;
    font: 500 clamp(14px, 2.2vw, 22px)/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: clamp(2px, .5vw, 5px);
    white-space: nowrap;
    cursor: pointer;
    transition: text-shadow 200ms ease, transform 200ms ease;
}

.liquid-intro__monitor-enter:hover,
.liquid-intro__monitor-enter:focus-visible {
    text-shadow: 0 0 20px #ffd6ff;
    transform: scale(1.05);
}

.liquid-intro__monitor-enter:disabled { cursor: default; }

.liquid-intro__monitor-neck {
    position: absolute;
    left: 42%;
    bottom: -17%;
    width: 16%;
    height: 17%;
    background: #262554;
}

.liquid-intro__monitor-base {
    position: absolute;
    left: 39%;
    bottom: -25%;
    width: 22%;
    height: 9%;
    background: #202052;
}

@keyframes liquid-ready-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.liquid-intro__content {
    position: relative;
    z-index: 1;
    width: min(90vw, 800px);
    text-align: center;
    transform: translateY(-4vh);
    transition: opacity 220ms ease, transform 550ms ease;
}

.liquid-intro__title {
    margin: 0;
    color: #fff1ff;
    font: 300 clamp(38px, 7vw, 86px)/1.1 Arial, Helvetica, sans-serif;
    letter-spacing: clamp(5px, 1.2vw, 15px);
    text-shadow: 0 0 28px #ffd6ffcc;
}

.liquid-intro__subtitle {
    margin: 20px 0 0;
    color: #f9d9ff;
    font: 400 clamp(11px, 1.2vw, 14px)/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: clamp(2px, .5vw, 6px);
}

.liquid-intro__action {
    display: grid;
    place-items: center;
    min-height: 70px;
    margin-top: 32px;
}

.liquid-intro__progress,
.liquid-intro__enter {
    color: #fff1ff;
    font: 400 13px/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: 3px;
}

.liquid-intro__progress { opacity: .85; }

.liquid-intro__enter {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #ffd6ff;
    background: transparent;
    cursor: pointer;
    transition: letter-spacing 180ms ease, text-shadow 180ms ease;
}

.liquid-intro__enter:hover,
.liquid-intro__enter:focus-visible {
    letter-spacing: 4px;
    text-shadow: 0 0 18px #fff;
}

.liquid-intro__enter:disabled { cursor: default; }
.liquid-intro__enter span { margin-left: 8px; }

.liquid-intro__count {
    position: absolute;
    right: 24px;
    bottom: 20px;
    font: 400 11px/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: 2px;
    opacity: .7;
}

.liquid-intro__error h1,
.liquid-intro__error p {
    color: #fff1ff;
    font-family: Arial, Helvetica, sans-serif;
}

.liquid-intro.is-exiting { opacity: 0; }
.liquid-intro.is-exiting .liquid-intro__lens { z-index: 4; opacity: 1; transition: transform 950ms ease-in, opacity 150ms ease; }
.liquid-intro.is-exiting .liquid-intro__content { opacity: 0; transform: translateY(-7vh); }
.liquid-intro.is-exiting .liquid-intro__ready-scene { opacity: 0; transition: opacity 450ms ease; }
.liquid-intro.is-exiting .liquid-intro__count { opacity: 0; }

@media (max-width: 600px) {
    .liquid-intro__monitor { width: 68%; height: 39%; bottom: 30%; padding: 9px; }
    .liquid-intro__desk { width: 90%; bottom: 22%; }
    .liquid-intro__monitor-enter { font-size: 13px; letter-spacing: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .liquid-intro,
    .liquid-intro__lens,
    .liquid-intro__content { transition-duration: 0ms !important; }
}

h1,
h2,
h3,
h4,
h5,
p {
    /* font-family: ocr-a-std, monospace; */
    font-family: monospace;
    font-weight: 400;
    font-style: normal;
    color: white;
    /* mobile friendly font size */
    font-size: 16px;
}

/* if on mobile */
@media only screen and (max-width: 768px) {
    h1,
    h2,
    h3,
    h4,
    h5,
    p {
        font-size: 10px;
    }
}

br {
    padding-top: 8px;
    padding-bottom: 8px;
    height: 16px;
}

.loading::after {
    display: inline-block;
    animation: dotty steps(1, end) 1s infinite;
    content: '';
}

@keyframes dotty {
    0% {
        content: '   ';
    }
    25% {
        content: '. ';
    }
    50% {
        content: '.. ';
    }
    75% {
        content: '...';
    }
    100% {
        content: '   ';
    }
}
.blinking-cursor {
    background-color: #fff;
    width: 0.8em;
    height: 0.15em;
    -webkit-animation: 0.65s blink step-end infinite;
    -moz-animation: 0.65s blink step-end infinite;
    -ms-animation: 0.65s blink step-end infinite;
    -o-animation: 0.65s blink step-end infinite;
    animation: 0.65s blink step-end infinite;
}

@keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-moz-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-webkit-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-ms-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-o-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

.bios-start-button {
    border: 1.5px solid #fff;
    border-radius: 10%;
    padding: 2px;
}

.bios-start-button:hover {
    cursor: pointer;
    box-shadow: 0 0 40px rgba(0, 123, 255, 0.5); /* Subtle blue glow */
    transform: scale(1.02);
}

.bios-start-button p {
    box-sizing: border-box;
    padding: 8px;
}
/*
.bios-start-button:hover p {
    background-color: #fff;
    cursor: pointer;
    color: #000;
}
*/

.loading-screen-header {
    padding: 48px;
}

.loading-screen-body {
    padding-left: 48px;
    padding-right: 48px;
}

.loading-screen-footer {
    padding: 48px;
    padding-bottom: 64px;
}

.info-wrapper {
    top: 64px;
    left: 64px;
}

/* if on mobile make all loading screen elements have a padding of 16 */
@media only screen and (max-width: 768px) {
    .loading-screen-header {
        padding: 16px;
    }

    .info-wrapper {
        top: 16px;
        left: 16px;
    }

    .blinking-cursor {
        background-color: #fff;
        width: 0.4em;
        height: 0.08em;
        -webkit-animation: 0.65s blink step-end infinite;
        -moz-animation: 0.65s blink step-end infinite;
        -ms-animation: 0.65s blink step-end infinite;
        -o-animation: 0.65s blink step-end infinite;
        animation: 0.65s blink step-end infinite;
    }
    
    .loading-screen-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .loading-screen-footer {
        padding: 16px;
        padding-bottom: 32px;
    }
}

