.menubar {
    padding: 0px 15px 0px 15px;
    vertical-align: middle;
}

@media (min-width: 0) {
    .menubar {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .menubar:after {
        content: " ";
        display: block;
        clear: both;
    }
}

@media (min-width: 576px) {
    .menubar {
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
    }
    .menubar:after {
        content: " ";
        display: block;
        clear: both;
    }
}

@media (min-width: 768px) {
    .menubar {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
    .menubar:after {
        content: " ";
        display: block;
        clear: both;
    }
}

@media (min-width: 992px) {
    .menubar {
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }
    .menubar:after {
        content: " ";
        display: block;
        clear: both;
    }
}

@media (min-width: 1200px) {
    .menubar {
        max-width: 1300px;
        margin-left: auto;
        margin-right: auto;
    }
    .menubar:after {
        content: " ";
        display: block;
        clear: both;
    }
}

#header a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 18px;
    vertical-align: middle;
    margin-right: 15px;
}

#header .active {
    color: rgb(255, 0, 0);
}

#header a:hover {
    color: rgb(255, 0, 0);
    text-decoration: none;
}


/* a:hover,
a:focus {
    color: rgb(255, 0, 0);
    text-decoration: none;
} */

.menu-left a {
    display: inline-block;
    position: relative;
    padding-bottom: 0px;
    transition: color .35s ease;
    vertical-align: middle;
}

.menu-left a:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    transition: width 0s ease, background .35s ease;
}

.menu-left a:after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: rgb(255, 12, 12);
    transition: width .35s ease;
}

.menu-left a:hover:before {
    width: 100%;
    background: rgb(216, 20, 20);
    transition: width .35s ease;
}

.menu-left a:hover:after {
    width: 100%;
    background: transparent;
    transition: all 0s ease;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: .5rem 0;
    background: rgb(245, 245, 245);
    z-index: 3;
    will-change: transform;
    transition: background 0.3s, -webkit-transform 0.5s cubic-bezier(0.694, 0.048, 0.335, 1);
    transition: transform 0.5s cubic-bezier(0.694, 0.048, 0.335, 1), background 0.3s;
    transition: transform 0.5s cubic-bezier(0.694, 0.048, 0.335, 1), background 0.3s, -webkit-transform 0.5s cubic-bezier(0.694, 0.048, 0.335, 1);
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

header nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

header nav ul li {
    float: none;
    margin-left: 0;
}

@media (min-width: 768px) {
    header nav ul li {
        float: left;
        margin-left: 1rem;
    }
}

header nav ul li a {
    display: block;
}

@media (min-width: 576px) {
    header nav ul li a {
        display: block;
        padding: .425rem 0rem;
    }
}

@media (max-width: 768px) {
    ul {
        clear: both;
    }
    ul li {
        padding: .5em 0;
    }
}


/* Uncomment the below if you want to hide the navbar on scroll */


/* .hide-nav {
    transform: translateY(-120%);
    -webkit-transform: translateY(-120%) !important;
  }  */

ul.menu-left {
    display: block;
    max-height: 0;
    overflow: hidden;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    z-index: 10;
}

@media (min-width: 768px) {
    ul.menu-left {
        display: block !important;
        float: right;
        max-height: none;
    }
}

ul.menu-left:before {
    content: '';
    display: table;
    clear: both;
}

ul.menu-left.collapse {
    max-height: 15em !important;
}

.nav-toggle {
    display: block;
    border-radius: 5px;
    background-color: transparent;
    float: right;
    height: auto;
    width: 38px;
    cursor: pointer;
    padding: 8px;
}

@media (max-width:580px) {
    .nav-toggle {
        height: auto;
        padding: 0px 0px 10px 0px;
    }
}

.nav-toggle.open span:first-child {
    transform: rotate(45deg) translate(4.4px, 4.4px);
}

.nav-toggle.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.nav-toggle.open span:last-child {
    transform: rotate(-45deg) translate(11px, -11px);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    position: relative;
    display: block;
    height: 2px;
    width: 100%;
    margin-top: 9px;
    background-color: #000;
    transition: all .25s;
}

header nav .logo {
    float: left;
}

header nav .logo:after {
    content: '';
    display: table;
    clear: both;
}

#navigation img {
    width: 250px;
    position: absolute;
    margin-top: 10px;
    background-color: rgb(245, 245, 245);
    border-radius: 10px;
    padding: 10px;
}

#navigation ul {
    padding-top: 10px;
    display: block;
}

@media (max-width:580px) {
    #navigation img {
        height: 70px;
        position: absolute;
        border-radius: 10px;
    }
    .menubar {
        height: 15px;
    }
    #navigation ul {
        background-color: rgba(245, 245, 245, 1);
        text-align: center;
        display: block;
    }
}

@media (max-width:420px) {
    #navigation img {
        height: 70px;
        position: absolute;
        border-radius: 10px;
    }
    .menubar {
        height: 15px;
    }
    #navigation ul {
        background-color: rgba(245, 245, 245, 1);
        text-align: center;
        color: black;
        display: block;
    }
}