/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background */
body {
  background: black;
  color: #00ff66;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.5;

  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

/* Terminal container */
.terminal {
  position: relative;
  width: 80%;
  max-width: 800px;
  padding: 24px;
  border: 1px solid #00ff66;
  text-shadow: 0 0 5px rgba(0, 255, 102, 0.8);
}

/* Output text */
#output {
  white-space: pre-wrap;
}

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: #00ff66;
  margin-left: 5px;
  animation: blink 1s steps(1) infinite;
}

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

/* Scanlines */
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

/* CRT flicker */
.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 102, 0.03);
  animation: flicker 0.15s infinite;
  pointer-events: none;
}

@keyframes flicker {
  0% { opacity: 0.05; }
  50% { opacity: 0.1; }
  100% { opacity: 0.05; }
}

