/**
 * Preloader — Media Factory Theme
 *
 * Minimal preloader styling. The spinner is styled in style.css
 * (#preloader, #spinner) using theme variables.
 *
 * @package MediaFactory
 * @since   2.0.0
 */

/* Base preloader container */
#preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	background: var(--dark-pure, #0f0a14);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Spinner */
#spinner {
	display: block;
	position: relative;
	width: 50px;
	height: 50px;
	border: 3px solid rgba(255, 255, 255, 0.08);
	border-top-color: var(--primary, #bf21cc);
	border-radius: 50%;
	animation: mf-preloader-spin 0.8s linear infinite;
}

@keyframes mf-preloader-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Disable button */
#preloader #disable-preloader {
	display: block;
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 1;
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
	cursor: pointer;
	background: none;
	border: none;
	font-family: inherit;
}

#preloader #disable-preloader:hover {
	color: #fff;
}