/* =======================
   Estilo terminal retro con resaltado
   ======================= */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #00ff00;
  font-family: 'Google Sans Code', monospace;
  font-size: 16px;
  line-height: 1.5;
  padding: 20px;
}

/* Clases de resaltado */
.syntax-green {
  color: #00ff00;
}

.syntax-yellow {
  color: #ffff00;
}

.syntax-gray {
  color: #cccccc;
}

/* Selector de idioma */
.language-selector {
  margin-bottom: 20px;
}

.language-selector label,
.language-selector select {
  color: #00ff00;
  background: transparent;
  border: none;
  padding: 3px;
  font-family: inherit;
}

.language-selector select {
  width: auto;
  min-width: 100px;
  max-width: 150px;
}


/* Layout principal */
.centered {
  max-width: 800px;
  margin: 0 auto;
}

/* Intro sin borde, texto justificado y título centrado */
.intro {
  padding: 8px 16px;
  max-width: 500px;          /* Reduce el ancho */
text-align: center;
  margin: 0 auto 20px;       /* Centra horizontalmente */
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.3;
  font-size: 15px;
  text-align: justify;
}


.intro h1 {
  font-size: 35px;
  margin-bottom: 6px;
  text-align: center;
}

.intro ul {
  margin-top: 4px;
  padding-left: 16px;
}

.intro ul li {
  margin-bottom: 2px;
}

.cta {
  margin-top: 8px;
}

/* Formulario más angosto */
form {
  /* border: 1px solid #00ff00; */ /* Eliminado el borde */
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

input, select, button {
  background-color: #000;
  color: #00ff00;
  border: none; /* Quitamos el borde completo */
  border-bottom: 2px solid #00ff00; /* Solo línea inferior */
  padding: 8px;
  font-family: 'Google Sans Code', monospace;
  font-size: 14px;
  max-width: 300px;
  width: 100%;
  outline: none; /* Quita el contorno al enfocar */
  transition: border-color 0.3s;
}


button {
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background-color: #003300;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #ffff00;
  animation: typing 2s steps(8) 1 normal both, blink 0.8s step-end infinite;
  margin: 0 auto;
}


@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 8ch; /* Número de caracteres */
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

