﻿/* Completely block scroll using fixed overlay */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    /* Block scroll underneath by preventing pointer and scroll events */
    overflow: hidden;
    pointer-events: all;
}

/* Block page interaction under the loader */
html.loader-active,
body.loader-active {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed;
    width: 100%;
}

/* Center loader inside the wrapper */
#loader-wrapper .center-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Loader animation styles */
.loader-circle-11 {
    position: relative;
    width: 110px;
    height: 110px;
    transform-style: preserve-3d;
    perspective: 400px;
}

    .loader-circle-11 .arc {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border-bottom: 10px solid #ffbc00;
    }

        .loader-circle-11 .arc:nth-child(1) {
            animation: rotate1 1.15s linear infinite;
            animation-delay: -0.8s;
        }

        .loader-circle-11 .arc:nth-child(2) {
            animation: rotate2 1.15s linear infinite;
            animation-delay: -0.4s;
        }

        .loader-circle-11 .arc:nth-child(3) {
            animation: rotate3 1.15s linear infinite;
            animation-delay: 0s;
        }

@keyframes rotate1 {
    from {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0);
    }

    to {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(1turn);
    }
}

@keyframes rotate2 {
    from {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0);
    }

    to {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(1turn);
    }
}

@keyframes rotate3 {
    from {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0);
    }

    to {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(1turn);
    }
}
