#navbar {
  z-index: 100;
  position: fixed;
  background-color: #fff;
  display: block;
  width: 100%;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  height: 80px;
  background-color: white;
  font-family: "Roboto Condensed", sans-serif;
}

.menu-brand {
  font-size: 2.6em;/*1.6em;*/
  display: inline-block;
  padding: 8px 0 0;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
}
.menu-brand:hover {
  text-decoration: none;
  color: #2c2c2c;
}
.menu-brand,
.menu-brand span {
  color: #2c2c2c;
}
.menu-brand span:nth-child(2) {
  letter-spacing: 0.4em;
  font-size: 0.6em;
  display: block;
  text-align: center;
}
.desktop {
  color: #2c2c2c;
  min-height: 70px;
  background: none;
  float: right;
}
.desktop li {
  border: 0;
  height: 80px;
  display: inline-block;
  padding: 0;
  position: relative;
  color: #2c2c2c;
  margin-right: -4px;
}

.desktop li a {
  transition: all 300ms ease;
  color: #2c2c2c;
  font-weight: 400;
  text-decoration: none;
  font-size: 17px;
  margin: 0 auto;
  text-transform: uppercase;
  display: inline-block;
  padding: 25px 13px 26px;
  border-top: 4px solid transparent;
}

.desktop .submenu {
  position: absolute;
  display: block;
  margin-top: 0;
  padding: 0;
  min-height: 100px;
  width: 240px;
  height: initial;
  visibility: hidden;
  text-align: left;
  transform-origin: 50% 0;
  transform: scaleY(0);
  -webkit-transition: transform 300ms ease, opacity 300ms ease;
  -moz-transition: transform 300ms ease, opacity 300ms ease;
  -ms-transition: transform 300ms ease, opacity 300ms ease;
  -o-transition: transform 300ms ease, opacity 300ms ease;
  transition: transform 300ms ease, opacity 300ms ease;
  
}

.desktop li a:hover + .submenu,
.desktop li a + .submenu:hover {
  visibility: visible;
  opacity: 1;
  transform: scaleY(1);
}
nav ul.desktop > li.active > a {
  border-top: 4px solid #2c2c2c;
}

nav ul.desktop > li > a:hover {
  border-top: 4px solid #2c2c2c;
  background-color: #e9e9e9;
  text-decoration: none;
  text-decoration: none;
}

.desktop .submenu li {
  border: 0;
  font-size: 0;
  line-height: 1;
  text-align: left;
  width: 100%;
  height: initial;
  margin: 0 auto;
}

.desktop .submenu .submenu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  -webkit-transform: scaleY(1);
  -ms-transform: scaleY(1);
  transform: scaleY(1);
  top: 0;
  width: 200px;
}

.desktop .submenu .submenu li {
  width: 200px;
}

.desktop .submenu li a:hover {
  background-color: #e9e9e9;
  color: #000;
}

.desktop .submenu li a {
  display: block;
  background-color: #fff;
  height: auto;
  border: 0;
  line-height: 1;
  text-align: left;
  margin: 0 auto;
  margin-bottom: 0;
  padding: 12px 13px; 
}

.mobile {
  background-color: #FFF;
  text-align: left;
  margin: 0 auto;
  overflow-y: hidden;
  transition: all 300ms ease;
  width: 300px;
  position: absolute;
  top: 80px;
  left: -300px;
  border-top: 1px solid #999;
  border-right: 1px solid #999;
  border-left: 1px solid #999;
  overflow-y: scroll;
}

.mobile li {
  display: block;
}

.mobile li a {
  font-size: 17px;
  font-weight: 400;
  display: block;
  padding: 15px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
}

.mobile li a:hover,
#nav li a.active {
  background-color: #e9e9e9;
  color: #FFF;
}

nav ul.mobile > li > ul.submenu li.active a, 
nav ul.desktop > li > ul.submenu li.active a 
{ 
  background-color: #e9e9e9; color:#000; 
}

.mobile li a.active {
  background-color: #e9e9e9;
}
.mobile ul.submenu li a {
  height: 42px !important;
  padding: 10px 0 10px 28px;
  background-color: #f9f8f8;
}

.mobile .submenu li a:hover {
  background-color: #e9e9e9;
  -webkit-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
}
ul.mobile {
  margin: 0;
  padding: 0;
}

.mobile li ul {
  margin: 0;
  padding: 0;
}

.mobile-device #openMenu {
  display: block;
}
#openMenu {
  transition: all 300ms ease;
  color: #292929;
  font-size: 30px;
  cursor: pointer;
  z-index: 401;
  position: fixed;
  top: 24px;
  left: 20px;
  display: none;
}
#openMenu:active {
  transform: scale(0.9);
}
.open {
  opacity: 0.99;
  display: block;
  left: 0px;
}

.overlay {
  cursor: pointer;
  width: 100%;
  height: 100%;
  position: absolute;
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.wrapper-menu {
  width: 40px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 330ms ease-out;
}

.wrapper-menu.open {
  transform: rotate(-45deg);
}

.line-menu {
  background-color: #3a3a3a;
  border-radius: 3px;
  width: 100%;
  height: 3px;
}

.line-menu.half {
  width: 50%;
}

.line-menu.start {
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: right;
}

.open .line-menu.start {
  transform: rotate(-90deg) translateX(3px);
}

.line-menu.end {
  align-self: flex-end;
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: left;
}

.open .line-menu.end {
  transform: rotate(-90deg) translateX(-3px);
}

@media only screen and (max-width: 768px) {
  .menu {
    text-align: center !important;
    
  }
  .menu-brand span {
    display: block;
    text-align: center;
    font-size: 0.8em;
    padding: 8px 0 0 36px;
  }
}
