/* Background overlay to block content */
#loader-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9998;
    display: none;
    pointer-events: none;
}

/* Center the loader */
#loader {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9999;
    width: 80px;
    height: 80px;
    margin: -60px 0 0 -60px;
    /* Adjust margin to center loader */
    border: 10px solid #f3f3f3;
    border-radius: 50%;
    border-top: 12px solid #0f71c2;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}


/* Add animation to "page content" */
.animate-bottom {
    position: relative;
    animation-name: animate-bottom;
    -webkit-animation-name: animate-bottom;
    animation-duration: 1s;
    -webkit-animation-duration: 1s;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes animate-bottom {
    from {
        bottom: -100px;
        opacity: 0;
    }

    to {
        bottom: 0px;
        opacity: 1;
    }
}

@keyframes animate-bottom {
    from {
        bottom: -100px;
        opacity: 0;
    }

    to {
        bottom: 0;
        opacity: 1;
    }
}

/* Loader container to control visibility */
#loaderDIV {
    display: none;
    /* Initially hidden */
    text-align: center;
}

/* Display the loader and background */
.show-loader {
    display: block;
}
