/*
 * This SOFTWARE PRODUCT is provided by Credit Security Limited "as is" and
 * "with all faults". Credit Security Limited makes no representations or
 * warranties of any kind concerning the safety, suitability, lack of viruses,
 * inaccuracies, typographical errors, or other harmful components of this
 * SOFTWARE PRODUCT. There are inherent dangers in the use of any software,
 * and you are solely responsible for determining whether this SOFTWARE PRODUCT
 * is compatible with your equipment and other software installed on your
 * equipment. You are also solely responsible for the protection of your
 * equipment and backup of your data, and Credit Security Limited will not be
 * liable for any damages you may suffer in connection with using, modifying,
 * or distributing this SOFTWARE PRODUCT.
 *
 */
/* Spinner modal styles */
.csl-spinner-modal {
    display: none;
    opacity: 0; /* Start fully transparent */
    animation-duration: 0.5s; /* Adjust time as needed */
    animation-fill-mode: forwards; /* Keep the element in the state of the last keyframe when completed */
    transition: opacity 1s ease-in-out; /* Smooth transition */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.73); /* Light transparent background */
    z-index: var(--csl-spinner-z-index); /* Ensure it appears above all other content */
    justify-content: center;
    align-items: center;
    visibility: visible;
}

.csl-spinner-modal.show {
    display: flex; /* Make it visible */
    opacity: 1; /* Fully visible */
    animation: fadeIn 1s ease-in-out;
}

.csl-spinner-modal.hide {
    display: none; /* Make it invisible and unselectable */
    animation: fadeOut 1s ease-in-out;
    opacity: 0; /* Fully transparent after animation */
}

/* Spinning circle */
.spinner {
    width: 5rem;
    height: 5rem;
    border: 1rem solid rgba(255, 255, 255, 1);
    /*border: 1rem solid #f3f3f3; !* Light grey background *!*/
    border-top: 1rem solid #3498db; /* Blue color */
    background-color: #8babcf; /* Starting background color */
    border-radius: 50%;
    animation: spin 1.5s linear infinite, pulseBackground 3s ease-in-out infinite;
}

.spinner-large {
    width: 10rem; /* Increase the width */
    height: 10rem; /* Increase the height */
    border-width: 1rem; /* Adjust the thickness of the spinner */
}


.csl-preloader-layout {
    z-index: var(--csl-spinner-z-index); /* Ensure it appears above all other content */
    background-color: rgba(255, 255, 255, 0.73);
}

/*
Make the spinner box larger on screen sizes under 575px
 */
@media only screen and (max-width: 575px) {
    .spinner-box {
        width: 75vw;
    }
}

.spinner-box {
    width: 50vw;
    margin: auto;
    background-color: whitesmoke;
    border-radius: 0.25rem !important;
    padding: 2em;
    box-shadow: 5px 5px 10px;
}


/* Loading text */
.loading-text {
    font-family: Arial, sans-serif;
    font-size: 1.5em;
    color: #3498db;
    margin-top: 20px;
}

.csl-header-logo {
    width: 2rem;
    height: 2rem;
}

/* Background pulsing animation */
@keyframes pulseBackground {
    0% {
        background-color: #8babcf; /* Initial background color */
    }
    50% {
        background-color: transparent; /* Pulsing to a different color */
    }
    100% {
        background-color: #8babcf; /* Return to initial color */
    }
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Spinner animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

