﻿

div.loading {
	top: 0;
	left: 0;
	position: absolute;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.9);
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	color: white;
	text-transform: uppercase;
	font-size: 150%;
	min-width: 50%;
	z-index: 9999;
}

div.loading > div.aircraft {
	width: 100vw;
	height: 100px;
	background-image: url(../images/aircraft.png);
	animation: aircraftLoading 6s linear infinite;
	animation-direction: normal;
	border: none;
	background-size: contain;
	background-position: 0%;
	position: absolute;
	left: 0;
	z-index: 999;
}

div.loading::before {
	content: "";
	display: block;
	background: transparent url(/Images/logo-rtto.svg) no-repeat center;
	background-size: contain;
	height: 100vh;
	max-height: 10vw;
}

div.loading > h4 {
	border-top: 0.5rem var(--primary-color) dotted;
	margin-top: 1rem;
	padding-top: 1rem;
	font-size: 2rem;
}

div.loading > h5 {
	font-size: 1.25rem;
}

@keyframes aircraftLoading {
	0% {
		background-position: -100px;
	}
	100% {
		background-position: 100vw;
	}
}



.loading-anim {
	display: block;
	position: relative;
	width: 125px;
	height: 125px;
	border-radius: 50%;
	border: 4px solid transparent;
	border-top: 4px solid #FF5722;
	-webkit-animation: spin 2s linear infinite;
	animation: spin 2s linear infinite;
	margin: 0 auto;
}

.loading-anim::before,
.loading-anim::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 4px solid transparent;
}

.loading-anim::before {
	top: 5px;
	left: 5px;
	right: 5px;
	bottom: 5px;
	border-top-color: #FF9800;
	-webkit-animation: spin 3s linear infinite;
	animation: spin 3.5s linear infinite;
}

.loading-anim::after {
	top: 15px;
	left: 15px;
	right: 15px;
	bottom: 15px;
	border-top-color: #FFC107;
	-webkit-animation: spin 1.5s linear infinite;
	animation: spin 1.75s linear infinite;
}

@keyframes spin {
	from {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	to {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}
