/* ==========================================================================
   PAGE LOADER
   ========================================================================== */

#page-loader {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 999999;

    background: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    opacity: 1;

    visibility: visible;

    pointer-events: all;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* ==========================================================================
   LOADER HIDDEN
   ========================================================================== */

#page-loader.loaded {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/* ==========================================================================
   LOADER ICON
   ========================================================================== */

.loader-icon {
    position: relative;

    width: 90px;
    height: 90px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* ==========================================================================
   ROTATING RING
   ========================================================================== */

.loader-ring {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 90px;
    height: 90px;

    border: 3px solid rgba(0, 165, 225, 0.15);

    border-top-color: #00a5e1;

    border-right-color: #00a5e1;

    border-radius: 50%;

    animation: loader-ring-spin 1s linear infinite;
}


/* ==========================================================================
   CAPSULE
   ========================================================================== */

.loader-capsule {
    position: relative;

    z-index: 2;

    font-size: 48px;

    color: #00a5e1;

    animation: loader-capsule-spin 1.5s linear infinite;
}


/* ==========================================================================
   RING ANIMATION
   ========================================================================== */

@keyframes loader-ring-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* ==========================================================================
   CAPSULE ANIMATION
   ========================================================================== */

@keyframes loader-capsule-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 576px) {

    .loader-icon {
        width: 75px;
        height: 75px;
    }


    .loader-ring {
        width: 75px;
        height: 75px;
    }


    .loader-capsule {
        font-size: 40px;
    }

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .loader-capsule,
    .loader-ring {
        animation: none;
    }

}