html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Courier New", monospace;
  background-color: black;
  color: #00ff00;
  overflow: hidden;
}

.container {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 700px;
  padding: 20px;
  background: rgba(0,0,0,0.7);
  border: 2px solid #00ff00;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ff00;
  z-index: 1;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

p.intro {
  font-size: 1.2em;
  margin-bottom: 30px;
}

a {
  display: block;
  font-size: 1.2em;
  margin: 10px 0;
  color: cyan;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: yellow;
  text-shadow: 0 0 5px yellow;
}

footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 0.9em;
  color: #999;
}

/* Lluvia Matrix CSS-only realista */
.matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: -1;
  overflow: hidden;
}

.matrix-column {
  width: 1ch;
  color: #00ff00;
  white-space: nowrap;
  text-shadow: 0 0 5px #00ff00;
  font-size: 16px;
  animation-name: fall;
  animation-iteration-count: infinite;
}

@keyframes fall {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Generar múltiples columnas con distintas velocidades y retrasos */
.matrix-column:nth-child(1) { animation-duration: 4s; animation-delay: 0s; }
.matrix-column:nth-child(2) { animation-duration: 5s; animation-delay: 1s; }
.matrix-column:nth-child(3) { animation-duration: 6s; animation-delay: 0.5s; }
.matrix-column:nth-child(4) { animation-duration: 4.5s; animation-delay: 1.2s; }
.matrix-column:nth-child(5) { animation-duration: 5.5s; animation-delay: 0.7s; }
.matrix-column:nth-child(6) { animation-duration: 6s; animation-delay: 1.5s; }
.matrix-column:nth-child(7) { animation-duration: 4.2s; animation-delay: 0.3s; }
.matrix-column:nth-child(8) { animation-duration: 5.2s; animation-delay: 1.1s; }
.matrix-column:nth-child(9) { animation-duration: 6.3s; animation-delay: 0.9s; }
.matrix-column:nth-child(10){ animation-duration: 4.8s; animation-delay: 1.3s; }

/* MEDIA QUERIES PARA MÓVILES */
@media (max-width: 768px) {
  .container {
    top: 5% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    padding: 15px;
  }

  .right-box {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 90% !important;
    margin: 20px auto;
  }

  pre.menora {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 90% !important;
    font-size: 0.6em !important;
    margin: 0 auto 20px auto;
  }

  h1 {
    font-size: 1.8em !important;
  }

  p.intro, a {
    font-size: 1em !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5em !important;
  }

  p.intro, a {
    font-size: 0.9em !important;
  }

  pre.menora {
    font-size: 0.5em !important;
  }
}
