@font-face {
	font-family: MyriadProBold;
	src: url("MyriadPro-Bold.otf");
}

@font-face {
	font-family: FiraSansLightItalic;
	src: url("firasanslightitalic.woff");
}

body {
	touch-action: none;
	margin: 0;
	border: 0 none;
	padding: 0;
	position: fixed;
	text-align: center;
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */
}

body.desktop {
	background-repeat: no-repeat;
	background-image: url("loading.png");
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
}

#canvas {
	margin: 0;
	color: white;
}

#canvas.ios {
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

#canvas.show {
	display: block;
}

#canvas:focus {
	outline: none;
}

#game-logo {
	position: fixed;
	z-index: -1;
	top: -7%;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	max-width: 32%;
	max-height: 50%;
}

#ortiz-logo {
	position: fixed;
	z-index: -1;
	top: 86%;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	max-width: 16%;
	max-height: 25%;
	visibility: hidden;
}

.godot {
	font-family: "Noto Sans", "Droid Sans", Arial, sans-serif;
	color: #e0e0e0;
	background-color: #3b3943;
	background-image: linear-gradient(to bottom, #403e48, #35333c);
	border: 1px solid #45434e;
	box-shadow: 0 0 1px 1px #2f2d35;
}

/* ================================================= */
/* TELA DE CARREGAMENTO DESKTOP */

#desktop-loading {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	/* don't consume click events - make children visible explicitly */
	visibility: hidden;
	width: 100vw;
	height: 100vh;
}

#desktop-game-logo {
	visibility: visible;
	margin: 0 auto;
}

#desktop-ortiz-logo {
	visibility: hidden;
	position: absolute;
	right: 20px;
	bottom: 150px;
}

#status-progress {
	width: 400px;
	height: 7px;
	z-index: -1;
	/* background-image: "bar_loading.png"; */
	background-color: rgba(1, 1, 1, 0.2);
	position: fixed;
	top: 86.5%;
	padding: 1px;
	box-shadow: 0 0 2px 1px #1b1c22;
	border-radius: 2px;
	visibility: visible;
}

#status-progress-inner {
	height: 100%;
	width: 0;
	box-sizing: border-box;
	transition: width 0.5s linear;
	background-color: #feef40;
	box-shadow: 0 0 2px 0.5px #feef40;
	border-radius: 3px;
}

.status-indeterminate {
	visibility: visible;
	position: fixed;
	bottom: var(--origin-bottom);
	right: var(--origin-right);

	--box-size: 90px;
	--circle-size: 36px;
	--dot-size: 6px;
	--origin-bottom: var(--box-size);
	--origin-right: var(--box-size);
	--animation-duration: 1.2s;
}

.status-indeterminate > div {
	width: var(--dot-size);
	height: var(--dot-size);
	border-radius: 50%;
	background: #fff;

	position: fixed;
	bottom: calc(
		var(--origin-bottom) - sin(360deg * var(--dot-ratio)) * var(--circle-size)
	);
	right: calc(
		var(--origin-right) - cos(360deg * var(--dot-ratio)) * var(--circle-size)
	);

	animation: status-indeterminate var(--animation-duration) linear infinite;
	animation-delay: calc(var(--animation-duration) * var(--dot-ratio));
	box-shadow: 0px 0px 3px #511487;
}

.status-indeterminate > div:nth-child(1) {
	--dot-ratio: calc(1 / 12);
}

.status-indeterminate > div:nth-child(2) {
	--dot-ratio: calc(2 / 12);
}

.status-indeterminate > div:nth-child(3) {
	--dot-ratio: calc(3 / 12);
}

.status-indeterminate > div:nth-child(4) {
	--dot-ratio: calc(4 / 12);
}

.status-indeterminate > div:nth-child(5) {
	--dot-ratio: calc(5 / 12);
}

.status-indeterminate > div:nth-child(6) {
	--dot-ratio: calc(6 / 12);
}

.status-indeterminate > div:nth-child(7) {
	--dot-ratio: calc(7 / 12);
}

.status-indeterminate > div:nth-child(8) {
	--dot-ratio: calc(8 / 12);
}

.status-indeterminate > div:nth-child(9) {
	--dot-ratio: calc(9 / 12);
}

.status-indeterminate > div:nth-child(10) {
	--dot-ratio: calc(10 / 12);
}

.status-indeterminate > div:nth-child(11) {
	--dot-ratio: calc(11 / 12);
}

.status-indeterminate > div:nth-child(12) {
	--dot-ratio: calc(12 / 12);
}

@keyframes status-indeterminate {
	0%,
	100% {
		transform: scale(0.6);
	}

	20%,
	80% {
		transform: scale(1);
	}

	50% {
		transform: scale(2.4);
	}
}

.button {
	cursor: pointer;
}

/* ================================================= */
/* POPUP ERRO CRITICO JOKER  */

.popup {
	z-index: 100;
}

#popup-error {
	top: 100%;
	opacity: 0;
	transition: opacity 0.2s linear;
	font-family: MyriadProBold;
	color: white;
	position: fixed;
}

#popup-error.show {
	top: 0px;
	display: block;
	opacity: 1;
	width: 100vw;
	height: 100vh;
}

#popup-error .background {
	position: absolute;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.65);
}

#popup-error .main-box {
	position: relative;
	top: calc(50% - 300px);
	width: 328px;
	height: 581px;
	background-image: url("background_error.png");
	background-repeat: no-repeat;
	margin: auto;
}

#popup-error .main-box .error-title {
	position: relative;
	left: 2px;
	top: 275px;
	width: 306px;
	padding: 10px;
	font-size: 22px;
	text-shadow: -1px -2px 0 #000, 2px -2px 0 #000, -1px 2px 0 #000,
		2px 2px 0 #000;
}

#popup-error .main-box .error-description {
	position: relative;
	top: 300px;
	left: 2px;
	width: 306px;
	padding: 10px;
	font-size: 16px;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
		1px 1px 0 #000;
}

#popup-error .main-box .error-code {
	top: 585px;
	position: absolute;
	text-align: right;
	width: 100%;
	font-size: 12px;
}

#popup-error .main-box .button {
	position: absolute;
	bottom: 20px;
	left: 15px;
	line-height: 70px;
	color: white;
	width: 300px;
	height: 67px;
	background-image: url("./button.png");
	text-transform: uppercase;
}
