body {
  margin: 0;
  padding: 2rem;
  background: #001030;
  color: #90ee90;
  font-family: Consolas, monospace;
  overflow-x: hidden;
  user-select: none;
  position: relative;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  background-image: radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.03),
      transparent 40%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.05) 3px,
      transparent 4px
    );
  animation: noise 0.2s infinite;
  mix-blend-mode: screen;
  z-index: 1000;
}

@keyframes noise {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-5%, -5%);
  }
  40% {
    transform: translate(-10%, 5%);
  }
  60% {
    transform: translate(5%, -10%);
  }
  80% {
    transform: translate(10%, 10%);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.flicker {
  animation: flicker 1.5s infinite;
}

.cursor {
  display: inline-block;
  width: 10px;
  background-color: #90ee90;
  margin-left: 3px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

#terminal {
  max-width: 900px;
  margin: 0 auto 1rem auto;
  white-space: pre-wrap;
  line-height: 1.3em;
  font-size: 16px;
}

.buttons {
  max-width: 900px;
  margin: 1rem auto;
  text-align: center;
}

.buttons button {
  margin: 0 1rem;
  padding: 0.5rem 1.5rem;
  font-family: Consolas, monospace;
  font-size: 16px;
  background-color: #003366;
  color: #90ee90;
  border: 1px solid #90ee90;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.buttons button:hover {
  background-color: #005599;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}
