/*
 * Stylesheet for the Skåne Plus Page Loader
 */

/* The main loader container (overlay) */
.loader-container {
    position: fixed; /* Sit on top of the page content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Ensure it's on top of everything */
    /* Background is now transparent */
    
    /* Use Flexbox to center the spinner */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Hidden by default, controlled by JavaScript */
    visibility: hidden;
    opacity: 0;

    /* Smooth transition for fade in/out effect */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Make the loader visible when the 'visible' class is added */
.loader-container.visible {
    visibility: visible;
    opacity: 1;
}

/* The spinner element */
.spinner {
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3; /* Light grey circle */
    border-top: 8px solid #f98629; /* Skåne Plus orange color for the moving part */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* Animation definition */
}

/* Keyframes for the spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

