@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #050505; 
    color: #94c637;
    font-family: 'Press Start 2P', monospace;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#matrix-rain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; 
    opacity: 0.25; 
}

.terminal-overlay {
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    z-index: 10; 
    pointer-events: none;
}

.terminal-overlay::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    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% 3px, 3px 100%;
}

.terminal-overlay::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 95%);
    box-shadow: inset 0 0 50px #000;
}


.shake-anim {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both infinite;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.glitch-effect {
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { filter: invert(0); }
    20% { filter: invert(1); }
    40% { filter: invert(0); }
    60% { filter: invert(1); }
    80% { filter: invert(0); }
    100% { filter: invert(1); opacity: 0; }
}

.container {
    width: 90%; 
    max-width: 1000px;
    z-index: 20; 
    position: relative;
    text-shadow: 0 0 10px #94c637, 0 0 20px #94c637; 
}

.terminal-frame {
    background-color: rgba(0, 0, 0, 0.85); 
    border: 2px solid #94c637; 
    padding: 20px;
    border-radius: 10px; 
    box-shadow: 0 0 15px rgba(148, 198, 55, 0.3), inset 0 0 10px #94c637; 
    word-wrap: break-word; 
    overflow-x: hidden; 
}

.output-box {
    margin-bottom: 20px;
    line-height: 1.8rem;
    font-size: 14px; 
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: #94c637;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% { opacity: 0; }
}

.output-line {
    margin-bottom: 8px;
    word-wrap: break-word; 
}

.data-highlight {
    color: #fff; 
    text-shadow: 0 0 5px #94c637;
}

.button-wrapper {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
    margin-top: 20px;
}

.fallout-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #94c637;
    border: 1px solid #94c637; 
    font-family: 'Press Start 2P', monospace;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 0 5px rgba(148, 198, 55, 0.3);
    transition: all 0.3s ease;
}

.green-btn:hover {
    background-color: #94c637;
    color: #000;
    box-shadow: 0 0 15px rgba(148, 198, 55, 0.6); 
}

.red-btn {
    color: #ff3b3b; 
    border-color: #ff3b3b; 
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 5px rgba(255, 59, 59, 0.3);
    animation: pulse-red 2s infinite;
}

.red-btn:hover {
    background-color: #ff3b3b; 
    color: #fff; 
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.6); 
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 5px rgba(255, 59, 59, 0.3); }
    50% { box-shadow: 0 0 10px rgba(255, 59, 59, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 59, 59, 0.3); }
}
