@font-face {
  font-family: 'matrix-code';
  src: url("font/matrix-code.eot?#iefix") 
  format("embedded-opentype"), url("font/matrix-code.woff") 
  format("woff"), 
  url("font/matrix-code.ttf") 
  format("truetype"), 
  url("font/matrix-code.svg#svgFontName") 
  format("svg"); 
}

html, body {
  -webkit-font-smoothing: antialiased;
  font: normal 12px/14px "Carrois Gothic", sans-serif;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: #fff;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; 
}

body {
  background: black; }

  #stats {
    
    z-index: -100; }
  
  
  p a {
    color: #fff; }
    p a:hover {
      color: #EFFDEB;
      text-shadow: 0px 0px 5px #0c6b0c; }
  
        
.lock-container {
  width: 96%;
  height: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  pointer-events: none;
}

/* Candado con Contornos Neón */
.loader {
  width: 38em;
  height: 18em;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px #0c6b0c);
}

/* Estilos del Candado */
.lock-top,
.lock-body,
.lock-hole {
  stroke: #0f8a0f;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: draw 5s ease-in-out infinite;
  filter: drop-shadow(0 0 2px #0c6b0c);
  z-index: 9999;
}

.lock-body {
  animation-delay: 0.2s;
}

.lock-hole {
  stroke-width: 2;
  animation-delay: 1s;
}

@keyframes draw {
  0% {
      stroke-dashoffset: 180;
  }
  50% {
      stroke-dashoffset: 0;
  }
  100% {
      stroke-dashoffset: -180;
  }
}

/* Efecto de Glitch en el Texto Mejorado */
.loading-text {
  position: relative;
  color: #00a824;
  margin-top: 40px;
  font-size: 1.2rem;
  font-family: 'Press Start 2P', sans-serif;
  animation: glitch 0.5s infinite;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #0c6b0c, 0 0 10px rgba(40, 187, 40, 0.5), 0 0 20px rgba(12, 107, 12, 0.2);
}

.loading-text::before,
.loading-text::after {
  content: "Verificando seguridad...";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: #0c6b0c;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.loading-text::before {
  left: 2px;
  text-shadow: -2px 0 red;
  animation: glitchTop 2.5s infinite linear;
}

.loading-text::after {
  left: -2px;
  text-shadow: -2px 0 blue;
  animation: glitchBottom 2.5s infinite linear;
}

/* Nueva Barra de Progreso Cuadrada */
.progress-bar {
  width: 60%;
  height: 25px;
  background-color: #000000; /* Fondo de la barra de progreso */
  margin-top: 30px;
  border-radius: 4px; /* Bordes más rectos */
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 5px #0c6b0c, 0 0 15px #0c6b0c;
  z-index: 999;
  border: 2px solid #0c6b0c;
}

.text-container {
  width: 100%; /* Ajusta el ancho para que coincida con el contenedor */
  text-align: center;
  margin-bottom: 20px; /* Espacio entre el texto y la barra de progreso */
}

.progress {
  width: 0%;
  height: 100%;
  background-color: #2ea100;
  animation: loading 15s linear forwards;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.percentage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Press Start 2P', sans-serif;
  z-index: 100;
  text-shadow: 0 0 10px #000000;
}

/* Animaciones para la barra de progreso y el texto */
@keyframes loading {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}


/* Fondo desenfocado */
#background-blur {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44%;
  height: 60%;
  pointer-events: none;
  filter: blur(122px); /* Desenfoque aplicado solo al fondo */
  z-index: 5; /* Detrás de todo */
  border-radius: 2px;
}

/* Contenedor centrado para el contenido */
#loader {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(7, 7, 7, 0.969); /* Fondo semi-transparente */
  width: 44%;
  height: 60%;
  max-width: 500px; /* Tamaño máximo en pantallas grandes */
  max-height: 550px; /* Tamaño máximo en pantallas grandes */
  z-index: 6;
  pointer-events: none;
}

/* Estilos para dispositivos móviles */
@media (max-width: 600px) {
  #loader {
    width: 90%; /* Ancho ajustado para móviles */
    max-width: 500px; /* Tamaño máximo en dispositivos pequeños */
    max-height: 550px; /* Espacio interno adicional */

  .loading-text {
      font-size: 1rem; /* Reduce el tamaño del texto */
      line-height: 1.8; /* Más espacio entre líneas para móviles */
      word-spacing: 12px; /* Más espacio entre palabras para móviles */
    }
  }

  .loading-text {
    font-size: 1rem; /* Texto más pequeño en móviles */
  }

  .progress-bar {
    width: 80%; /* Ancho de la barra de progreso reducido */
    height: 20px; /* Altura de la barra ajustada para móviles */
  }

  .percentage {
    font-size: 0.8rem; /* Texto del porcentaje más pequeño */
  }
}


#canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: #000; /* Fondo negro sólido */
  pointer-events: none;
  z-index: -1;
}

