Spaces:
Sleeping
Sleeping
/* CSS for the Lottie animation overlay */ | |
.overlay { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
background-color: rgba(0, 0, 0, 0.5); /* Add transparency */ | |
z-index: 1000; /* Ensure it appears over the content */ | |
transition: opacity 0.5s ease; /* Smooth fade in and out */ | |
} | |
/* Hide the overlay when not needed */ | |
.hidden { | |
display: none; | |
} | |
/* Optional: Adding some animation effect to the overlay */ | |
.overlay.active { | |
opacity: 1; | |
pointer-events: all; | |
} | |
.overlay.inactive { | |
opacity: 0; | |
pointer-events: none; | |
} |