nav {
    min-width: 100%;
    /* box-shadow: -2px -7px 47px 9px rgba(0,0,0,0.35); */
    /* -moz-box-shadow: -2px -7px 47px 9px rgba(0,0,0,0.35); */
    /* -webkit-box-shadow: -2px -7px 47px 9px rgba(0,0,0,0.35); */
    background-color: #0e55aa;
    position: fixed;
    z-index: 1;
    padding-left: 4em;
    padding-right: 4em;
    clear: both;
}

.logo-section {
    float: left;
    padding: 12px 20px;
    font-family: sans-serif;
}

.mob-button {
    float: right;
    background: #0e55aa;
    color: #ffffff;
    border: solid 2px #ffffff;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 1px;
    cursor: pointer;
    display: none;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    padding: 5px;
    margin-top: auto;
    margin-bottom: auto;
}

nav ul {
    overflow: hidden;
    color: #ffffff;
    padding: 0;
    text-align: center;
    transition: max-height 0.5s;
    -webkit-transition: max-height 0.5s;
    -moz-transition: max-height 0.5s;
    -ms-transition: max-height 0.5s;
    -o-transition: max-height 0.5s;
    float: right;
}

nav ul li {
    display: inline-block;
    padding: 15px 20px;
}

li > a {
    position: relative;
    color: #ffffff;
    text-decoration: none;

}

li > a:hover {
    color: #ffffff;
}

li > a:before {
    content:"";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: -15px;
    padding: 0 15px;
    /*background-color: #0e7aff;*/
    background-color: #ffffff;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

li > a:hover:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

@media screen and (max-width: 768px) {
    nav {
        padding-left: 0;
        padding-right: 0;
        height: 3.8em;
    }

    .logo-section{
        float: none;
    }

    .logo-section img {
        max-width: 2.5em;
    }

    nav ul {
        max-height: 0;
        margin-top: -10px;
        width: 100%!important;
    }

    nav ul.show {
        max-height: 20em;
        background-color: #0e55aa;
        transition: none;

    }

    nav ul li {
        box-sizing: border-box;
        width: 100%;
        /*padding: 15px 15px 3px 15px;*/
        transition: none;
        border-bottom: 2px #ffffff;
        margin-left: 0;
    }

    .mob-button {
        display: inline;
        margin-top: 0;
    }
}
