@font-face {
  font-family: melnics;
  src: url(fonts/melnics.ttf);
}
@font-face {
  font-family: reigasou;
  src: url(fonts/reigasou.ttf);
}
@font-face {
  font-family: kakougothic;
  src: url(fonts/kakougothic.ttf);
}

:root {
	--main-bg-color: #EEEEEE;
	--alt-bg-color: #CFCFCF;
	--main-text-color: #111111;
	--accent-text-color: #000050;
	--accent-alt-text-color: #3F3F80;
}
@media (prefers-color-scheme: dark) {
	:root {
		--main-bg-color: #222222;
		--alt-bg-color: #333333;
		--main-text-color: #DDDDDD;
		--accent-text-color: #CECEFF;
		--accent-alt-text-color: #9D9DDD;
	}
}
body {
	background: var( --main-bg-color);
	color: var(--main-text-color);
	scrollbar-color: var( --main-text-color) var(--main-bg-color);
}
button {
	margin-bottom: 5px;
}
#menu, #loginmenu {
	border-style: solid;
	padding: 20px;
	height: 75vh;
	overflow: auto;
	background: var(--alt-bg-color);
	margin: 20px;
}
#selectmenu {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
#loginmenu img {
	max-width: 400px;
}
#loginmenu p {
	text-align: center;
	font-size: 2em;
}
details > p {
	border-style: solid;
	padding: 20px;
	background: var(--alt-bg-color);
	margin: 20px;
}
summary {
	font-size: 1.25em;
}
a > li {
	padding: 5px;
}
.namelessChapters > li {
	display: inline-block;
}
.sublist {
	list-style: none;
	line-height: 1.25;
}
a {
	color: var(--accent-text-color);
}
a:hover {
	color:  var(--accent-alt-text-color);
}
.narration {
	background: var(--alt-bg-color);
	border-width: 1px;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 15px;
	padding-right: 15px;
	margin-bottom: 5px;
	font-family: kakougothic;
}
.dialogue {
	border-style: solid;
	border-width: 1px;
	padding-left: 12px;
	padding-right: 12px;
	margin-bottom: 5px;
	font-family: kakougothic;
}
.nametag {
	font-family: reigasou;
}
.melnics {
	font-family: melnics;
}
.bustup, .loginillust {
	max-height: 17vh;
}
.illustration {
	text-align: center;
}
.illustration img {
	max-width: 30vw;
}
.hasemote {
	display: inline-block;
}
.loginbanner {
	text-align: center;
}
.comms {
	display: inline-block;
	background-image: url("images/illustration/connecting_01.webp");
	background-repeat: no-repeat;
	background-size: cover;
	background-origin: border-box;
	background-position: bottom;
	height: 17vh;
	border-right: 50px;
}
.comms > .bustup {
	filter: opacity(75%);
}
.dimmed {
	filter: opacity(50%);
}
.comms > .dimmed {
	filter: opacity(33%);
}
.emote{
	max-height: 5vh;
	position: relative;
	bottom: 12vh;
	right: 50px;
	margin-right: -75px;
	z-index: 5;
}
.background2d {
	width: 100%;
	aspect-ratio: 16 / 9;
}
@media screen and (orientation:landscape) {
	#viewer {
		width: 75%;
		max-width: 1519px;
		margin: auto;
	}
}
@media screen and (orientation:portrait) {
	#viewer {
		margin-left: 10px;
		margin-right: 10px;
	}
}
