#loader {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 9000;
}

#loader * {
    background-color: transparent !important;
}

#loader.show {
    display: flex;
}

html.loader,
html.loader * {
    overflow: hidden !important;
}

#loader .spinner-container {
    margin: auto;
    display: inline;
}

#loader .spinner-container .spinner {
    animation: spin 2s linear infinite;
    border: 16px solid var(--white);
    border-top: 16px solid var(--primary);
    border-radius: 50%;
    width: 120px;
    height: 120px;
}

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

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