/* Loading Overlay */
.loading-overlay-showing {
    overflow-x: hidden;

    & > .loading-overlay {
        opacity: 1;
        visibility: visible;
        @include transition-delay( 0 );
    }
}

.loading-overlay {
    @include 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: if-light(#fff, $dark-bg);

    .loader {
        &:before {
            content: " ";
            display: inline-block !important;
            border-width: 3px 5px 2px 0;
            width: 32px;
            height: 32px;
            @include animate-spin;
            border-image: none;
            border-radius: 20px;
            border-style: solid;
            border-bottom-color: transparent !important;
            vertical-align: middle;
            position: absolute;
            margin: auto;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
        }
    }
}

body > .loading-overlay {
    position: fixed;
    z-index: 999999;
}

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

    .bounce1,
    .bounce2,
    .bounce3 {
        animation: 1.4s ease-in-out 0s normal both infinite running 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;
    }

    .bounce1 {
        -webkit-animation-delay: -0.32s;
        animation-delay: -0.32s;
    }

    .bounce2 {
        -webkit-animation-delay: -0.16s;
        animation-delay: -0.16s;
    }
}

@-webkit-keyframes bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0.0) }
    40% { -webkit-transform: scale(1.0) }
}

@keyframes bouncedelay {
    0%, 80%, 100% {transform: scale(0.0);}
    40% {transform: scale(1.0);}
}