nav ul {
    list-style: none;
    display: flex;
    margin: auto;
    padding: 0%;

}

nav a {
    position: relative;
    text-decoration: none;
    display: block;
    color: black;
    padding : 10px 5px ;
    margin: 1em;
    text-align: center;
    transition: transform 0.3s ease;

}

nav a::after {
    content: "";
    position: absolute;
    left: 50%;            
    bottom: -3px;        
    width: 0;
    height: 2px;
    background: goldenrod;
    transition: width 0.3s ease, left 0.3s ease;
    
}

nav a:hover::after {
    width: 100%;
    left: 0;
    

}
nav a:hover {
    transform: translateY(-5px); 
}

nav a.first{
    margin-left: 10em ;
}

nav a.last{
    margin-right: 10em ;
}

nav a img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

