#navmenu,
#navmenu ul,
#navmenu ul li,
#navmenu ul li a,
#navmenu #menu-button {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  box-sizing: border-box;
}
#navmenu > ul {
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  max-width: 1200px;
  box-sizing: border-box;
}
#navmenu:after,
#navmenu > ul:after {
  content: "";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
#navmenu #menu-button {
  display: none;
}
#navmenu {
  position: sticky !important;
  top: 0;
  width: 100%;
  z-index: 1010;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #1e1e1e;
}
.debug-mode #navmenu {
  top: 38px; /* offset for debugbar height */
}
#navmenu.align-center > ul {
  font-size: 0;
  text-align: center;
}
#navmenu.align-center ul ul {
  text-align: left;
}
#navmenu.align-center > ul > li {
  display: inline-block;
  float: none;
}
#navmenu.align-right > ul > li {
  float: right;
}
#navmenu.align-right ul ul {
  text-align: right;
}
#navmenu > ul > li {
  float: left;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
#navmenu > ul > li:last-child {
  border-right: none;
}
#navmenu > ul > li > a {
  padding: 12px 10px;
  font-size: 12px;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
#navmenu > ul > li:hover > a,
#navmenu > ul > li > a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}
#navmenu > ul > li.has-sub > a {
  padding-right: 22px;
}
#navmenu ul > li.has-sub > a:after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #e0e0e0;
  transition: transform .2s ease, border-color .2s ease;
}
#navmenu ul > li.has-sub:hover > a:after {
  border-top-color: #ffffff;
}
#navmenu ul > li.has-sub > a:before {
  display: none;
}
#navmenu ul ul {
  position: absolute;
  left: -9999px;
  opacity: 0;
  transition: opacity .2s ease;
}
#navmenu > ul > li > ul {
  top: 100%;
  padding-top: 0;
}
#navmenu > ul > li:hover > ul {
  left: 0;
  opacity: 1;
}
#navmenu.align-right > ul > li:hover > ul {
  left: auto;
  right: 0;
}
#navmenu ul ul ul {
  top: 0;
}
#navmenu ul ul > li:hover > ul {
  left: 100%;
  padding-left: 4px;
  opacity: 1;
}
#navmenu.align-right ul ul > li:hover > ul {
  left: auto;
  right: 100%;
  padding-left: 0;
  padding-right: 4px;
}
#navmenu ul ul li a {
  width: 200px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #e0e0e0;
  text-decoration: none;
  background: #252525;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color .2s ease, color .2s ease;
}
#navmenu ul ul li:hover > a,
#navmenu ul ul li > a:hover {
  background-color: #333333;
  color: #ffffff;
}
#navmenu ul ul li:first-child > a {
  border-radius: 4px 4px 0 0;
}
#navmenu ul ul li:last-child > a {
  border-radius: 0 0 4px 4px;
  border-bottom: none;
}
#navmenu ul ul li:only-child > a {
  border-radius: 4px;
}
#navmenu ul ul > li.has-sub > a:after {
  right: 12px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid #e0e0e0;
  transform: translateY(-50%);
}
#navmenu.align-right ul ul > li.has-sub > a:after {
  right: auto;
  left: 12px;
  border-left: none;
  border-right: 4px solid #e0e0e0;
}
#navmenu ul ul > li.has-sub:hover > a:after {
  border-left-color: #ffffff;
}
#navmenu.align-right ul ul > li.has-sub:hover > a:after {
  border-right-color: #ffffff;
}

@media all and (max-width: 768px),
only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px),
only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px),
only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px),
only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px),
only screen and (min-resolution: 192dpi) and (max-width: 1024px),
only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
  #navmenu {
    width: 100%;
  }
  #navmenu ul,
  #navmenu ul ul,
  #navmenu ul ul ul,
  #navmenu > ul,
  #navmenu.align-center > ul,
  #navmenu > ul > li > ul,
  #navmenu > ul > li:hover > ul,
  #navmenu ul ul li:hover > ul,
  #navmenu ul ul ul li:hover > ul,
  #navmenu.align-right ul ul,
  #navmenu.align-right ul ul li:hover > ul,
  #navmenu.align-right ul ul ul li:hover > ul {
    position: relative;
    left: 0;
    right: auto;
    top: 0;
    width: 100%;
    display: none;
    padding: 0;
    opacity: 1;
    text-align: left;
  }
  #navmenu ul li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  #navmenu > ul > li {
    border-right: none;
  }
  #navmenu > ul > li > a,
  #navmenu ul ul li a,
  #navmenu ul ul li:first-child > a,
  #navmenu ul ul li:last-child > a {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  #navmenu ul li a {
    padding: 14px 16px;
  }
  #navmenu ul ul li a {
    padding: 12px 16px 12px 32px;
    background: rgba(0, 0, 0, 0.2);
  }
  #navmenu ul ul ul li a {
    padding-left: 48px;
  }
  #navmenu ul ul ul ul li a {
    padding-left: 64px;
  }
  #navmenu > ul > li.has-sub > a:after,
  #navmenu ul ul li.has-sub > a:after {
    display: none;
  }
  #navmenu #menu-button {
    position: relative;
    display: block;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  #navmenu .submenu-button {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    cursor: pointer;
  }
  #navmenu ul ul .submenu-button {
    height: 42px;
  }
  #navmenu .submenu-button:before,
  #navmenu #menu-button:before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #e0e0e0;
    transition: transform .2s ease;
  }
  #navmenu #menu-button.menu-opened:before,
  #navmenu .submenu-button.submenu-opened:before {
    transform: rotate(180deg);
  }
  #navmenu .submenu-button:after,
  #navmenu #menu-button:after {
    display: none;
  }
}
