/* =========================================
   PAGE LOADER
========================================= */

#pageLoader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}


    /* Loader disappears */

    #pageLoader.loader-hidden {
        opacity: 0;
        visibility: hidden;
    }


/* =========================================
   LOADER CONTENT
========================================= */

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-10px);
}


/* =========================================
   LOGO
========================================= */

.loader-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    display: block;
    /*
       Breathing animation
    */

    animation: logoBreathing 1.8s ease-in-out infinite;
}


/* =========================================
   BREATHING EFFECT
========================================= */

@keyframes logoBreathing {

    0% {
        transform: scale(0.94);
        opacity: 0.78;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.94);
        opacity: 0.78;
    }
}


/* =========================================
   LOADING DOTS
========================================= */

.loading-dots {
    display: flex;
    gap: 7px;
    margin-top: 18px;
}


    /* Individual dots */

    .loading-dots span {
        width: 7px;
        height: 7px;
        background: #921820;
        border-radius: 50%;
        display: block;
        animation: dotLoading 1.4s infinite ease-in-out;
    }


        /* Different animation timing */

        .loading-dots span:nth-child(1) {
            animation-delay: 0s;
        }

        .loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }


/* =========================================
   DOT ANIMATION
========================================= */

@keyframes dotLoading {

    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}


/* =========================================
   MOBILE LOADER
========================================= */

@media (max-width: 600px) {

    .loader-logo {
        width: 100px;
        max-width: 65vw;
    }

    .loader-content {
        transform: translateY(-8px);
    }

    .loading-dots {
        margin-top: 20px;
        gap: 8px;
    }

        .loading-dots span {
            width: 8px;
            height: 8px;
        }
}


/* =========================================
   SMALL MOBILE DEVICES
========================================= */

@media (max-width: 380px) {

    .loader-logo {
        width: 100px;
        max-width: 65vw;
    }

    .loading-dots {
        margin-top: 18px;
    }
}
