* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: Poppins, system-ui;
  background-color: #000000;
  color: #ffffff;
  overflow: hidden;
}

.terminal {
  position: relative;
  min-height: 100vh;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.terminal-header {
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.terminal-header__line {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.header-fill {
  flex: 1;
  overflow: hidden;
}
.header-fill::before {
  content: "----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------";
  white-space: nowrap;
  display: block;
  font-size: 14px;
}

/* CÓDIGO */
.code-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.code-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.code-line {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.13em;
  white-space: pre;
  opacity: 0.95;
}

/* FOOTER */
.terminal-footer {
  font-size: 12px;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
}

/* ENTER final */
.enter-line {
  text-align: center;
  animation: blink 1s steps(1) infinite;
}

/* Evita que se muestre el cursor de texto */
body, .code-area, .code-line {
  user-select: none;     /* no se puede seleccionar texto */
  cursor: default;       /* cursor normal */
}

/* Al pasar sobre [ENTER] que parezca clickeable */
.enter-line {
  cursor: pointer;
}

@keyframes blink {
  50% { opacity: 0.4; }
}

@media (max-width: 768px) {
  .terminal { padding: 10px 12px; }
  .terminal-header, .code-line { font-size: 11px; }
  .terminal-footer { flex-direction: column; gap: 2px; }
}
