/*========================================
NNEWI SOUTH PAGE LOADER
=========================================*/

#page-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;

    /* Black */
    background: rgb(17,17,17);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999999;

    opacity: 1;
    visibility: visible;

    transition:
        opacity .7s ease,
        visibility .7s ease;
}


/*========================================
LOADER CONTENT
=========================================*/

.loader-content {
    width: 90%;
    max-width: 360px;
    text-align: center;
    position: relative;
}


/*========================================
LOGO
=========================================*/

.loader-logo {
    width: 130px;
    height: 130px;

    margin: 0 auto 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 2;
}

.loader-logo img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    display: block;
}


/*========================================
ANIMATED RING
=========================================*/

.loader-ring {
    position: absolute;

    width: 155px;
    height: 155px;

    top: -13px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    /* Green outer ring */
    border: 2px solid rgba(0,132,61,.18);

    /* Yellow animated section */
    border-top-color: rgb(253,203,0);

    /* Green secondary section */
    border-right-color: rgba(0,132,61,.75);

    animation: loaderSpin 1.2s linear infinite;
}


/* Inner glow ring */

.loader-ring::before {
    content: "";

    position: absolute;

    inset: 8px;

    border-radius: 50%;

    /* Green inner ring */
    border: 1px solid rgba(0,132,61,.25);

    animation: loaderSpinReverse 2s linear infinite;
}


/*========================================
LOADING TEXT
=========================================*/

.loader-text {
    margin-top: 15px;

    /* White */
    color: rgb(255,255,255);

    font-size: 14px;

    font-weight: 500;

    letter-spacing: 3px;

    text-transform: uppercase;
}


/* Highlight loading text */

.loader-text::first-letter {
    color: rgb(253,203,0);
}


.loader-dots {
    display: inline-block;

    min-width: 25px;

    text-align: left;
}

.loader-dots span {
    opacity: .2;

    animation: loaderDots 1.4s infinite;
}

.loader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
    animation-delay: .2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: .4s;
}


/*========================================
PROGRESS BAR
=========================================*/

.loader-progress {
    width: 100%;

    height: 3px;

    /* Green transparent background */
    background: rgba(0,132,61,.20);

    border-radius: 20px;

    overflow: hidden;

    margin: 25px auto 18px;
}


.loader-progress-bar {
    width: 0%;

    height: 100%;

    /* Yellow progress */
    background: rgb(253,203,0);

    border-radius: 20px;

    box-shadow:
        0 0 10px rgba(253,203,0,.45);

    animation: loaderProgress 2.5s ease-in-out forwards;
}


/*========================================
BRAND NAME
=========================================*/

.loader-brand {

    /* Green */
    color: rgba(0,132,61,.85);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 4px;
}


/*========================================
LOADER ANIMATIONS
=========================================*/

@keyframes loaderSpin {

    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }

}


@keyframes loaderSpinReverse {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }

}


@keyframes loaderDots {

    0%,
    20% {
        opacity: .2;
    }

    50% {
        opacity: 1;
        color: rgb(253,203,0);
    }

    80%,
    100% {
        opacity: .2;
    }

}


@keyframes loaderProgress {

    0% {
        width: 0%;
    }

    40% {
        width: 45%;
    }

    70% {
        width: 75%;
    }

    100% {
        width: 100%;
    }

}


/*========================================
LOADER HIDDEN
=========================================*/

#page-loader.loader-hidden {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/*========================================
MOBILE
=========================================*/

@media (max-width: 576px) {

    .loader-logo {
        width: 105px;
        height: 105px;

        margin-bottom: 28px;
    }

    .loader-ring {
        width: 130px;
        height: 130px;

        top: -12px;
    }

    .loader-content {
        max-width: 300px;
    }

    .loader-text {
        font-size: 12px;

        letter-spacing: 2.5px;
    }

    .loader-brand {
        font-size: 9px;

        letter-spacing: 3px;
    }

}


