#loading-screen {
    display: none;
    z-index: 9999;
    width: 100%;
    height: 100%;
    position: fixed;
    background: #333333;
    transition: visibility 0s 0.5s, opacity 0.5s linear;
}

#loading-spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid purple;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 4s linear infinite;
    position: fixed;
    top: calc(50% - 60px);
    left: calc(50% - 60px);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fadeout {
    visibility: hidden;
    opacity: 0;
}