header {
    margin-right: 2em;
    margin-bottom: 1em;
    display: flex;
}

.logo {
    float: left;
    width: 125px;
    height: 75px;
    margin-right: 1em;
    background-repeat: no-repeat;
    background-size: 125px 75px;
    color: black;
    filter: grayscale(100%);
    display: inline;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    padding-bottom: 1.5em;
}

nav ul {
    /*display: flex;*/
    list-style-type: none;
}
nav ul li {
    display: inline-block;
    margin-right: 0.9em;
    vertical-align: middle;
    float: left;
    margin-bottom: 1em;

}

/*nav ul li:last-child {*/
/*    float: right;*/
/*}*/

nav ul li a {
    text-decoration: none;
    border: black solid 0.2em;
    box-shadow: 0.4em 0.4em black;
    transition: box-shadow 0.1s, transform 0.1s;
    padding: 0.5em;
    display: block;
    vertical-align: middle;
    font-weight: bold;
    background-color: white;
}

nav ul li a:hover {
    transform: translate(0.4em, 0.4em);
    box-shadow: 0em 0em black;
}

nav ul li:last-child a {
    color: white;
    background: black;
    margin-right: 5em;
}



@media (max-width: 600px) {

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        align-items: center;
        display: flex;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;

    }

    nav ul li:last-child a {
        margin-right: 0;
    }

    header {
        flex-direction: column;
        align-items: center;
        margin: 0;
    }

    .logo {
        margin-bottom: 1em;
    }

}