#loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
}

#loader img {
    height: auto;
    width: 500px;
    object-fit: cover;
    animation: revealHideWithDelay 4s linear infinite;
}

/* Animação: da esquerda para a direita e depois desaparece */
@keyframes revealHideWithDelay {
    0% {
        clip-path: inset(0 100% 0 0); /* totalmente escondida */
    }
    50% {
        clip-path: inset(0 0 0 0);    /* totalmente visível */
    }
    70% {
        clip-path: inset(0 0 0 0);    /* mantém visível (delay) */
    }
    100% {
        clip-path: inset(0 0 0 100%); /* desaparece da esquerda para a direita */
    }
}

#content {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#content.fade-in {
    opacity: 1;
    transition: opacity 4s ease;
}

#loader.fade-out {
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

@media (max-width: 900px) {
    #loader img {
        width: 200px;
        transition: width 0.4s ease;
        animation: revealHideWithDelay 3s linear infinite;
    }
}