@import '../../constants/colors.scss';

.loaderContainer {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	min-height: 100vh;
	min-width: 100vw;
}

.loader {
	position: relative;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: linear-gradient(
		$primary-green,
		$primary-blue,
		$primary-violet,
		$primary-pink
	);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: animate 0.5s linear infinite;
}

@keyframes animate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
.loader span {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: linear-gradient(
		$primary-green,
		$primary-blue,
		$primary-violet,
		$primary-pink
	);
}

.loader span:nth-child(1) {
	filter: blur(5px);
}

.loader span:nth-child(2) {
	filter: blur(10px);
}

.loader span:nth-child(3) {
	filter: blur(20px);
}

.loader span:nth-child(4) {
	filter: blur(40px);
}

.loader span:nth-child(5) {
	filter: blur(80px);
}

.loader span:nth-child(6) {
	filter: blur(160px);
}

.loader span:nth-child(7) {
	filter: blur(320px);
}

#innerCircle {
	width: 80%;
	height: 80%;
	z-index: 1;
	border-radius: 50%;
	background-color: $primary-white;
}
