/* ===================================================================
   COMPONENTS/LOADING.CSS
   Loading States, Animations, and Overlays
   =================================================================== */
/* ===== 10. LOADING & ANIMATIONS ===== */

/* ----- 10.1 Spinner ----- */
.spinner-border {
    /* Layout */
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    
    /* Visual */
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    
    /* Animation */
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { 
        transform: rotate(360deg); 
    }
}


/* ===== 78. LOADING STATES ===== */

/* ----- 78.1 Loading Overlay Container ----- */
.loading-overlay-showing {
    overflow: hidden;
}

/* ----- 78.2 Active Loading Overlay ----- */
.loading-overlay-showing > .loading-overlay {
    opacity: 1;
    visibility: visible;
}

/* ----- 78.3 Loading Overlay Base ----- */
.loading-overlay {
    transition: visibility 0s ease-in-out 0.5s, opacity 0.5s ease-in-out;
    bottom: 0;
    left: 0;
    position: absolute;
    opacity: 0;
    right: 0;
    top: 0;
    visibility: hidden;
    background: #FFF;
}

/* ----- 78.4 Full Page Loading Overlay ----- */
body > .loading-overlay {
    position: fixed;
    z-index: 999999;
}

/* ===== 79. LOADING ANIMATIONS ===== */

/* ----- 79.1 Bounce Loader ----- */
.bounce-loader {
    transition: all 0.2s;
    margin: -9px 0 0 -35px;
    text-align: center;
    width: 70px;
    left: 50%;
    position: absolute;
    top: 50%;
    z-index: 10000;
}

/* ===== 84. BOUNCE LOADER ELEMENTS ===== */

/* ----- 84.1 Bounce Dots ----- */
.bounce-loader .bounce1,
.bounce-loader .bounce2,
.bounce-loader .bounce3 {
    animation: 1.4s ease-in-out 0s normal both infinite bouncedelay;
    background-color: #CCC;
    border-radius: 100%;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
    display: inline-block;
    height: 18px;
    width: 18px;
}

/* ----- 84.2 Bounce Animation Delays ----- */
.bounce-loader .bounce1 {
    animation-delay: -0.32s;
}

.bounce-loader .bounce2 {
    animation-delay: -0.16s;
}

/* ----- 84.3 Bounce Animation Keyframes ----- */
@keyframes bouncedelay {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* ----- 84.4 Safari/iPhone Specific Fixes ----- */
html.safari.iphone .bounce-loader .bounce1,
html.safari.iphone .bounce-loader .bounce2,
html.safari.iphone .bounce-loader .bounce3 {
    animation: 1.4s ease-in-out infinite bouncedelay;
}

/* ===== 85. PERCENTAGE LOADER ===== */

/* ----- 85.1 Percentage Loader Container ----- */
.loading-overlay.loading-overlay-percentage {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----- 85.2 Percentage Text ----- */
.loading-overlay.loading-overlay-percentage .page-loader-progress-wrapper {
    display: flex;
    font-size: 65.6px;
    font-size: 4.1rem;
    font-weight: bold;
    letter-spacing: -1.5px;
    color: #212121;
}

/* ----- 85.3 Percentage Loader Background Effect ----- */
.loading-overlay.loading-overlay-percentage.loading-overlay-percentage-effect-2 .loading-overlay-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 0px;
    background: #f4f4f4;
    z-index: 0;
    transition: ease width 300ms;
}

/* ----- 85.4 Percentage Loader Content Wrapper ----- */
.loading-overlay.loading-overlay-percentage.loading-overlay-percentage-effect-2 .page-loader-progress-wrapper {
    position: relative;
    z-index: 1;
}


