@use '../utils' as *;

/*----------------------------------------*/
/*  Preloader
/*----------------------------------------*/


/* ===== Preloader Wrapper ===== */
@keyframes Oitloader {
	0% {
		transform: scaleY(0.1);
		background: var(--oit-clr-black);
	}

	50% {
		transform: scaleY(1);
		background: var(--oit-clr-green);
	}

	100% {
		transform: scaleY(0.1);
		background: transparent;
	}
}

.preloader {
	width: 100%;
	height: 100%;
	background-color: var(--oit-clr-white);
	position: fixed;
	left: 0;
	top: 0;
	z-index: 99999;

}

.loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;

	.bar {
		width: 6px;
		height: 60px;
		background: var(--oit-clr-white);
		display: inline-block;
		transform-origin: bottom center;
		animation: Oitloader 1.5s ease-in-out infinite;
	}

	.bar1 {
		animation-delay: 0.1s;
	}

	.bar2 {
		animation-delay: 0.2s;
	}

	.bar3 {
		animation-delay: 0.3s;
	}

	.bar4 {
		animation-delay: 0.4s;
	}

	.bar5 {
		animation-delay: 0.5s;
	}

	.bar6 {
		animation-delay: 0.6s;
	}

	.bar7 {
		animation-delay: 0.7s;
	}

	.bar8 {
		animation-delay: 0.8s;
	}
}

/*--- end of preloader ---*/


.scroll-top {
	width: 40px;
	height: 40px;
	line-height: 40px;
	position: fixed;
	bottom: -10%;
	right: 50px;
	font-size: 16px;
	z-index: 9;
	text-align: center;
	border-radius: 50%;
	cursor: pointer;
	color: var(--oit-clr-white);
	background: var(--oit-clr-black);
	transition: 1s ease;
	border: none;
}

.scroll-top.open {
	bottom: 80px;
}