header{
width: 100%;
height: 100vh;
background-image: url(https://www.wallpapertip.com/wmimgs/219-2193017_dark-sky-background-png.png);
}
.container{
max-width: 120rem;
width: 90%;
margin: 0 auto;
text-align: center;
}
nav{
padding-top: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
text-transform: uppercase;
font-size: 1.6rem;
background-image: url(https://www.wallpapertip.com/wmimgs/219-2193017_dark-sky-background-png.png);
width: 100%;
top: 0px;
flex-direction: row-reverse;
position: absolute;
}
img{
width: 20%;
margin-right: 550px;:
}
nav ul{
display: flex;
}
nav ul li{
list-style: none;
}
nav ul li a{
padding: 1rem 0;
margin: 0 3rem;
position: relative;
letter-spacing: 2px;
}
nav ul li a: last child{
margin-right: 0;
}
nav ul li a: hover{
color: crimson;
}
html, body
{
margin: 0px;
}
div.container{
margin: 0 auto;
padding: 10em 3em;
text-align: center;
}
div.container a
{
color: crimson;
text-decoration: none;
font: 20px Raleway;
margin: 0px 5px;
padding: 5px 5px;
position: relative;
z-index: 0;
cursor: pointer;
}
ul li a:before, ul li a:after{
position: absolute;
opacity: 0;
width: 0%;
height: 1px;
content: '';
background: crimson;
transition: all 0.3s;
}
ul li a: before{
left: 0px;
top: 0px;
}
ul li a:after{
right: 0px;
bottom:0px;
}
ul li a:hover:before, ul li a:hover:after{
opacity: 1;
width: 100%;
}
ul li a:hover{
color: crimson;
}
So I put an animation on my navigation bar and the animation touches the text a little too much i wanted to add more space between the text and the animation.