@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* Main Overlay Container */
.retro-terminal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0d0d0d;
  color: #0f0; /* Green Text */
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  padding: 20px;
  box-sizing: border-box;
  z-index: 9999; /* Always on top */
  overflow-y: auto;
  text-shadow: 0 0 4px #0f0;
}

/* CRT Scanline Effect */
.scanline {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.2)
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 10000;
}

/* Input Area */
.input-line {
  display: flex;
  margin-top: 10px;
}
.prompt { margin-right: 10px; color: #0f0; }
#terminal-input {
  background: transparent;
  border: none;
  color: #0f0;
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  flex-grow: 1;
  outline: none;
  caret-color: #0f0;
}

/* Output Styling */
.output-line { margin-bottom: 5px; white-space: pre-wrap; }
.error { color: #ff3333; text-shadow: 0 0 5px #f00; }
.info { color: #ffff33; text-shadow: 0 0 5px #ff0; }
.secret { color: #ff00ff; text-shadow: 0 0 5px #f0f; }

/* Hide Terminal Class */
.terminal-hidden {
  display: none !important;
}