
html, body, h1, h2, h3, h4, h5, h6, li, ol, ul, pre {
	margin: 0;
	padding: 0; 
}
html, body { min-height: 100%;}

body {
	background-color: white;
	color: #eee;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 62.5%;
	box-sizing: border-box;
}



/* Appearance */
.links {
	position:relative;
	display:flex;
	justify-content: center;
	text-align: center;
	align-items: center;
	background-color: white;
	/*border-bottom: 1px solid #0003;*/
	font-size: 1em;
	font-weight: 300;
	z-index:1;
	height:10vh;
	width:5vw;
}


.links > a:nth-of-type(1){
	--index:1;
	display:flex;
	align-items: center;
	justify-content: center;
	color: rgb(0, 0, 0);
	text-align: center;
	width:auto;
	padding:0.75em;
	text-decoration: none;
	transition: all .5s;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
}

.wrapper > a:nth-of-type(1){
	--index:1;
	display:flex;
	align-items: center;
	justify-content: center;
	height:70px;
	font-size:1.3vw;
	padding:0.75em;
	width:auto;
	color: rgb(0, 0, 0);
	text-align: center;
	text-decoration: none;
	transition: all .5s;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
}

.wrapper > a:nth-of-type(2){
	--index:2;
	display:flex;
	font-size:1.3vw;
	align-items: center;
	justify-content: center;
	color: rgb(0, 0, 0);
	width:auto;
	padding:0.75em;
	height:70px;
	text-align: center;
	text-decoration: none;
	transition: all .5s;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
}
.wrapper > a:nth-of-type(3){
	--index:3;
	display:flex;
	align-items: center;
	justify-content: center;
	color: rgb(0, 0, 0);
	text-align: center;
	width:auto;
	font-size:1.3vw;
	padding:0.75em;
	height:70px;
	text-decoration: none;
	transition: all .5s;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
}
.wrapper > a:nth-of-type(4){
	--index:4;
	display:flex;
	align-items: center;
	justify-content: center;
	color: rgb(0, 0, 0);
	height:70px;
	padding:0.75em;
	width:auto;
	font-size:1.3vw;
	text-align: center;
	text-decoration: none;
	transition: all .5s;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
}

.wrapper > a:nth-of-type(5){
	--index:5;
	display:flex;
	align-items: center;
	justify-content: center;
	height:70px;
	width:auto;
	font-size:1.3vw;
	padding:0.75em;
	color: rgb(0, 0, 0);
	text-align: center;
	text-decoration: none;
	transition: all .5s;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
}
.wrapper> a:nth-of-type(6){
	--index:6;
	display:flex;
	align-items: center;
	height:70px;
	padding:0.75em;
	font-size:1.3vw;
	width:auto;
	justify-content: center;
	color: rgb(0, 0, 0);
	text-align: center;
	text-decoration: none;
	transition: all .5s;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
}


.links > a:nth-of-type(2){
	--index:9;
	display:flex;
	justify-content: right;
	align-items: flex-end;
	color: rgb(0, 0, 0);
	text-decoration: none;
	transition: all .5s;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
}

.links > a:nth-of-type(3){
	--index:9;
	display:flex;
	justify-content: left;
	align-items: flex-end;
	color: rgb(0, 0, 0);
	text-decoration: none;
	transition: all .5s;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
}


.links > a:last-of-type { --index: var(--items); }


/*.links > a:hover {
	background: #9d9e9d;
	color: rgba(255, 255, 255, 0.849);
}
*/

.links > a:nth-of-type(1):hover  { --index: 1;
	color: rgba(255, 255, 255, 0.849);}
	
.links > a:nth-of-type(2):hover  { --index: 2; 
	color: rgba(255, 255, 255, 0.849);}
.links > a:nth-of-type(3):hover  { --index: 3;
	color: rgba(255, 255, 255, 0.849); }
.links > a:last-of-type:hover { --index: var(--items); }	

.wrapper > a:nth-of-type(1):hover  { --index: 1;/*background: #9d9e9d; 
	color: rgba(255, 255, 255, 0.849);*/text-decoration: underline; }
.wrapper> a:nth-of-type(2):hover  { --index: 2; /*background: #9d9e9d; 
	color: rgba(255, 255, 255, 0.849);*/text-decoration: underline; }
.wrapper > a:nth-of-type(3):hover  { --index: 3;/*background: #9d9e9d; 
	color: rgba(255, 255, 255, 0.849);*/text-decoration: underline; }
.wrapper > a:nth-of-type(4):hover  { --index: 4;/*background: #9d9e9d; 
	color: rgba(255, 255, 255, 0.849);*/text-decoration: underline;  }
.wrapper> a:nth-of-type(5):hover  { --index: 5; /*background: #9d9e9d; 
	color: rgba(255, 255, 255, 0.849);*/text-decoration: underline; }
.wrapper > a:nth-of-type(6):hover  { --index: 6;/*background: #9d9e9d; 
	color: rgba(255, 255, 255, 0.849);*/text-decoration: underline;  }
.wrapper > a:last-of-type:hover { --index: var(--items); }	

/*.links > .line {
	background: #68a;
	height: 1px;
	pointer-events: none;
}
*/
.wrapper > .line {
	background: #68a;
	height: 1px;
	pointer-events: none;
}

/* The Magic */
#header {
	position: sticky;
	display:flex;
	justify-content: center;
	top: 0;
	left: 0;
	right: 0;
	max-width:100vw;
	width:100%;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
}

.links-wrap{
	position: relative;
	justify-content: center;
	display:flex;
	top: 0;
	left: 0;
	right: 0;
	max-width:100vw;
	width:100%;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
}

.wrapper{
	position: relative;
	justify-content: center;
	align-items: center;
	display:flex;
	max-width:100vw;
	width:75vw;
	/*box-shadow: inset 0 0.5px 0 #fff3, 0 0 1px #000;*/
	background-color: white;
	height:70px;
}


.links {
	display: grid;
	grid-template-columns: repeat(var(--items), 1fr);
	position: relative;
}



.links > .line {
	opacity: 0;
	transition: all .5s;
	position: absolute;
	bottom: 0;
	left: var(--left, calc(100% / var(--items) * (var(--index) - 1)));
	width: var(--width, calc(100% / var(--items)));
	--index: 0;
}

.wrapper > .line {
	opacity: 0;
	transition: all .5s;
	position: absolute;
	bottom: 0;
	left: var(--left, calc(100% / var(--items) * (var(--index) - 1)));
	width: var(--width, calc(100% / var(--items)));
	--index: 0;
}


.links > a:hover~ .line {
	opacity: 1;
}

.wrapper > a:hover~ .line {
	opacity: 1;
}


.wrapper > a:nth-of-type(1):hover ~ .line { --index: 1; }
.wrapper > a:nth-of-type(2):hover ~ .line { --index: 2; }
.wrapper > a:nth-of-type(3):hover ~ .line { --index: 3; }
.wrapper> a:nth-of-type(4):hover ~ .line { --index: 4; }
.wrapper> a:nth-of-type(5):hover ~ .line { --index: 5; }
.wrapper> a:nth-of-type(6):hover ~ .line { --index: 6; }
.wrapper> a:last-of-type:hover ~ .line { --index: var(--items); }

@media screen and (max-width: 820px){
	.links {
		display:none;
	}

}
