﻿/*show loader background*/
@-webkit-keyframes show-loader-background {
    0% {
        opacity: 0;
        transform: scale(.7);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes show-loader-background {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/*hide loader background*/
@-webkit-keyframes hide-loader-background {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes hide-loader-background {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/*show loader content*/
@-webkit-keyframes show-loader-content {
    0% {
        -webkit-transform: scale(.7);
        transform: scale(.7)
    }

    45% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05)
    }

    80% {
        -webkit-transform: scale(.95);
        transform: scale(.95)
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}

@keyframes show-loader-content {
    0% {
        -webkit-transform: scale(.7);
        transform: scale(.7)
    }

    45% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05)
    }

    80% {
        -webkit-transform: scale(.95);
        transform: scale(.95)
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}

/*hide loader content*/
@-webkit-keyframes hide-loader-content {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1
    }

    100% {
        -webkit-transform: scale(.5);
        transform: scale(.5);
        opacity: 0
    }
}

@keyframes hide-loader-content {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1
    }

    100% {
        -webkit-transform: scale(.5);
        transform: scale(.5);
        opacity: 0
    }
}

.page-loader {
    position: fixed;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

    .page-loader.show-animated {
        -webkit-animation: show-loader-background .15s;
        animation: show-loader-background .15s;
    }

    .page-loader.hide-animated {
        -webkit-animation: show-loader-background .15s;
        animation: show-loader-background .15s;
    }

    .page-loader .page-loader-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 88vw;
        max-width: 600px;
        background-color: var(--background-color);
        padding: 16px;
        border-radius: 4px;
        box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2), 0 4px 20px 0 rgba(0,0,0,0.19);
    }

        .page-loader .page-loader-container.show-animated {
            -webkit-animation: show-loader-content .3s forwards;
            animation: show-loader-content .3s forwards
        }

        .page-loader .page-loader-container.hide-animated {
            -webkit-animation: hide-loader-content .3s forwards;
            animation: hide-loader-content .3s forwards
        }

    .page-loader .page-loader-heading {
        margin-bottom: 16px;
        color: var(--brand-cloud-burst);
        font-size: 1.83em;
        font-weight: bold;
    }

    .page-loader .page-loader-text {
        margin-bottom: 16px;
        color: var(--brand-cloud-burst);
        font-size: 0.93em;
    }

    .page-loader .page-loader-control {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }