/* ==========================
    ESTILO GENERAL
   ========================== */
body {
  margin: 0;
  padding: 15px 20px;
  min-height: 99%;
  width: 100%;
  max-width: 100%;
  color: #519975;
  background: #211D1B;
  font-family: cursor, monospace;
  overflow-x: auto; /* Scroll horizontal si es necesario */
}

::selection, ::-moz-selection {
  color: #211830;
  background-color: #519975;
}

textarea {
  left: -1000px;
  position: absolute;
}

b {
  font-weight: bold;
  text-decoration: underline;
}

/* ==========================
        CURSOR
   ========================== */
.cursor {
  font-size: 12px;
  color: #73ABAD;
  background-color: #73ABAD;
  position: relative;
  opacity: 1;
  height: 1.5em;
  width: 10px;
  transform: translateY(4px);
  overflow: hidden;
  text-indent: -5px;
  display: inline-block;
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

/* ==========================
      TERMINAL INPUT
   ========================== */
#command {
  cursor: text;
  height: 50px;
  color: #73ABAD;
}

#liner {
  line-height: 1.3em;
  margin-top: -2px;
  animation: show 0.5s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

#liner::before {
  color: #519975;
  content: "Visitante@HackersdeMexico.org:~$";
}

#liner.password::before {
  content: "Password:";
}

@keyframes show {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==========================
        PÁRRAFOS
   ========================== */
p {
  display: block;
  line-height: 1.3em;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.05em;
  animation: typing 0.5s steps(30, end);
}

.no-animation {
  animation: none !important;
}

.margin {
  margin-left: 20px;
}

@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

/* ==========================
        COLORES
   ========================== */
.index { color: #DCDCCC; }
.color2 { color: #B89076; }
.color3 { color: #16CC62; }
.color4 { color: #bebfc2; }
.color5 { color: #c8a7ff; }

.command {
  color: #73ABAD;
  text-shadow: 0 0 5px #73ABAD;
}

.error { color: #B89076; }
.white { color: #fff; }

.inherit,
a {
  color: #9C8394;
}

a {
  text-decoration: inherit;
}

a:hover {
  background: #73ABAD;
  color: #211830;
}

a:focus { outline: 0; }

/* ==========================
   ASCII RESPONSIVE (MÁGICO)
   ========================== */
.ascii {
  display: block;
  width: 100%;
  white-space: pre;
  overflow-x: auto;
  font-family: monospace;

  /* 🔥 Tamaño dinámico REAL en celular */
  font-size: clamp(8px, 3.2vw, 18px);

  line-height: 1.05em;
  animation: none !important;   /* Cancela typing */
}

/* Evita el glitch en PC */
@media (min-width: 768px) {
  .ascii {
    font-size: 15px;
  }
}

/* =======================================
   🌟 FIX UNIVERSAL PARA ASCII
   ======================================= */
.ascii * {
  white-space: pre !important;
  animation: none !important;   /* Cancela typing en cada línea del ASCII */
  width: auto !important;
}

/* Fix específico para <span> y <font> en ASCII */
.ascii span,
.ascii font {
  display: block !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
