/*
 * iOS cannot fullscreen an iframe via the Fullscreen API, so the Unity
 * WebGL button is emulated by covering the visual viewport instead.
 */
html.simulation-is-fullscreen,
html.simulation-is-fullscreen body {
	overflow: hidden !important;
	height: 100% !important;
	overscroll-behavior: none;
}

html.simulation-is-fullscreen body {
	position: fixed;
	width: 100%;
	left: 0;
	right: 0;
}

html.simulation-is-fullscreen iframe.simulation-viewer.simulation-mobile-fullscreen,
iframe.simulation-viewer.simulation-mobile-fullscreen {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	height: 100svh !important;
	height: 100dvh !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	padding-bottom: env(safe-area-inset-bottom, 0px) !important;
	background: #000 !important;
	z-index: 2147483000;
}

.simulation-mobile-fullscreen-exit {
	display: none !important;
	position: fixed;
	top: max(8px, env(safe-area-inset-top, 0px));
	right: max(8px, env(safe-area-inset-right, 0px));
	z-index: 2147483646;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

html.simulation-is-fullscreen .simulation-mobile-fullscreen-exit {
	display: none !important;
}

.simulation-mobile-fullscreen-exit::before,
.simulation-mobile-fullscreen-exit::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.simulation-mobile-fullscreen-exit::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.simulation-mobile-fullscreen-exit::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.simulation-terms-gate {
	box-sizing: border-box;
	width: 100%;
	max-width: 48rem;
	margin: 0 auto 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	padding: 2rem 2.25rem 2.25rem;
	background: #fff;
	color: #333;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.05);
	text-align: center;
}

.simulation-terms-heading {
	margin: 0;
	width: 100%;
	color: #e64626;
	font-size: 1.35em;
	font-weight: 800;
	text-align: center;
}

.simulation-terms-text {
	width: 100%;
	max-width: 40rem;
	max-height: 22rem;
	overflow-y: auto;
	font-size: 1.05em;
	line-height: 1.65;
	color: #444;
	text-align: center;
}

.simulation-terms-text p {
	margin: 0 0 1em;
}

.simulation-terms-text p:last-child {
	margin-bottom: 0;
}

#simulation-terms-accept {
	flex-shrink: 0;
	align-self: center;
}

#simulation-player {
	width: 100%;
}

.simulation-terms-gate[hidden],
#simulation-player[hidden] {
	display: none !important;
}
