* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    height: 100%;
    overflow: hidden;
}

.contenedor1{
    padding-top: 30px;
    text-align: center;
}

.presentacion{
    padding-top: 10px;
    margin-bottom: 10px;
    font-family:'Franklin Gothic Medium';
    font-size: 18px;
    color: rgb(160, 149, 255);
    margin:0px auto;
    background-color: rgb(68, 73, 78);
    width: 300px;
    height: auto;
}

.contenedor{
    padding-top: 20px;
    margin:0px auto;
    text-align: center;
    background-color: rgba(110, 112, 112, 0.61);
    width: 300px;
    height: 323px;
}

.botonW{
    font-family:'Franklin Gothic Medium';
    color: rgb(160, 149, 255);
    width: 100px;
    height: 30px;
    
}

/* Página de carga */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1s ease;
    z-index: 10000;
}

#loader.fade-out {
    opacity: 0;
    pointer-events: none; /* Evitar que se pueda interactuar con el loader cuando está desapareciendo */
}

#loader img {
    max-width: 100%; /* Ajusta el tamaño del gif según tu preferencia */
    max-height: 100%;
}

/* Ocultar contenido por defecto hasta que cargue la página */
#content {
    display: none;
}

/* Mostrar contenido cuando la carga finalice */
#content.show {
    display: block;
}

/* Fin pantalla de carga */

/* Video y texto menu */

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer {
    position: fixed;
    bottom: 20px; /* Puedes ajustar esta distancia según tus necesidades */
    width: 100%;
    text-align: center;
    z-index: 2;
}

.rainbow-text {
    font-size: 35px; /* Ajusta el tamaño de la fuente según tus necesidades */
    animation: rainbow 3s infinite, move 3s infinite linear;
}

@keyframes rainbow {
    0% { color: red; }
    16.6% { color: orange; }
    33.3% { color: yellow; }
    50% { color: green; }
    66.6% { color: blue; }
    83.3% { color: indigo; }
    100% { color: violet; }
}

@keyframes move {
    0% { transform: translate(0, 0); }
    25% { transform: translate(3px, -3px); }
    50% { transform: translate(-3px, 3px); }
    75% { transform: translate(3px, 3px); }
    100% { transform: translate(0px, 0px); }
}

/* Fin video y texto */

/* Introducir codigo */

.hidden {
    display: none;
}

.overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Asegura que esté por encima de otros elementos */
}

.code-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px;
}

#buttonContainer {
    margin-top: 20px;
    margin-left: 110px;
}

/* Botón con estética internet antiguo */
#antiqueButton {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #000;
    background-color: #f0f0f0;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #888;
    cursor: pointer;
    transition: all 0.2s ease;
}

#antiqueButton:hover {
    background-color: #e0e0e0;
}

#antiqueButton:active {
    box-shadow: 1px 1px 0px #888;
    transform: translate(1px, 1px);
}

.clear-cache-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: red;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid black;
    cursor: pointer;
    z-index: 999;
}

.clear-cache-button:active {
    background-color: darkred;
}

#easterEgg {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1; /* Asegura que esté por encima de todos los elementos */
  }
  
  #easterEggImage {
    max-width: 300px; /* Tamaño inicial */
    height: auto;
    cursor: pointer;
  }
  
  @media (max-height: 768px) {
    #easterEggImage {
      max-width: 200px; /* Se achica en pantallas pequeñas */
    }
  }
  
  @media (max-height: 680px) {
    #easterEggImage {
      max-width: 140px; /* Se achica aún más en pantallas más pequeñas */
    }
  }

  @media (max-width: 790px) {
    #easterEggImage {
      max-width: 200px; /* Se achica en pantallas pequeñas */
    }

    .rainbow-text{
        font-size: 16px; /* Ajusta el tamaño de la fuente según tus necesidades */
        animation: rainbow 3s infinite, move 3s infinite linear;
    }

    .contenedor1{
        margin-top: 11%;
        margin-bottom: 6%;
    }

  }
  
  @media (max-height: 720px) {
    #easterEggImage {
      max-width: 120px; /* Se achica aún más en pantallas más pequeñas */
    }
  }

  /* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    text-shadow: 1px 1px #f00, -1px -1px #0f0, 3px 3px #00f;
    animation: glitch-animation 1s infinite;
}

@keyframes glitch-animation {
    0% {
        transform: translate(0);
        clip: rect(12px, 9999px, 55px, 0);
    }
    10% {
        transform: translate(-1px, 1px);
    }
    20% {
        transform: translate(1px, -1px);
    }
    30% {
        transform: translate(-2px, 2px);
        clip: rect(85px, 9999px, 140px, 0);
    }
    40% {
        transform: translate(2px, -2px);
    }
    50% {
        transform: translate(0, 0);
    }
    60% {
        transform: translate(-2px, 2px);
    }
    70% {
        transform: translate(2px, -2px);
        clip: rect(45px, 9999px, 90px, 0);
    }
    80% {
        transform: translate(-1px, 1px);
    }
    90% {
        transform: translate(1px, -1px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Cartel */

.cartel {
    position: fixed;
    top: -100%; /* Inicialmente fuera de la pantalla */
    left: 50%;
    transform: translateX(-50%);
    width: 60%; /* Ajusta el tamaño según lo necesites */
    max-width: 300px; /* Limita el tamaño máximo a 300px */
    background-color: transparent;
    z-index: 1000;
    transition: top 0.5s ease-in-out;
}

.cartel-img {
    width: 100%;
    height: auto;
    display: block;
}

.close-btn {
    font-family: 'Courier New';
    font-size: 24px;
    margin-right: 10px;
    margin-top: 20px;
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    color: rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 0px 20px rgb(255, 0, 0);
    padding: 5px;
    border-radius: 50%;
}

@media screen and (max-width: 600px) {
    .cartel {
        width: 60%; /* Se reduce un poco más en pantallas pequeñas */
    }

    .close-btn {
        font-size: 18px;
    }

    #antiqueButton {
        position: fixed;
        top: 10px;
        right: 10px;
        padding: 10px 20px;
        font-family: 'Courier New', Courier, monospace;
        font-size: 11px;
        color: #000;
        background-color: #f0f0f0;
        border: 2px solid #000;
        box-shadow: 2px 2px 0px #888;
        cursor: pointer;
        transition: all 0.2s ease;
    }

}