html, body {
	padding: 0;
	margin: 0;
	overflow: hidden;
	height: 100%;
	background: #ffddd8;
}

body {
	background: #ffddd8;
	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);
}
#toka-loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	background: #ffddd8;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, visibility .18s ease;
	overflow: hidden;
}

#toka-loading-overlay.visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#toka-loading-overlay .toka-loading-center {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-sizing: border-box;
}

#toka-loading-overlay .toka-loading-art {
	height: 100vh;
	width: auto;
	max-width: 100vw;
	max-height: 100vh;
	object-fit: contain;
	image-rendering: auto;
}

#toka-loading-overlay .toka-loading-clock-wrap {
	position: absolute;
	left: clamp(16px, 2.4vw, 32px);
	bottom: clamp(14px, 2.4vw, 30px);
	width: clamp(118px, 10.2vw, 170px);
	height: clamp(118px, 10.2vw, 170px);
}

#toka-loading-overlay .toka-loading-clock-face,
#toka-loading-overlay .toka-loading-clock-rotator {
	position: absolute;
	left: 0;
	top: 3.6%;
	width: 100%;
	height: 100%;
}

#toka-loading-overlay .toka-loading-clock-face {
	object-fit: contain;
}

#toka-loading-overlay .toka-loading-clock-rotator {
	animation: tokaClockSpin 1.35s linear infinite;
	transform-origin: 50% 50%;
}

#toka-loading-overlay .toka-loading-clock-hands {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	object-fit: contain;
}

#toka-loading-overlay .toka-loading-progress-wrap {
	position: absolute;
	left: 50%;
	bottom: clamp(18px, 2.2vw, 28px);
	transform: translateX(-50%);
	width: min(420px, calc(100vw - 210px));
	max-width: 70vw;
}

#toka-loading-overlay .toka-loading-progress-track {
	height: clamp(12px, 1.4vw, 18px);
	border-radius: 999px;
	background: rgba(255,255,255,.52);
	box-shadow: inset 0 0 0 2px rgba(255,255,255,.86), 0 2px 8px rgba(0,0,0,.12);
	overflow: hidden;
}

#toka-loading-overlay .toka-loading-progress-fill {
	height: 100%;
	width: 0%;
	border-radius: inherit;
	background: linear-gradient(90deg, #46b8ff 0%, #149cff 100%);
	transition: width .14s linear;
}

#toka-loading-overlay.transition-mode .toka-loading-progress-fill {
	width: 42%;
	animation: tokaLoaderIndeterminate 1.1s ease-in-out infinite;
}

@keyframes tokaClockSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes tokaLoaderIndeterminate {
	0% { transform: translateX(-30%); width: 30%; }
	50% { transform: translateX(95%); width: 55%; }
	100% { transform: translateX(230%); width: 30%; }
}

@media (max-width: 900px) {
	#toka-loading-overlay .toka-loading-art {
			height: 100vh;
		width: auto;
		max-width: 100vw;
		max-height: 100vh;
	}
	#toka-loading-overlay .toka-loading-progress-wrap {
		width: min(360px, calc(100vw - 156px));
	}
}

@media (max-width: 640px) {
	#toka-loading-overlay .toka-loading-progress-wrap {
		left: 50%;
		bottom: 18px;
		width: calc(100vw - 146px);
		max-width: 320px;
	}
	#toka-loading-overlay .toka-loading-clock-wrap {
		width: 96px;
		height: 96px;
	}
}
