@use '../utils' as *;

/*----------------------------------------*/
/*  Preloader scss
/*----------------------------------------*/
#preloader {
	position: fixed;
	width: 100%;
	height: 100%;
	inset-inline-start: 0;
	top: 0;
	background-color: #121212;
	z-index: 999;
}
.sk-three-bounce {
	margin: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background-color: #121212;
	.sk-child {
		position: relative;
		top: 50%; 
		transform: translateY(-50%);
		width: 20px;
		height: 20px;
		background-color: var(--td-primary);
		border-radius: 100%;
		display: inline-block;
		-webkit-animation: sk-three-bounce 1.4s ease-in-out 0s infinite both;
		animation: sk-three-bounce 1.4s ease-in-out 0s infinite both;
	}
	&.is-brick-red {
		&.sk-three-bounce {
			.sk-child {
				background-color: var(--td-theme-2);
			}
		}
	}
	&.is-mainly-blue {
		&.sk-three-bounce {
			.sk-child {
				background-color: var(--td-theme-3);
			}
		}
	}
	&.is-orange {
		&.sk-three-bounce {
			.sk-child {
				background-color: var(--td-theme-4);
			}
		}
	}
	&.is-purple {
		&.sk-three-bounce {
			.sk-child {
				background-color: var(--td-theme-5);
			}
		}
	}
	.sk-bounce1 {
		-webkit-animation-delay: -0.32s;
		animation-delay: -0.32s;
	}
	.sk-bounce2 {
		-webkit-animation-delay: -0.16s;
		animation-delay: -0.16s;
	}
}
@-webkit-keyframes sk-three-bounce {
	0%,
	80%,
	100% {
		-webkit-transform: scale(0);
		transform: scale(0);
	}
	40% {
		-webkit-transform: scale(1);
		transform: scale(1);
	}
}
@keyframes sk-three-bounce {
	0%,
	80%,
	100% {
		-webkit-transform: scale(0);
		transform: scale(0);
	}
	40% {
		-webkit-transform: scale(1);
		transform: scale(1);
	}
}