/*
 * they said it couldn't be done
 * they were right
 */

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* the void watches back */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* where dreams go to render */
body {
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* the machine remembers everything */
.crt {
    width: 100%;
    max-width: 900px;
    height: 80vh;
    background: #0d0d0d;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow:
        inset 0 0 100px rgba(0, 255, 0, 0.05),
        0 0 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* scan lines from a forgotten broadcast */
.crt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

/* the edges blur when you're not looking */
.crt::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 11;
}

/*
 * phosphor decay: 22ms
 * do not adjust your monitor
 */
.screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: #0f0;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* we tried to hide the scrollbar once. it found us. */
.screen::-webkit-scrollbar {
    width: 8px;
}

.screen::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.screen::-webkit-scrollbar-thumb {
    background: #0f0;
    border-radius: 4px;
}

/* each line a memory, each memory a lie */
.output-line {
    margin-bottom: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.input-line {
    display: flex;
    align-items: center;
}

/* the prompt waits. it has always been waiting. */
.prompt {
    color: #0f0;
    margin-right: 10px;
}

/* type your secrets here - we're listening */
#command-input {
    background: transparent;
    border: none;
    outline: none;
    color: #0f0;
    font-family: 'VT323', monospace;
    font-size: 20px;
    flex: 1;
    caret-color: #0f0;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/*
 * the cursor blinks in morse code
 * we've never decoded the message
 */
.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #0f0;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* is it flickering, or are your eyes adjusting to the dark? */
.flicker {
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% {
        opacity: 0.97;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.98;
    }
}

/* the light calls to those who remember */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    }

    to {
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.4);
    }
}

/*
 * ASCII: American Standard Code for Information Interchange
 * also: A Secret Cipher Inside Information
 */
.ascii-art {
    color: #0f0;
    line-height: 1.1;
    font-size: 12px;
    white-space: pre;
    font-family: 'Courier New', monospace;
}

/* the records of what was */
.interactive-viewer {
    border: 1px solid #0f0;
    padding: 10px;
    margin: 10px 0;
    background: rgba(0, 255, 0, 0.02);
}

.viewer-header {
    color: #0f0;
    border-bottom: 1px solid #0a0;
    padding-bottom: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.7;
}

.viewer-entry {
    padding: 4px 8px;
    margin: 2px 0;
    transition: all 0.1s ease;
}

/* the one you've chosen (or has it chosen you?) */
.viewer-entry.selected {
    background: rgba(0, 255, 0, 0.15);
    border-left: 3px solid #0f0;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.4);
}

.viewer-entry.redacted {
    color: #a00;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

.viewer-entry.corrupted {
    color: #ff0;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.3);
}

.viewer-entry.error {
    color: #f55;
}

.viewer-entry.warning {
    color: #fa0;
}

.viewer-entry.unknown {
    color: #f0f;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
}

.viewer-footer {
    color: #0f0;
    border-top: 1px solid #0a0;
    padding-top: 8px;
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.7;
}

/* smaller screens, smaller secrets */
@media (max-width: 600px) {
    .crt {
        padding: 20px;
        height: 90vh;
    }

    .screen {
        font-size: 16px;
    }

    #command-input {
        font-size: 16px;
    }

    .ascii-art {
        font-size: 10px;
    }
}

/*
 * END OF FILE
 *
 * or is it?
 *
 * (it is)
 *
 * (or is it?)
 */
