@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');

nav{
	font-family: 'Open Sans', sans-serif;
	position: relative;
	margin: auto;
	width: 1020px;
	height: 47px;
	background: #23252b;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	font-size: 0;
	box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
}
nav a{
	font-size: 15px;
	text-transform: uppercase;
	color: white;
	text-decoration: none;
	line-height: 50px;
	position: relative;
	z-index: 1;
	display: inline-block;
	text-align: center;
}
nav .animation{
	position: absolute;
	height: 100%;
	/* height: 5px; */
	top: 0;
	/* bottom: 0; */
	z-index: 0;
	background: #4080ef;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	transition: all .5s ease;
}
nav a:nth-child(1){
	width: 100px;
}
nav .start-home, a:nth-child(1):hover~.animation{
	width: 100px;
	left: 0;
}
nav a:nth-child(2){
	width: 135px;
}
nav a:nth-child(2):hover~.animation{
	width: 135px;
	left: 100px;
}
nav a:nth-child(3){
	width: 135px;
}
nav a:nth-child(3):hover~.animation{
	width: 135px;
	left: 230px;
}
nav a:nth-child(4){
	width: 100px;
}
nav a:nth-child(4):hover~.animation{
	width: 100px;
	left: 365px;
}
nav a:nth-child(5){
	width: 160px;
}
nav a:nth-child(5):hover~.animation{
	width: 160px;
	left: 465px;
}
nav a:nth-child(6){
	width: 120px;
}
nav a:nth-child(6):hover~.animation{
	width: 120px;
	left: 630px;
}
nav a:nth-child(7){
	width: 135px;
}
nav a:nth-child(7):hover~.animation{
	width: 135px;
	left: 750px;
}

nav a:nth-child(8){
	width: 135px;
}
nav a:nth-child(8):hover~.animation{
	width: 135px;
	left: 885px;
}