/* Estilo para el Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0, 0, 0);
    /* Fondo oscuro */
    z-index: 9999;
    opacity: 0;
    pointer-events: all;
    overflow: hidden;
    /* Evita el scroll */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo del contenido dentro del Overlay */
.overlay-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Primer div dentro del overlay */
.div_1 {
    width: 50vw;
    /* 50% del ancho */
    height: 100%;
    /* 100% del alto */
    background-color: rgb(0, 0, 0);
    overflow: hidden;
    /* Evita desbordamientos dentro del div */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-right: 10px;
}

/* Segundo div dentro del overlay */
.div_2 {
    width: 50vw;
    /* 50% del ancho */
    height: 100%;
    /* 100% del alto */
    background-color: rgb(0, 0, 0);
    overflow: hidden;
    /* Evita desbordamientos dentro del div */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 10px;
}

/* Clase para ocultar el overlay después de cierto tiempo */
.overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.div_1 img {
    width: 300px;
    height: 100px;
    background-color: rgb(0, 0, 0);
}

.div_2 img {
    width: 100px;
    height: 100px;
    background-color: rgb(0, 0, 0);
}

.div_linea {
    width: 2px;
    background-color: rgb(255, 255, 255);
}

/* Animación para la línea */
@keyframes drawLine {
    0% {
        height: 0;
        opacity: 1;
    }

    100% {
        height: 100vh;
        opacity: 0.1;
    }

}

@keyframes output {
    0% {
        height: 100vh;
        opacity: 1;
    }

    100% {
        height: 0;
        opacity: 0;
    }

}

/* Estado inicial sin animación */
.div_1,
.div_2 {
    opacity: 1;
}

.div_linea {
    opacity: 0;
}

/* Clase que activa la animación del div */
.animate-div {
    animation: output 1s ease-in-out forwards;
}

/* Clase que activa la animación de la línea */
.animate-line {
    animation: drawLine 1s ease-in-out forwards;
}

.animate-line2 {
    opacity: 0;
    visibility: hidden;
}

#img1,
#img2 {
    opacity: 0;
}

.background {
    background-color: transparent;
}