nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    position: relative;
}

nav a {
    font-family: sans-serif;
    font-style: oblique;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
}

nav a:hover {
    background-color: #575757;
    border-radius: 5px;
}

@media screen and (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    nav a {
        display: block;
        width: 100%;
        text-align: left;
    }
}

