:root {
    --terminal-color: #ffb000;
    --terminal-bg: #0a0a0a;
    --glow-color: #ffb00080;
    --scanlines-opacity: .2;
}

@media (max-width: 600px) {
  :root {
    --scanlines-opacity: .1;
  }
}

*:focus {
    outline: none !important;
}

@font-face {
    font-family: 'terminal-simulation';
    src: url('fonts/Web437_IBM_Model3x_Alt4.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: var(--terminal-color);
    font-family: monospace;
    overflow: hidden;
    height: 100dvh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    /* Prevent scroll */
    inset: 0;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.scanlines {
    content: " ";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, var(--scanlines-opacity)) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    background-position: 0 0, 0 0;
    background-repeat: repeat, repeat;

    opacity: .5;
    mix-blend-mode: normal;

    z-index: 2;
}

.reflection {
    content: " ";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: url('img/terminal-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: .5;
    mix-blend-mode: screen;
    z-index: 1;
}