html, body {
	padding: 0;
	margin: 0;
	font-family: 'Roboto', sans-serif;
	overflow: hidden;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	font-size: 0;
}

#bg {
	width: 100vw;
	height: 100vh;
}

.scene {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
}

.slide {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	height: auto;
	width: auto;
	background-color: #000;
/*	box-shadow: 0.5vh 0.5vh 0.5vh 0.5vh rgba(0, 0, 0, .2); */
}

.caption {
	position: absolute;
	left: 50%;
/*	width: 95vw; */
	bottom: 3vh;
	background-color: rgba(0, 0, 0, 0.5);
	color: rgba(255, 255, 255, 1.0);
	transform: translate(-50%, 0);
}

.caption p {
	margin: 0;
	padding-left: 0.5em;
	padding-right: 0.5em;
	text-align: center;
	font-size: 4vh;
	font-family: "capfont", serif;
	margin-block-start: 0;
	margin-block-end: 0;
}

.caption.top {
	bottom: unset;
	top: 3vh;
}

.btn {
	display: inline-block;
	font-size: 4vh;
	background-color: #eee;
	margin: 0.5vh;
	border-radius: 0.1em;
	padding: 0.1vh 1vh 0.1vh 1vh;
	cursor: pointer;
}

.btn.active {
	color: #fff;
	background-color: #0f0;
}

.btn.active.off {
	color: #fff;
	background-color: #f00;
}

#pause_menu {
	display: none;
	position: absolute;
	width: 20em;
	top: 20vh;
	left: 30vw;
	text-align: center;
	background-color: #fff;
	font-size: 3vh;
	font-weight: bold;
	color: #777;
	border-radius: 0.2em;
	padding: 1em 2em;
	box-sizing: border-box;
}

#nav_circles_wrap {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	font-size: 2vh;
	text-align: center;
}

.nav_circle {
	display: inline-block;
	width: 2vh;
	height: 2vh;
	border: 0.2vh solid rgba(255, 255, 255, 0.5);
	border-radius: 1vh;
	margin: 0 0.1vh;
}

.nav_circle.active {
	background-color: rgba(255, 255, 255, 0.5)
}

#prev_btn {
	display: none;
	position: absolute;
	font-size: 10vh;
	top: 45vh;
	left: 0;
	color: rgba(255, 255, 255, 0.5);
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 2em;
	padding: 0.2em 0.5em;
	margin-left: -0.4em;
}

#next_btn {
	display: none;
	position: absolute;
	font-size: 10vh;
	top: 45vh;
	right: 0;
	color: rgba(255, 255, 255, 0.5);
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 2em;
	padding: 0.2em 0.5em;
	margin-right: -0.4em;
}

#pause_menu_close_btn {
	position: absolute;
	right: 0;
	top: 0;
}

#controls_btn {
	position: absolute;
	right: 2em;
	bottom: 0;
	width: 5em;
	height: 2em;
	font-size: 4vh;
	background: #fff;
	border: 0.1em solid #888;
	line-height: 2em;
	text-align: center;
}

.scrapbook .slide {
	border: 2vh solid #fff;
	border-width: 2vh 2vh 10vh 2vh;
}

._scene.scrapbook {
	background-image: url("scrap_bg.png");
	background-size: 100% 100%;
}

.anim_left {
	animation-duration: 1s;
	animation-name: animleft;
}

@keyframes animleft {
	from {
		margin-left: 100%;
	}

	to {
		margin-left: 0;
	}
}

.anim_right {
	animation-duration: 1s;
	animation-name: animright;
}

@keyframes animright {
	from {
		margin-left: -100%;
	}

	to {
		margin-right: 0;
	}
}

.anim_fade {
	filter: brightness(0);
}

#controls_bar {
	display: flex;
	position: absolute;
	bottom: 3vmin;
	left: 4vmin;
	width: calc(100vw - 8vmin);
	height: 4.5vmin;
	padding: 0;
	margin: 0;
	z-index: 110;
}

#controls_bar .btn {
	background-color: #528bdf;
	color: #fff;
	font-size: 2.5vmin;
	line-height: 3.5vmin;
	font-weight: bold;
}

#controls_left_side {
	display: flex;
	flex-grow: 1;
}

#progress_wrap {
	display: flex;
	color: #000;
	font-size: 2vmin;
	flex-direction: column;
	padding-left: 1vmin;
	padding-right: 1vmin;
}

#slide_of {
	flex-grow: 1;
}

#progress_num_wrap {
	display: flex;
}

#progress_bar_wrap {
	background-color: #bbb;
	height: 2vmin;
	width: 40vmin;
}

#progress_bar {
	height: 2vmin;
	width: 50%;
	background-color: #528bdf;
}

#img_loader0, #img_loader1 {
	position: absolute;
	width: 1px;
	height: 1px;
	left: -2px;
	top: -2px;
}
