/* Styles the full-screen semi-transparent overlay */
#loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
	display: none; /* Use flexbox to center content */
	justify-content: center; /* Center horizontally */
	align-items: center; /* Center vertically */
	z-index: 9999; /* Ensure it is on top of all other elements */
}

/* Styles the spinner element */
#loader .spinner {
	border: 16px solid #f3f3f3; /* Light gray border */
	border-top: 16px solid #3498db; /* Blue top border to create the spin effect */
	border-radius: 50%;
	width: 70px;
	height: 70px;
	animation: spin 2s linear infinite; /* Apply the spin animation */
}

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