﻿.loadingDiv-parent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* transparent black */
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Centered spinner */
/*.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: orange;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}*/

/* Centered spinner */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: green;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    /* Centering */
    position: fixed; /* stays centered even when scrolling */
    top: 50%; /* move to vertical center */
    left: 50%; /* move to horizontal center */
    /*transform: translate(-50%, -50%);*/ /* adjust for own size */
    z-index: 9999; /* keep it above other elements */
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Prevent scrolling when loader is active */
body.loading {
    overflow: hidden;
}
