/* Saira-regular */
@import url("//fonts.loli.net/css?family=Saira");

@font-face {
	font-family: 'SyHybrid';
	src: url('./sy.ttf') format('truetype');
}

@font-face {
	/* 1.注意font-family:icomoon */
	font-family: 'icomoon_phisimnewui';
	/* 2.注意路径! */
	src:  url('./fonts/icomoon_phisimnewui.eot?v=3');
	src:  url('./fonts/icomoon_phisimnewui.eot?v=3') format('embedded-opentype'),
		url('./fonts/icomoon_phisimnewui.ttf?v=3') format('truetype'),
		url('./fonts/icomoon_phisimnewui.woff?v=3') format('woff'),
		url('./fonts/icomoon_phisimnewui.svg?v=3') format('svg');
	font-weight: normal;
	font-style: normal;
}


::-webkit-scrollbar {
	display: none;
}

:root {
	/* Firefox */
	scrollbar-width: none;
}

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

#select div {
	display: inline-block;
}

#fixBgImgDiv {
	margin: 0 auto;
	width: calc(35%);
	border: 3px solid;
	border-image: linear-gradient(45deg, gold, deeppink) 1;
	clip-path: inset(0px round 3px);
	animation: huerotate 6s infinite linear;
	filter: hue-rotate(360deg);
}

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

#stage i {
	font-family: icomoon_phisimnewui;
	font-style: normal;
	color: rgb(199, 199, 199);
	font-size: 3vmin;
	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: Saira, SyHybrid, 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,
#cover-config {
	position: fixed;
	width: 85vmin;
	height: 85vh;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	transition-property: opacity, visibility;
	transition-duration: 0.2s;
	z-index: 300;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-content: stretch;
	justify-content: space-between;
	align-items: stretch;
}

#view-doc,
#view-msg,
#view-config {
	width: 95%;
	height: 99%;
	padding: 1px 0 0 0;
	margin: auto;
	overflow: scroll;
}

#view-config>div {
	/* display: inline-block; */
	padding-block: 0.5em;
}

.view-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: center;
	justify-content: space-evenly;
	align-items: stretch;
}

.view-nav a,
.view-nav p {
	background-color: #89a7f3;
	color: #f0f1fe;
	flex-grow: 1;
	text-align: center;
	border: 1px solid gray;
	border-radius: 2vmin 2vmin 0 0;
	margin: 0;
	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;
	flex-grow: 1;
	height: 0;
}

#view-msg:empty::after {
	content: "信息将会显示在这里";
	display: flow-root;
	text-align: center;
	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 {
	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;
}

@keyframes huerotate {
	0% {
		filter: hue-rotate(0deg);
	}
	100% {
		filter: hue-rorate(360deg);
	}
}