﻿body.loading {
    overflow: hidden;
}

#modal_loading {
    --modal-loading-background-color: rgba( 255, 255, 255, .8 ); /* some whitelabels do not have a background color */
    --modal-loading-z-index: 100000; /*iframe_box_content has this at 90000 */
    display: none;
    position: fixed;
    z-index: var(--modal-loading-z-index);
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--modal-loading-background-color);
}

body.loading #modal_loading {
    display: block;
}

.modal_loading_icon {
    font-size: 128px;
    position: absolute;
    left: 50%;
    margin-left: -64px;
    top: 50%;
    margin-top: -64px;
    z-index: 67000;
    animation: rotate-logo 2.5s linear infinite;
}


/* 
    
    Digioh Branded Loading Spinner

        Example Markup:

            <div class="digioh-loading-container">
                <div class="digioh-loading">
                    <img src="../Assets/Images/digioh-logo-icon-only.svg" class="digioh-loading_logo" alt="loading " />
                </div>    
            </div>
            <p class="text-center">Loading...</p>

*/


.digioh-loading-container {
    width: 100%;
    position: relative;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    height: 200px;
}

    .digioh-loading-container.center-viewport {
        height: 100vh;
    }

.digioh-loading {
    position: relative;
    height: 125px;
    width: 125px;
    animation: rotate-logo 2.5s linear infinite;
    margin-bottom: 25px;
}

    .digioh-loading_logo {
        position: absolute;
        width: 100%;
        height: 100%;
        animation: fade-in-logo 1s ease-in;
    }

@keyframes rotate-logo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes fade-in-logo {
    from {
        transform: scale(0.2);
        opacity: 0;
    }

    to {
        transform: scale(1.0);
        opacity: 1;
    }
}
