/* Archivo preloader.css */

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    font-family: 'Arial', sans-serif;
    position: relative;
}

.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./imagenes/edt/edt_img_chicos_1.jpg') no-repeat center center/cover;
    z-index: 1;
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.334);
    z-index: 2;
}

.logo-top-left {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 200px;
}

.logo-top-left img {
    width: 100%;
}

.center-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.center-content .isologo {
    width: 150px;
    margin-bottom: 20px;
}

.center-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.center-content button {
    background-color: white;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.center-content button:hover {
    background-color: #ddd;
}

.preloader {
    position: relative;
    text-align: center;
    color: white;
    z-index: 3;
}

.content-fade {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10; /* Asegurarse de que esté sobre el iframe */
}

/* Aplicar la animación a todo el preloader */
.fade-out {
    animation: fadeOutEffect 1500ms ease forwards;
}

/* Definir la animación */
@keyframes fadeOutEffect {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

#index-iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0; /* Inicialmente oculto */
    transition: opacity 1500ms ease; /* Transición suave para hacerlo visible */
    z-index: 0; /* Asegura que esté detrás del preloader */
}

.show-iframe {
    opacity: 1; /* Hacer visible el iframe */
}
