﻿/*body {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: #222;
}*/




.loading {
    display: flex;
}

    .loading .dot {
        position: relative;
        width: 2em;
        height: 2em;
        margin: 0.8em;
        border-radius: 50%;
    }

        .loading .dot::before {
            position: absolute;
            content: "";
            width: 100%;
            height: 100%;
            background: inherit;
            border-radius: inherit;
            animation: wave 2s ease-out infinite;
        }

        .loading .dot:nth-child(1) {
            background: #7ef9ff;
        }

            .loading .dot:nth-child(1)::before {
                animation-delay: 0.2s;
            }

        .loading .dot:nth-child(2) {
            background: #89cff0;
        }

            .loading .dot:nth-child(2)::before {
                animation-delay: 0.4s;
            }

        .loading .dot:nth-child(3) {
            background: #4682b4;
        }

            .loading .dot:nth-child(3)::before {
                animation-delay: 0.6s;
            }

        .loading .dot:nth-child(4) {
            background: #0f52ba;
        }

            .loading .dot:nth-child(4)::before {
                animation-delay: 0.8s;
            }

        .loading .dot:nth-child(5) {
            background: #000080;
        }

            .loading .dot:nth-child(5)::before {
                animation-delay: 1s;
            }

@keyframes wave {
    50%, 75% {
        transform: scale(2.5);
    }

    80%, 100% {
        opacity: 0;
    }
}



/* [THE LOADING SPINNER] */
#spinner-front, #spinner-back {
    position: fixed;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    width: 100%;
    transition: all 1s;
    display: flex;
    /*height: 100vh;*/
    justify-content: center;
    align-items: center;
}

#spinner-front {
    z-index: 999;
    margin-top: 45vh;
    color: #fff;
    text-align: center;
}

#spinner-back {
    z-index: 998;
    height: 100vh;
    background: #000;
}

#spinner-front.show {
    visibility: visible;
    opacity: 1;
}

#spinner-back.show {
    visibility: visible;
    opacity: 0.7;
}


/* [THE LOADING SPINNER] */
#spinner-frontModal, #spinner-backModal {
    position: fixed;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    width: 100%;
    transition: all 1s;
}

#spinner-frontModal {
    z-index: 999;
    margin-top: 45vh;
    color: #fff;
    text-align: center;
}

#spinner-backModal {
    z-index: 998;
    height: 100vh;
    background: #000;
}

#spinner-frontModal.show {
    visibility: visible;
    opacity: 1;
}

#spinner-backModal.show {
    visibility: visible;
    opacity: 0.7;
}

