

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Background color of the preloader */
    z-index: 9999; /* Ensure the preloader is on top of other elements */
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease; /* Smooth fade-out transition */
}

.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px; /* Size of the loader */
    height: 60px; /* Size of the loader */
    animation: spin 1s linear infinite; /* Spin animation */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}