:root {
	--loading-bar-height: 30px;
	--loading-bar-width: 180px;
}
#loading {
	position: fixed;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	z-index: 8000;
	opacity: 0;
	pointer-events: none;
}

#loading.active {
	pointer-events: all;
	display: flex;
	align-content: center;
	justify-content: center;
	align-items: center;
	opacity: 1;
}

#loading-background {
	position: absolute;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	background-color: var(--main-color-dark);
	opacity: 0.94;
}

div.loading-bar {
	width: var(--loading-bar-width);
	height: var(--loading-bar-height);
	/* background-color: #FFF; */
	background: linear-gradient(#0F0, #060);
	border-radius: 20px;
	margin-top: 25px;
	overflow: hidden;
	position: relative;
	box-shadow: inset 4px 4px 6px rgba(0, 0, 0, 0.5);
	margin: auto auto 20px auto;
	border: solid 1px #FFF;
	outline: 4px solid #FFF;
	outline-offset: 4px;
	opacity: 1;
}

div.loading-bar > img{
	width: 24px;
	height: var(--loading-bar-height);
	position: absolute;
	animation: loading_loop 3500ms ease infinite;
	}

/* div.loading-bar::after {
	content: '';
	width: 16px;
	height: var(--loading-bar-height);
	position: absolute;
	background-color: var(--color-alert);
	transform: translateX(-20px);
	animation: loading_loop 2500ms ease infinite;
	-moz-box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.5);
	-webkit-box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.5);
	box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.5);
} */

@keyframes loading_loop {

	0%,
	100% {
		transform: translateX(0px) rotate(0deg);
	}

	20% {
		transform: translateX(var(--loading-bar-width)) rotate(360deg);
	}
}

.loading-text {
	position: relative;
	text-align: center;
	font-size: 1.1em;
	font-family: var(--font-ui);
	margin-top: 20px;
	color: #FFF;
}