/* --- css/loader.css --- */
/* This file should be placed in your main 'css' folder */

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2c2a4a; /* A theme color for the background */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s, visibility 0.75s;
    visibility: visible;
    opacity: 1;
}

.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #653D84; /* Theme purple */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* This class will be added by JavaScript when the page is loaded */
body.loaded #loader-wrapper {
    opacity: 0;
    visibility: hidden;
}
