/** @format */

:root {
	--BAR-COLOR: linear-gradient(#201f56, #201f56);
	--SHADOW-BOX: 0px 0px 0px 0px rgba(34, 60, 80, 0.2);
	--HEIGHT-LOADBAR: 18px;
}
canvas:focus {
	outline: none;
}

html,
body {
	padding: 0;
	margin: 0;
	overflow: hidden;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	height: 100%;
	background-image: var(--BAR-COLOR);
	background-position-x: 50%;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-size: 45%;
}

#unity-container {
	position: fixed;
	width: 100%;
	height: 100%;
	background-image: var(--BAR-COLOR);
	background-position-x: 50%;
	background-repeat: no-repeat;
}

#unity-canvas {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	-webkit-box-shadow: var(--SHADOW-BOX);
	-moz-box-shadow: var(--SHADOW-BOX);
	box-shadow: var(--SHADOW-BOX);
}
/* Экран загрузки */
#unity-loading-bar {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	background-image: var(--BAR-COLOR);
}

#unity-logo,
#unity-loader-text {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 150px;
	height: 150px;
}
#unity-loader-text {
	top: 80%;
	width: 400px;
}
#unity-logo {
	width: 300px;
	height: 300px;
	background: url('./img/logo.png?v=v0.1');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	top: 40%;
}

/* Контейнер полосы загрузки */
.loading-container {
	position: fixed;
	top: 80%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 300px;
	height: 25px;
	background-color: #7b5cd5;
	border: 5px solid #fff;
	border-radius: 25px;
	overflow: hidden;
	display: block;
}

/* Полоса прогресса */
.loading-bar {
	height: 100%;
	width: 0%;
	background-color: #ffc844;
	border-radius: 25px;
	transition: width 0.3s ease;
}
#loading-screen {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	background-image: var(--BAR-COLOR);
	background-position-x: 50%;
	background-repeat: no-repeat;
	background-size: cover;
	background-size: 100%;
	background-attachment: fixed;
	z-index: 9999;
	transition: opacity 0.5s ease;
	opacity: 1;
}

#loading-screen.hidden {
	opacity: 0;
	pointer-events: none;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: var(--BAR-COLOR);
	z-index: 9999;
	display: none;
}

.error {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: var(--BAR-COLOR);
	background-size: 45%;
	background-repeat: repeat;
	z-index: 9999;
	display: none;
}

.error-message {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #124250;
	padding: 30px;
	border-radius: 15px;
	text-align: center;
	font-size: 20px;
	-webkit-box-shadow: var(--SHADOW-BOX);
	-moz-box-shadow: var(--SHADOW-BOX);
	box-shadow: var(--SHADOW-BOX);
}

.message {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #d44b67;
	padding: 30px;
	border-radius: 15px;
	text-align: center;
	font-size: 20px;
	-webkit-box-shadow: var(--SHADOW-BOX);
	-moz-box-shadow: var(--SHADOW-BOX);
	box-shadow: var(--SHADOW-BOX);
}

p {
	font-family: Arial;
	color: white;
}

@media screen and (max-width: 1024px) and (orientation: landscape) {
	.overlay {
		display: block;
	}
}

@keyframes rotate-clockwise {
	0% {
		transform: rotate(0deg);
	}
	50% {
		transform: rotate(15deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

@keyframes rotate-error {
	0% {
		transform: rotate(-10deg);
	}
	50% {
		transform: rotate(10deg);
	}
	100% {
		transform: rotate(-10deg);
	}
}

.rotate-animation {
	animation: rotate-clockwise 2s linear infinite;
}

.error-animation {
	animation: rotate-error 2s linear infinite;
	width: 80px;
	height: 80px;
}

input,
textarea {
	caret-color: transparent;
	-webkit-user-select: none;
}
