body {
  background-color: black;
  color: #00ff99;
  font-family: "Courier New", Courier, monospace;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
  animation: screen-flicker 8s infinite;
}

a {
  color: #00ff99;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.title {
  font-size: 2.5rem;
  text-align: left;
  margin-bottom: 0.5rem;
  animation: glitch-glow 4s infinite alternate;
}

.glow {
  color: #00ffcc;
  text-shadow: 0 0 8px #00ffcc, 0 0 16px #00ffaa;
}

.subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #00ff99;
}

#typed-text {
  white-space: pre-wrap;
  font-size: 1rem;
}

.cursor {
  display: inline-block;
  color: #00ff99;
  font-weight: bold;
  font-size: 1rem;
  animation: blink 1s infinite;
}

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

@keyframes screen-flicker {
  0%, 100% { opacity: 1; }
  49.9% { opacity: 0.98; }
  50% { opacity: 1; }
  55% { opacity: 0.97; }
  60% { opacity: 1; }
  70% { opacity: 0.99; }
  80% { opacity: 1; }
}

@keyframes glitch-glow {
  0%   { text-shadow: 0 0 10px #00ffaa; }
  25%  { text-shadow: 0 0 5px #00ffaa, 2px 0 #0f0; }
  50%  { text-shadow: 0 0 15px #00ffaa, -2px 0 #0ff; }
  75%  { text-shadow: 0 0 20px #00ffaa, 1px -1px #fff; }
  100% { text-shadow: 0 0 10px #00ffaa; }
}

/* Enhanced Scan Line Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 153, 0.12),
    rgba(0, 255, 153, 0.12) 1px,
    rgba(0, 255, 153, 0.03) 1px,
    rgba(0, 255, 153, 0.03) 4px
  );
  z-index: 0;
  pointer-events: none;
}
