/* The loading overlay loader.js shows during AJAX calls and after a show-loader-on-click link; the main and login layouts load it with loader.js */
#xLoader {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(255,255,255,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#xLoader .google-spin-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

#xLoader .google-spin {
    display: block;
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #58BCB5;
    animation: xLoaderGoogleSpin 2s linear infinite;
}

#xLoader .google-spin:before,
#xLoader .google-spin:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

#xLoader .google-spin:before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-top-color: #344459;
    animation: xLoaderGoogleSpin 3s linear infinite;
}

#xLoader .google-spin:after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top-color: #58BCB5;
    animation: xLoaderGoogleSpin 2s linear infinite;
}

@keyframes xLoaderGoogleSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Without motion when the user's system asks for less of it: the rings stand still */
@media (prefers-reduced-motion: reduce) {
    #xLoader .google-spin,
    #xLoader .google-spin:before,
    #xLoader .google-spin:after {
        animation: none;
    }
}
