.nav {
    border: 5px solid black;
    border-width: 1px 0;
    list-style: none;
    text-align: center; /* « The magic. */
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.5em;
    
}

.nav li {
    display: inline; /* « More magic. */
    padding: 0.5em;
}

.nav a {
    display: inline-block; /* « Last bit of magic. */
    padding: 0.1em;
    color: black;
    text-decoration: none;
    
}

.nav a:hover{
    color: rgb(216, 187, 214)
}

.container {
    display: flex;
  justify-content: center;
}