@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 0, 0.03) 2px, rgba(0, 255, 0, 0.03) 4px);
    font-family: 'VT323', 'Courier New', monospace;
    color: #00ff00;
    overflow-x: hidden;
    animation: flicker 0.15s infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.98; }
    100% { opacity: 1; }
}

@keyframes glitch {
    0% { text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
    25% { text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff; }
    50% { text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff; }
    75% { text-shadow: -2px 0 #00ffff, 2px 0 #ff00ff; }
    100% { text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'VT323', 'Courier New', monospace;
    color: #00ff00;
    text-transform: uppercase;
    letter-spacing: 3px;
}

h1 {
    font-size: 48px;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
    animation: glitch 3s infinite;
    margin-bottom: 20px;
}

h3 {
    font-size: 28px;
    color: #00ff00;
    margin: 20px 0;
}

h4 {
    font-size: 22px;
    color: #00ffff;
}

p, pre {
    font-family: 'VT323', 'Courier New', monospace;
    color: #00ff00;
    font-size: 20px;
    line-height: 1.6;
    margin: 15px 0;
}

.ascii-art {
    color: #00ff00;
    font-size: 12px;
    line-height: 1.2;
    white-space: pre;
    text-align: left;
    display: inline-block;
    text-shadow: 0 0 5px #00ff00;
}

.blink {
    animation: blink 1s step-start infinite;
}

hr {
    border: none;
    border-top: 2px solid #00ff00;
    box-shadow: 0 0 5px #00ff00;
    margin: 30px 0;
}

section {
    width: 90%;
    max-width: 900px;
    padding: 40px;
    margin: 20px auto;
}

#grid-item {
    text-align: center;
    margin: 20px 0;
}

.image-container {
    padding: 20px;
}

.image-frame {
    border: 3px solid #00ff00;
    box-shadow: 0 0 20px #00ff00, 0 0 40px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
    padding: 10px;
    background-color: rgba(0, 20, 0, 0.8);
    display: inline-block;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(transparent, rgba(0, 255, 0, 0.2));
    animation: scanline 3s linear infinite;
    pointer-events: none;
    z-index: 10;
}

#stash-image {
    max-width: 100%;
    max-height: 500px;
    display: block;
    filter: contrast(1.1) brightness(0.95);
}

.timestamp {
    color: #ff0000;
    font-size: 18px;
    margin-top: 15px;
}

.skull {
    color: #00ff00;
    font-size: 10px;
    line-height: 1.2;
    white-space: pre;
    text-align: left;
    display: inline-block;
    text-shadow: 0 0 5px #00ff00;
}

/* CRT screen effect overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}
