html, body {
	padding: 0;
	margin: 0;
	overflow: hidden;
}

body {
	min-width: 100%;
	width: 100%;
	max-width: 100%;
	min-height: 100%;
	height: 100%;
	max-height: 100%;
	
	background: #3d11c0;
	color: white;
}

#orientation-guard {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
	background: #3d11c0 url(icons/loading-logo.png) center 18% / min(42vw, 180px) auto no-repeat;
	z-index: 10000;
}

#orientation-guard.is-active {
	display: flex;
}

.orientation-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 110px;
	font: 20px/1.35 Arial, sans-serif;
	text-align: center;
	text-shadow: 0 2px 4px rgba(0, 0, 0, .55);
}

.orientation-message strong {
	font-size: 28px;
}

.orientation-phone {
	width: 42px;
	height: 72px;
	margin-bottom: 8px;
	border: 5px solid #fff;
	border-radius: 8px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
	animation: rotate-device 1.8s ease-in-out infinite;
}

@keyframes rotate-device {
	0%, 25% { transform: rotate(0deg); }
	65%, 100% { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
	.orientation-phone { animation: none; transform: rotate(90deg); }
}

html, body, canvas {
	touch-action-delay: none;
	touch-action: none;
}

canvas, .c3htmlwrap {
	position: absolute;
}

.c3htmlwrap {
	contain: strict;
}

.c3overlay {
	pointer-events: none;
}

.c3htmlwrap > * {
	pointer-events: auto;
}

/* HACK - work around elements being selectable only in iOS WKWebView for some reason */
html[ioswebview] .c3htmlwrap,
html[ioswebview] canvas {
	-webkit-user-select: none;
	user-select: none;
}

html[ioswebview] .c3htmlwrap > * {
	-webkit-user-select: auto;
	user-select: auto;
}

#notSupportedWrap {
	margin: 2em auto 1em auto;
	width: 75%;
	max-width: 45em;
	border: 2px solid #aaa;
	border-radius: 1em;
	padding: 2em;
	background-color: #f0f0f0;
	font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
	color: black;
}

#notSupportedTitle {
	font-size: 1.8em;
}

.notSupportedMessage {
	font-size: 1.2em;
}

.notSupportedMessage em {
	color: #888;
}

/* bbcode styles */
.bbCodeH1 {
	font-size: 2em;
	font-weight: bold;
}

.bbCodeH2 {
	font-size: 1.5em;
	font-weight: bold;
}

.bbCodeH3 {
	font-size: 1.25em;
	font-weight: bold;
}

.bbCodeH4 {
	font-size: 1.1em;
	font-weight: bold;
}

.bbCodeItem::before {
	content: " • ";
}

/* For text icons converted to HTML: size the height to the line height
   preserving the aspect ratio. Also add position: relative as that allows
   just adding a 'top' style for the iconoffsety style. */
.c3-text-icon {
	height: 1em;
	width: auto;
	position: relative;
}

/* screen reader text */
.c3-screen-reader-text {
	position: absolute;
	width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}
