* {
	touch-action: none !important;
}

/**
 * Applying styles on Titan Universal Preloader, which is not good,
 * but it just makes life so much easier to have it absolute positioned.
 */
#universalPreloader {
	position: absolute;
}

body {
	/* iOS No Touch Pinch Scaling */
	touch-action: none;
	touch-action: pan-x pan-y;
	-ms-scroll-chaining: none;
	overscroll-behavior: contain;
	background-color: #000000;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 0;
}

#sbg-game-frame {
	/* border-box allows padding to be used with 100% height & width */
	box-sizing: border-box;
	height: 100%;
	width: 100%;
}

#sbg-paytable {
	pointer-events: none;

	position: absolute;
	box-sizing: border-box;
	display: flex;
	height: 100%;
	width: 100%;
	justify-content: center;
	align-items: center;
}

#sbg-paytable-frame {
	pointer-events: auto;
}

#sbg-video {
	pointer-events: auto;
	position: absolute;
	box-sizing: border-box;
	display: flex;
	height: 100%;
	width: 100%;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.7);
}

#sbg-video.hide {
	pointer-events: none;
	animation-name: fadeOutOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-out;
	animation-duration: 0.5s;
}

#sbg-video.show {
	pointer-events: auto;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}

#sbg-in-game-video {
	pointer-events: none;
}

#sbg-in-game-video.hide {
	pointer-events: none;
	animation-name: fadeOutOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-out;
	animation-duration: 0.5s;
}

#sbg-in-game-video.show {
	pointer-events: auto;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes fadeOutOpacity {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

.sbg-close-button {
	position: inherit;
	top: 0px;
	left: 66%;
	margin-left: 0px;
	width: 30px;
	height: 30px;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	border-radius: 50%;
	color: white;
	font-size: 27px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	z-index: 1000;
}

.sbg-close-button:hover {
	background: rgba(0, 0, 0, 0.9);
}

/* Mobile devices */
@media screen and (max-width: 768px) {
	.sbg-close-button {
		left: 90%;
		font-size: 22px;
		width: 28px;
		height: 28px;

	}
}

/* Rotate Overlay */
#sbg-rotate-overlay {
	background: #000000;
	background-image: url('./images/rotate-overlay.gif');
	background-size: 250px;
	background-repeat: no-repeat;
	background-position: center center;
}

.sbg-full-coverage {
	touch-action: none;
	position: absolute;
	height: 100%;
	width: 100%;
}

.hide {
	/* Cocos Cannot launch canvas if using display: none; */
	opacity: 0;
}

@media (orientation: landscape) {
	#sbg-game-frame .is-mobile {
		opacity: 0;
	}
	#sbg-rotate-overlay {
		display: block;
	}
}

@media (orientation: portrait) {
	#sbg-game-frame .is-mobile {
		opacity: 1;
	}
	#sbg-rotate-overlay {
		display: none;
	}
}

/* Titan IGL */
.titan-igl-container {
	transition: opacity 500ms ease-in-out;
}

.titan-igl-container.show {
	pointer-events: auto !important;
	opacity: 1 !important;
	cursor: pointer;
}

.titan-igl-container.hide {
	pointer-events: none !important;
	opacity: 0 !important;
	cursor: default;
}

.sbg-igv-loader {
	width: 4rem;
	height: 4rem;
	border-top: 5px solid rgb(255, 0, 0, 0.8);
	border-right: 3px solid rgb(255, 0, 0);
	border-radius: 50%;
	animation: rotation 0.8s linear infinite;
	z-index: 1000;
}
@keyframes rotation {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(359deg);
	}
}
