body {
	/* iOS No Pinch Scaling */
	touch-action: none;
	touch-action: pan-x pan-y;

	-ms-scroll-chaining: none;
	overscroll-behavior: contain;
	height: 100vh;
	height: -moz-available;
	height: -webkit-fill-available;
	height: fill-available;
	width: 100vw;
	width: -moz-available;
	width: -webkit-fill-available;
	width: fill-available;
	background: #000000;
	margin: 0;
	padding: 0;
	border: 0;
	animation: fadeInAnimation ease 3s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
	overflow: hidden;
}

@keyframes fadeInAnimation {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

body,
canvas,
div {
	outline: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#sbg-game-area {
	visibility: hidden;
	position: fixed;
	box-shadow: 0px 10px 20px black;
	opacity: 0;
	transition: opacity 0.25s;
}

#sbg-game-background {
	visibility: hidden;
	position: absolute;
	height: calc(100vh + env(safe-area-inset-bottom) + env(safe-area-inset-top));
	min-height: 100vh;
	min-height: -moz-available;
	min-height: -webkit-fill-available;
	min-height: fill-available;
	width: calc(100vw + env(safe-area-inset-left) + env(safe-area-inset-right));
	min-width: 100vw;
	min-width: -moz-available;
	min-width: -webkit-fill-available;
	min-width: fill-available;
	background-image: url('./images/background.jpg');
	background-repeat: no-repeat;
	background-size: cover;
}

#sbg-publisher-mgs,
#sbg-publisher-other {
	position: relative;
	height: 100%;
	width: 100%;
}

/* Publisher MGS */
#sbg-mgs-header {
	height: 12.5%;
}

#sbg-mgs-game-logo {
	height: 37.5%;
	width: 84%;
	margin: 0 8%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}

#sbg-mgs-gap {
	height: 5%;
}

#sbg-logo-container-portrait {
	display: block;
	position: relative;
	height: 25%;
	width: 84%;
	margin: 0 8%;
}

#sbg-logo-container-landscape {
	position: relative;
	height: 18%;
	margin: auto;
	display: none;
}

#sbg-logo-container-portrait div {
	width: 100%;
	margin: auto;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

#sbg-mgs-logo-portrait {
	height: 22.5%;
}

#sbg-logo-spacer-portrait {
	height: 14%;
}

#sbg-logo-portrait {
	height: 63.5%;
}

#sbg-logo-container-landscape div {
	background-repeat: no-repeat;
	background-size: contain;
}

#sbg-mgs-logo-landscape {
	flex-grow: 100;
	background-position: left;
}

#sbg-logo-leftspacer-landscape {
	flex-grow: 20;
}

#sbg-logo-midspacer-landscape {
	flex-grow: 15;
}

#sbg-logo-rightspacer-landscape {
	flex-grow: 20;
}

#sbg-logo-landscape {
	flex-grow: 90;
	background-position: right;
}

#sbg-mgs-loader {
	height: 12.5%;
	margin: auto;
}

@media screen and (orientation: landscape) {
	#sbg-mgs-header {
		height: 5%;
	}
	#sbg-mgs-game-logo {
		height: 57%;
	}

	#sbg-mgs-gap {
		height: 0;
	}

	#sbg-logo-container-landscape {
		display: flex;
	}

	#sbg-logo-container-portrait {
		display: none;
	}

	#sbg-mgs-loader {
		height: 15%;
	}

	#sbg-mgs-loader .meter-wrap {
		top: calc(33.33% - 1px);
	}
}

/* Publisher Other */

#sbg-other-header {
	height: 30%;
}

#sbg-other-logo {
	height: 40%;
	width: 84%;
	margin: 0 8%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}

#sbg-other-loader {
	height: 30%;
	width: 50%;
	margin: 0 25%;
}

#sbg-other-loader .meter-wrap {
	top: calc(25% - 1px);
}

@media screen and (orientation: landscape) {
	#sbg-other-header {
		height: 25%;
	}

	#sbg-other-logo {
		height: 50%;
	}

	#sbg-other-loader {
		height: 25%;
		width: 25%;
		margin: 0 37.5%;
	}
}

/* Loader */
.meter-wrap {
	position: relative;
	top: calc(50% - 1px);
	height: 2px;
	width: 100%;
}

.meter-wrap-bg-container,
.meter-value {
	position: absolute;
	height: 100%;
	width: 100%;
}

.meter-bg-container {
	height: 100%;
	width: 100%;
}

.meter-wrap-bg-bar,
.meter-bg-bar {
	height: 100%;
}

.meter-wrap-bg-bar {
	width: 100%;
	background-color: #333333;
}

.sbg-meter-bg-bar {
	width: 0%;
	background-color: #00ffff;
}

/* Disclaimer */
.disclaimer {
	position: absolute;
	bottom: 0;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}
