/* ----------
/* author: https://github.com/au3nh3
/* version:
/* ---------- */

/* root of document tree, <html> */
:root{
	/* --somevar: 16px; */
	/* font-size: var(--somevar); */
}
body {
	/* min-width: 300px; */
	/* width: fit-content; */
	margin: auto;
	/* background-color: #cec6; */
}

/* horizen center */
.text-center {
	text-align:center;
}
.content-center {
	max-width: max-content;
	margin: auto;
}

/* header | navgator bar */
#header {
	background-color: lightblue;
}
/* navgator -- (div).nav - a */
.nav {
	/* overflow: auto; */
	font-family: consolas;
	/* background-color: lightblue; */
	/* border-radius: 8px; */
	/* cont-center */
	/* max-width: max-content; */
	/* margin: 1em auto; */
}
.nav a {
	color: blue;
	display: inline-block;
	/* float: left; */
	padding: 1.25em;
}
.nav a:hover{
	background-color: yellowgreen;
	/* color: #039; */
	font-weight: bold;
	border-radius: 8px;
}
/* active only at the moment when click*/
/* 仅当点击时active,点击后恢复非active */
.nav a:active{
	/* color: red; */
}
.right {
	/* float: right; */
}

/* navgator -- ul.nav - li - a */
ul.nav {
	/* parent overflow:hidden + child float:left */
	/* overflow:hidden; */
	border-radius: 5px;
	margin:0;
	padding:0;
}
.nav li {
	display: inline-block;
	float: left;
}
@media (max-width: 500px) {
	.nav{
		/* max-width: unset; */
		/* margin-left:0; */
	}
	.nav a{
		padding: 1em 0.5em;
	}
	/* .nav:firstchild */
	.nav a:hover {
		/* background-color: unset; */
	}
	.mhide{
		display: none !important;
	}
}

/* dropdown-menu */
.dropdown {
	display:inline-block;
	position: relative;
	overflow: unset;
}
.dropdown-button::after {
	/* content: '  \0022ee' */
	content: ' \0002c5';
}
.dropdown-button {
	/* padding-right: unset; */
}
.a {
	display: inline-block;
	color: blue;
	padding: 1.25em;
	cursor: pointer;
}
.dropdown-content {
	display:none;
	position:absolute;
	background-color:lightblue;
	border-radius: 5px;
}
.dropdown:hover .dropdown-content {
	display: block;
	/* border-bottom-left-radius: 8px; */
	/* border-bottom-right-radius: 8px; */
}
.dropdown:hover .dropdown-button {
	font-weight: bold;
	background-color: yellowgreen;
	border-radius: 8px;
}
.dropdown:hover .dropdown-button::after{
	/* content: '  \0000bb' */
	content: ' \0002c4';
 }
.dropdown-content>a{
	display:block;
	padding: 8px 1.25em;
	/* float: unset; */
}
.dropdown-content a:hover{
	border-radius: 5px;
}


#content {
	/* width: fit-content; */
	margin: 1em auto;
	min-height: 300px;
}
.hide {
	display: none;
}
:target {
	display: block;
}
.p, .nl {
	/* padding:0.5em; */
	margin:1em 0;
}
em{
	font-weight:bold;
	font-style: normal;
	/* color:red; */
}
.large {
	font-size: large;
}

/* link */
/* a:link, a:visited  */
a {
	color: dodgerblue;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}


/* login form */
#login, #ipquery{
	margin: 3em auto;
}
.login {
	width:max-content;
	margin: auto;
	background: #eee;
	padding: 1em;
	border-radius: 1em;
}
fieldset {
	/* width: fit-content; */
	margin: auto;
}
.form-header {
	font-size: 1.25em;
	text-align:center;
	color: #39c;
}
label {
	display:inline-block;
	width:5em;
	margin: 0.5em;
}
input{
	font-size: 1em;
	border-color: #ccc;
	border-style:double;
	border-radius: 0.3em;
}
.login input{
	display: block;
	margin: 1em;
	padding-left: 1.5em;
}
input:focus{
	outline-style: auto;
	outline-color: cadetblue;
	/* border-style:inset; */
}
#user {
	background: url("/src/user.svg") no-repeat 2px;
	background-color: #fff;
}
#pass {
	background-image: url('/src/lock.svg');
	background-repeat: no-repeat;
	background-position: 2px;
	/* background-size: */
}
svg{
	stroke: #ccc;
}	
.button {
	width: 90%;
	margin: auto;
	padding: 0.5em;
	border: none;
	background: #39c;
	color: #fff;
	font-size: 1em;
	cursor: pointer;
}
.button:hover {
	background: #69c;
	font-weight: bold;
}


ul.table{
	display: table;
	margin: auto;
	padding: unset;
}
.table li {display:table-row;}
.table li div{
	display: table-cell;
	padding: 0.5em;
}

table {
    border-collapse: collapse;
}

table, td, th {
    border: 1px solid grey;
}
/* tr:nth-child(even) th,  */
tr:nth-child(even) td{
	background-color: lightgrey;
}
th, td {
	max-width:350px;
	padding: 0.5em 1em;
}

/* hr | div */
.rainbow{
	min-height: 2em;
	padding: 1em initial;
	border: none;
	background: linear-gradient(to right, 
		red,orange,yellow,green,blue,indigo,violet);
}
.tvtest{
	min-height: 2em;
	background: linear-gradient(to right, white 0 12.5%,
		yellow 0 25%, cyan 0 37.5%, green 0 50%, magenta 0 62.5%,
		red 0 75%, blue 0 87.5%, black 0 100%);
}

#footer {
	/* text-align:center; */
}