@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

:root {
  --bg: #030508;
  --text: #c0fefc;
  --highlight: #00ffc3;
  --accent: #ff00d4;
  --panel: #0e1319;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Fira Code', monospace;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal {
  background: var(--panel);
  border: 1px solid #1f2d3d;
  border-radius: 10px;
  padding: 30px;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px #00ffc310;
}

.boot {
  color: #666;
  margin-bottom: 20px;
}

.typing {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: .15em solid var(--highlight);
  animation: typing 2s steps(30, end) forwards, blink .7s infinite;
}

.typing.delay1 { animation-delay: 0.5s; }
.typing.delay2 { animation-delay: 1.5s; }
.typing.delay3 { animation-delay: 3s; }

@keyframes typing {
  to { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}

.output {
  flex: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  margin-top: 10px;
}

.input-line {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.prompt {
  color: var(--highlight);
  margin-right: 10px;
}

#commandInput {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  flex: 1;
  font-family: inherit;
  font-size: 1rem;
}

.highlight { color: var(--highlight); }
.accent { color: var(--accent); }

.scanline {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 999;
}
