#preloader {
    position: fixed; /* Fixed position relative to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use a background color that fits your site's aesthetic */
    background: #ffffff; 
    
    /* Center the GIF */
    display: flex; 
    justify-content: center;
    align-items: center;
    
    /* Ensure it's above everything else */
    z-index: 9999; 
    
    /* Optional: for a smoother fade-out */
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* Class to make the preloader disappear */
.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden;
}