@font-face {
	font-family: Custom;
	src: url('./src/Custom.woff2') format('woff2');
}

html,
body {
	/*overflow: hidden;*/
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
}

#select div {
	display: inline-block;
}

#stage {
	position: relative;
	background-color: rgba(0, 0, 0, 0.2);
	margin: auto;
	line-height: 0;
}

#stage i {
	font-family: icomoon;
	font-style: normal;
	color: #fff;
	font-size: 4vmin;
	pointer-events: none;
	opacity: 0.6;
	line-height: initial;
}

#stage i.tl {
	position: absolute;
	top: 0;
	left: 0;
}

#stage i.tr {
	position: absolute;
	top: 0;
	right: 0;
}

#stage i.bl {
	position: absolute;
	bottom: 0;
	left: 0;
}

#stage i.br {
	position: absolute;
	bottom: 0;
	right: 0;
}

#mask {
	color: gray;
	font-family: Custom, Consolas, Menlo, monospace;
	font-size: 4vmin;
	position: absolute;
	width: 70vmin;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 100;
	line-height: 1.5em;
}

#uploader {
	display: inline-block;
	position: relative;
}

#uploader-select {
	display: flex;
	flex-direction: column;
	visibility: hidden;
	position: absolute;
	top: 100%;
	left: 0;
	width: max-content;
	border: 1px solid #93cb96;
	box-shadow: 0 0 8px 0 #7dc581;
	border-radius: 3px;
	background: #fff;
}

#uploader:hover #uploader-select {
	visibility: visible;
}

#uploader-select>label {
	font-size: 0.9em;
	padding: 0.15em 0.15em 0.15em 0;
	text-align: left;
	padding: 0.2em 0.6em;
}

#uploader-select>label:hover {
	background-color: #c9e5ca;
}

.cover-dark {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.65);
	left: 0px;
	bottom: 0px;
	transition-property: opacity, visibility;
	transition-duration: 0.2s;
	z-index: 200;
}

.cover-view {
	position: fixed;
	width: 85vmin;
	height: 85vh;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	transition-property: opacity, visibility;
	transition-duration: 0.2s;
	z-index: 200;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: center;
	justify-content: center;
	align-items: stretch;
	pointer-events: none;
}

.cover-view>* {
	pointer-events: initial;
}

#view-doc,
#view-msg,
#view-cfg {
	width: 100%;
	height: 99%;
	margin: auto;
	overflow: scroll;
}

#view-cfg>div {
	padding: 0.5em 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.view-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: center;
	justify-content: space-evenly;
	align-items: stretch;
	border: 1px solid gray;
	border-radius: 2vmin 2vmin 0 0;
	overflow: hidden;
	flex-shrink: 0;
	min-width: 50%;
}

.view-nav a,
.view-nav p {
	background-color: #89a7f3;
	color: #f0f1fe;
	flex-grow: 1;
	text-align: center;
	border: 1px solid gray;
	margin: -1px;
	padding: 0.5vmin;
	font-size: calc(12px + 1vmin);
	transition-property: color, background-color;
	transition-duration: 0.2s;
}

.view-nav a:hover,
.view-nav a.active {
	background-color: #f0f1fe;
	color: #89a7f3;
}

.view-content {
	background-color: #f0f1fe;
	border: 1px solid gray;
	border-radius: 0 0 2vmin 2vmin;
	overflow: scroll;
	margin-top: -1px;
	padding: 1% 2.5% 0%;
}

.cover-view[qwq] {
	flex-wrap: nowrap;
}

.cover-view[qwq]>.view-content {
	flex-grow: 1;
}

#view-msg:empty::after {
	content: "信息将会显示在这里";
	display: flow-root;
	text-align: center;
	padding: calc(6px + 1vmin);
	font-size: calc(6px + 1vmin);
	user-select: text;
	-webkit-user-select: text;
	-moz-user-select: text;
}

.msgbox {
	display: flow-root;
	margin: calc(6px + 1vmin) 0;
	border: 1px solid gray;
	border-radius: calc(6px + 1vmin);
	text-align: left;
	word-break: break-all;
	white-space: pre-wrap;
	padding: calc(6px + 1vmin);
	font-size: calc(6px + 1vmin);
	font-family: Consolas, Menlo, monospace;
	user-select: text;
	-webkit-user-select: text;
	-moz-user-select: text;
}

.msgbox[type="warn"] {
	background-color: #fffbe5;
	color: #5c3c00;
}

.msgbox[type="error"] {
	background-color: #fee;
	color: #e10000;
}