/* Page root */
html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background-color: #000;
}

/* Unity root container */
#unity-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background-color: #000;
}

#unity-container.unity-desktop {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Unity canvas */
#unity-canvas {
	display: block;
	width: auto;
	height: auto;
	max-width: 100vw;
	max-height: 100dvh;
	background: var(--unity-background-color) var(--unity-loading-background-image) center / cover no-repeat;
}

.unity-mobile #unity-canvas {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
}

/* Loading UI */
#unity-loading-bar {
	position: absolute;
	top: 50%;
	left: 50%;
	display: none;
	text-align: center;
	transform: translate(-50%, -50%);
}

#unity-logo {
	width: 154px;
	height: 130px;
	margin: 0 auto;
	background-image: var(--unity-logo-image);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

#unity-progress-bar-empty {
	width: 141px;
	height: 18px;
	margin: 0 auto;
	background-image: var(--unity-progress-empty-image);
	background-repeat: no-repeat;
	background-position: center;
}

#unity-progress-bar-full {
	width: 0%;
	height: 18px;
	background-image: var(--unity-progress-full-image);
	background-repeat: no-repeat;
	background-position: center;
}

#load-message {
	padding: 10px;
	text-align: center;
}

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