/* Adapted from: https://codepen.io/desandro/pen/HhdrA */

.loader-container {
	position: relative;
	top: 40%;
	left: 40%;
	width: 200px;
	height: 100px;
	padding: 100px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.loader {
	position: relative;
	top: 30px;
	width: 80px;
	height: auto;
	/* margin: 20px; */
	display: flex;
	flex-direction: column;
	align-items: center;
}

.duo {
	height: 20px;
	width: 50px;
	background: hsla(0, 0%, 0%, 0.0);
	position: absolute;
}

.duo, .dot {
	animation-duration: 0.8s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
}

.duo1 {
	left: 0;
}

.duo2 {
	left: 30px
}


.dot {
	width: 20px;
	height: 20px;
	border-radius: 10px;
	background: #333;
	position: absolute;
}

.dot-a {
	left: 0px;
}

.dot-b {
	right: 0px;
}


@keyframes spin {
		0% { transform: rotate(0deg) }
	 50% { transform: rotate(180deg) }
	100% { transform: rotate(180deg) }
}

@keyframes onOff {
		0% { opacity: 0; }
	 49% { opacity: 0; }
	 50% { opacity: 1; }
	100% { opacity: 1; }
}

.duo1 {
	animation-name: spin;
}

.duo2 {
	animation-name: spin;
	animation-direction: reverse;
}

.duo2 .dot-b {
	animation-name: onOff;
}

.duo1 .dot-a {
	opacity: 0;
	animation-name: onOff;
	animation-direction: reverse;
}

.loader-text {
	position: relative;
		width: inherit;
	top: 60px;
		padding: 20px 0;
		text-align: center;
	font-family: sans-serif;
}
