/* NEXUS BIOS v2.0 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    color: #00ff66;
    font-family: Consolas, "Courier New", monospace;
}

/* MATRIX BACKGROUND */
#matrixCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .12;
}

/* TERMINAL */
#terminal {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    height: 70%;
    padding: 25px;
    border: 2px solid #00ff66;
    background: rgba(0, 10, 0, .82);
    box-shadow:
        0 0 12px #00ff66,
        inset 0 0 25px rgba(0, 255, 80, .25);
    z-index: 20;
    overflow: hidden;
}

#header {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 25px;
    color: #33ff99;
}

.green {
    color: #00ff66;
}

#terminalText {
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 18px;
}

#cursor {
    display: inline-block;
    margin-top: 8px;
    font-size: 22px;
    animation: blink .8s infinite;
}

/* LOGIN SCREEN */
#loginScreen {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    padding: 30px;
    border: 2px solid #00ff66;
    background: rgba(0, 20, 0, .95);
    box-shadow: 0 0 35px #00ff66;
    z-index: 50;
}

#loginScreen h2 {
    text-align: center;
    margin-bottom: 20px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #00ff66;
    border: 2px solid #00ff66;
    outline: none;
    font-family: inherit;
}

.field input:focus {
    box-shadow: 0 0 12px #00ff66;
}

#loginButton {
    width: 100%;
    padding: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #00ff66;
    background: #000;
    border: 2px solid #00ff66;
    transition: .25s;
}

#loginButton:hover {
    background: #00ff66;
    color: #000;
}

#loginMessage {
    margin-top: 18px;
    text-align: center;
    color: #ff5555;
}

/*  WARNING */
#warningPanel {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 40;
    display: none;
}

#warningPanel h1 {
    color: #ff2222;
    font-size: 52px;
    text-shadow:
        0 0 10px red,
        0 0 20px red;
    animation: warningFlash .7s infinite;
}

#warningPanel h2 {
    margin-top: 12px;
    color: #ffaa33;
}

/* NEDRY */
#nedryContainer {
    display: none;
    position: absolute;
    inset: 0;
    justify-content: center;
    align-items: center;
    z-index: 45;
    pointer-events: none;
}

#nedry {
    width: 340px;
    border: 4px solid #00ff66;
    box-shadow:
        0 0 35px #00ff66,
        0 0 90px rgba(0, 255, 100, .4);
}

/*  DECRYPTION */
#decryptScreen {
    display: none;
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 70;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#progressBar {
    width: 70%;
    height: 34px;
    border: 2px solid #00ff66;
    margin-top: 25px;
}

#progressFill {
    width: 0;
    height: 100%;
    background: #00ff66;
}

#progressText {
    margin-top: 16px;
    font-size: 26px;
}

/* LOGO */
#logoScreen {
    display: none;
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 80;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#logo {
    width: 300px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 5px rgb(255, 119, 0));
}

#logoScreen h1 {
    font-size: 48px;
    color: #ff680a;
}

#logoScreen h2 {
    margin-top: 18px;
    color: #ff680a;
}

/* DISK LIGHT */
#diskLight {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #220000;
    z-index: 100;
}

.disk-active {
    animation: diskBlink .18s infinite;
}

/* FULLSCREEN */
#fullscreenButton {
    position: absolute;
    bottom: 30px;
    left: 30px;
    padding: 10px 18px;
    background: #001400;
    color: #00ff66;
    border: 2px solid #00ff66;
    cursor: pointer;
    z-index: 90;
}

#fullscreenButton:hover {
    background: #00ff66;
    color: #000;
}

/* CRT EFFECTS */
#crtOverlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    background:
        radial-gradient(circle at center,
            transparent 55%,
            rgba(0, 0, 0, .45) 100%);
}

#scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 201;
    opacity: .18;
    background:
        repeating-linear-gradient(to bottom,
            rgba(255, 255, 255, .05) 0,
            rgba(255, 255, 255, .05) 1px,
            transparent 2px,
            transparent 4px);
    animation: scanMove 8s linear infinite;
}

#noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .04;
    background: url("../assets/crt-noise.png");
    z-index: 202;
    animation: noiseMove .18s steps(2) infinite;
}

#vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle,
            transparent 58%,
            rgba(0, 0, 0, .65));
    z-index: 203;
}

/* ANIMATIONS */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes warningFlash {
    50% {
        opacity: .2;
    }
}

@keyframes diskBlink {
    0% {
        background: #550000;
    }
    50% {
        background: #ff2222;
    }
    100% {
        background: #550000;
    }
}

@keyframes scanMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 400px;
    }
}

@keyframes noiseMove {
    from {
        transform: translate(0);
    }
    to {
        transform: translate(-6px, -6px);
    }
}

body {
    animation: flicker .14s infinite;
}

/* RESPONSIVE */
@media(max-width:768px) {
    #terminal {
        width: 96%;
        height: 76%;
        font-size: 14px;
    }

    #warningPanel h1 {
        font-size: 34px;
    }

    #nedry {
        width: 240px;
    }

    #loginScreen {
        width: 92%;
    }
}