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

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0b021a;
    font-family: 'VT323', monospace;
    overflow: hidden;
    color: #ff00ff;
}

/* CRT Effects */
.crt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 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% 2px, 3px 100%;
    z-index: 100;
    pointer-events: none;
}

.screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 99;
    pointer-events: none;
}

/* Synthwave Background */
.sun {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: linear-gradient(180deg, #ff00ff 0%, #ffff00 100%);
    border-radius: 50%;
    box-shadow: 0 0 50px #ff00ff;
    z-index: 1;
}

.grid-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-image: 
        linear-gradient(transparent 95%, #00ffff 100%),
        linear-gradient(90deg, transparent 95%, #00ffff 100%);
    background-size: 100px 20px, 40px 100px;
    transform-origin: bottom;
    transform: perspective(500px) rotateX(60deg);
    z-index: 2;
    animation: gridMove 2s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 20px; }
}

/* Terminal Content */
.terminal {
    position: relative;
    z-index: 10;
    padding: 40px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-shadow: 0 0 5px #ff00ff;
}

h1 {
    font-size: 2rem;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #00ffff;
    padding-bottom: 10px;
    display: inline-block;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.output {
    flex-grow: 1;
    overflow-y: hidden;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.output p {
    margin: 5px 0;
    animation: textFlicker 4s infinite alternate;
}

.input-line {
    display: flex;
    font-size: 1.5rem;
    align-items: center;
}

.input-line span {
    margin-right: 15px;
}

input {
    background: transparent;
    border: none;
    color: #ff00ff;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    outline: none;
    width: 100%;
    text-shadow: 0 0 5px #ff00ff;
}

@keyframes textFlicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 0.99; }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.4; text-shadow: none; }
}
