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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: black;
  font-family: 'Courier New', monospace;
  color: #00ff99;
}

/* Canvas background (cosmic noise) */
canvas#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: black;
}

/* Centered terminal window */
.terminal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  padding: 20px;
  border: 2px solid #00ff99;
  border-radius: 8px;
  box-shadow: 0 0 20px #00ff99;
  z-index: 1;
  width: 90%;
  max-width: 1000px;
  max-height: 70%;
  overflow-y: auto;
}

/* Output window */
.terminal-output {
  min-height: 150px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 10px;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: #00ff99 transparent;
}

.terminal-output::-webkit-scrollbar {
  width: 6px;
}
.terminal-output::-webkit-scrollbar-thumb {
  background: #00ff99;
}

/* Input prompt */
.terminal-input {
  display: flex;
  align-items: center;
}

.terminal-input span {
  color: #00ff99;
  margin-right: 8px;
}

.terminal-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #00ff99;
  font-family: inherit;
  font-size: 1rem;
  caret-color: #00ff99;
}

/* Glowing text animation */
@keyframes glow {
  0% { text-shadow: 0 0 5px #00ff99; }
  50% { text-shadow: 0 0 20px #00ff99; }
  100% { text-shadow: 0 0 5px #00ff99; }
}

.terminal-container, .terminal-output, .terminal-input input {
  animation: glow 2s infinite alternate;
}
