*, *:before, *:after {
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
	font-size: 0;
	box-sizing: inherit;
}

html, body {
	height: 100%;
	background-color: black;
	/* REMOVE SCROLL BAR */
	overflow: hidden;
	/* REMOVE IOS LONG TAP */
	-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);
	/* BACKGROUND BEHIND UNITY CONTAINER */
	background-image: url("game-background.png");
	background-position: center center;
	background-size: cover;
}

img {
	/* PREVENT IMAGE DRAG AND DROP */
	pointer-events: none;
}

#diagnostics-icon, #diagnostics-overlay * {
	font-size: 16px;
	pointer-events: all;
}

#diagnostics-btn {
	min-width: 40px;
	min-height: 40px;
}

#unity-container {
	display: flex;
	position: fixed;
	width: 100%;
	height: 100%;
}

#unity-canvas {
	display: block;
	width: 100%;
	height: 100%;
	background: none;
}

#unity-loading-bar {
	display: block;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

#unity-logo {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	width: 256px;
	height: 256px;
	border: 2px solid white;
	border-bottom: 8px solid white;
	background: url('game-logo.png') no-repeat center;
	background-size: cover;
}

#unity-progress-bar-empty {
	margin-left: auto;
	margin-right: auto;
	width: 256px;
	height: 18px;
	margin-top: 10px;
	background: url('progress-bar-empty-256.png') no-repeat center;
}

#unity-progress-bar-full {
	width: 0%;
	height: 18px;
	margin-top: 10px;
	background: url('progress-bar-full-256.png') no-repeat center;
}

#unity-warning {
	position: absolute;
	left: 50%;
	top: 5%;
	transform: translate(-50%);
	background: white;
	padding: 10px;
	display: none;
}

#mirra-games-block {
	display: flex;
	width: 256px;
	height: 78px;
	margin-top: 10px;
}

#mirra-games-logo {
	height: 78px;
}

#mirra-games-icon {
	margin-top: -8px;
	height: 94px;
}

/* ADAPTATION FOR TOO SMALL DISPLAYS */

@media (max-width: 500px), (max-height: 500px) {

	#unity-logo {
		width: 128px;
		height: 128px;
	}

	#unity-progress-bar-empty {
		width: 128px;
		background: url('progress-bar-empty-128.png') no-repeat center;
	}

	#unity-progress-bar-full {
		height: 18px;
		background: url('progress-bar-full-128.png') no-repeat center;
	}

	#mirra-games-block {
		width: 128px;
		height: 39px;
	}

	#mirra-games-logo {
		height: 39px;
	}

	#mirra-games-icon {
		margin-top: -4px;
		height: 47px;
	}

}
