html, body {
	padding: 0;
	margin: 0;
	overflow: hidden;
	height: 100%;
}

body {
	background: #000000;
	color: white;
}

input[type="file"] {
	color: black;
}

/* for scaling checkboxes according to the font size */
.c3-auto-size-checkbox {
	font-size: 1em;
	width: 1em;
	height: 1em;
	vertical-align: bottom;
	margin: 0.1em 0.25em;
}

html, body, canvas {
	touch-action-delay: none;
	touch-action: none;
}

canvas, .c3htmlwrap {
	position: absolute;
}

.c3htmlwrap {
	contain: strict;
}

.c3overlay {
	pointer-events: none;
}

.c3htmlwrap[interactive] > * {
	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);
}

#c3-loading-screen {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: radial-gradient(1200px circle at 50% 30%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0) 55%), #000;
	color: #fff;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#c3-loading-screen.c3-loading--hidden {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.c3-loading__inner {
	width: min(520px, 100%);
	text-align: center;
}

.c3-loading__logo {
	width: 96px;
	height: 96px;
	object-fit: contain;
	margin: 0 auto 14px auto;
	display: block;
}

.c3-loading__title {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.2px;
	margin-bottom: 8px;
}

.c3-loading__message {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	margin-bottom: 14px;
}

.c3-loading__hint {
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	margin-top: 12px;
	line-height: 1.4;
}

.c3-loading__spinner {
	width: 30px;
	height: 30px;
	margin: 0 auto;
	border: 3px solid rgba(255, 255, 255, 0.15);
	border-top-color: rgba(255, 255, 255, 0.75);
	border-radius: 50%;
	animation: c3-spin 0.9s linear infinite;
}

#c3-loading-screen.c3-loading--error .c3-loading__spinner {
	display: none;
}

.c3-loading__btn {
	margin-top: 16px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

.c3-loading__btn:hover {
	background: rgba(255, 255, 255, 0.1);
}

@keyframes c3-spin {
	to {
		transform: rotate(360deg);
	}
}
