nav {
  width: 100%;
  position: fixed;
  z-index: 8888;
  user-select: none;
  transform: translateY(0%);
  transition: transform 0.4s;
}

nav * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: 'Overpass', sans-serif;
}

nav>div {
  height: 100%;
}

#nav-container {
  width: 1280px;
  height: 100%;
  padding: 0px 40px;
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

#nav-logo {
  width: 245px;
  height: 75px;
  background-image: url("../img/logo.png");
  background-size: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  transition: none;
  border: none;
  text-decoration: none;
  position: absolute;
  top: 10px;
  margin-left: 25px;
}

@media screen and (max-width: 1280px) {}

@media screen and (min-width: 992px) {
  nav {
    background: #005091;
    transition: all 0.4s;
    border-bottom: 5px solid #F9C320;
    box-shadow: 0px 20px 80px rgba(0, 0, 0, 0.25);
  }

  nav.slim {
    box-shadow: 0px 20px 80px rgba(0, 0, 0, 0.25);
    background: #005091;
    border-bottom: 1px solid #ebebeb;
  }

  #nav-container {
    background: #005091;
    border-radius: 4px;
    transition: all 0.4s;
  }

  #nav-container.slim {
    box-shadow: none;
  }

  #nav-logo {
    transition: all 0.4s;
  }

  #nav-logo.slim {
    width: 100px;
    height: 100px;
  }

  #nav-menu-top-container {
    width: 100%;
    height: 0px;
    position: relative;
    transition: all 0.4s;
  }

  #nav-menu-top-container.slim {
    height: 0px;
    background: #005091;
  }

  #nav-menu-top {
    width: 1280px;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  #nav-menu {
    height: 100%;
    perspective: 500px;
  }

  #nav-menu.slim {}

  #nav-menu #nav-content>ul {
    height: 100%;
    margin: 0;
    padding: 0;
    margin-left: 270px;
  }

  #nav-menu.slim>ul {}

  #nav-menu #nav-content>ul>li {
    display: inline-block;
    height: 100%;
    overflow: hidden;
  }

  #nav-menu #nav-content>ul>li>a {
    height: 100%;
    display: block;
    font-size: 15px;
    letter-spacing: 1.9px;
    color: #F9BE00;
    display: flex;
    align-items: center;
    border: none;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    padding: 40px 0px;
    text-transform: uppercase;
    font-weight: 300;
  }

  #nav-menu #nav-content>ul>li>a.active {
    color: #F9FAFA;
  }

  #nav-menu #nav-content>ul>li>a>span {
    display: block;
    padding: 0px 15px;
    border-right: 0.5px solid rgba(247, 207, 2, 0.25);
  }

  #nav-menu #nav-content>ul>li:last-child>a>span {
    border-right: none;
  }

  #nav-menu #nav-content>ul>li>a:hover {
    color: #F9FAFA;
    border: none;
    text-decoration: none;
    cursor: pointer;
    ;
  }

  #nav-menu #nav-content>ul>li>ul {
    display: none;
    visibility: hidden;
  }

  #nav-menu #nav-content>ul>li:hover>ul {
    display: block;
    visibility: visible;
    position: absolute;
    background: #F9C320;
    min-width: 250px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-left: -30px;
    padding-left: 25px;
    margin-top: 0px;
  }

  #nav-menu #nav-content>ul>li:hover>ul li {}

  #nav-menu #nav-content>ul>li:hover>ul li:last-child a {
    border-bottom: none;
  }

  #nav-menu #nav-content>ul>li:hover>ul li a {
    display: block;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #fff;
    border: none;
    padding: 16px 0px;
    position: relative;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.5);
  }

  #nav-menu #nav-content>ul>li:hover>ul li a.active {
    color: #005091;
  }

  #nav-menu #nav-content>ul>li:hover>ul li a:hover {
    color: #005091;
  }
}

@media screen and (max-width: 991px) {
  #nav-container {
    width: 100%;
    padding: 0px 0px;
  }

  nav {
    width: 100%;
    height: 65px;
    background: none;
    border: none;
  }

  #nav-menu-button {
    height: 100%;
    width: 65px;
    background-image: url("../img/icon-menu.svg");
    background-size: 20px;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 0;
  }

  #nav-menu-button.open {
    background-image: url("../img/icon-close.svg");
    background-size: 17px;
  }

  #nav-menu-button:hover {
    cursor: pointer;
  }

  #nav-logo, #nav-logo.slim {
    width: 135px;
    height: 83px;
    flex: none;
    border: none;
    text-decoration: none;
    background-image: url("../img/logo.png");
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    transition: none;
    position: absolute;
    right: 20px;
    z-index: 888;
    top: -8px;
    ;
  }

  #nav-menu-top {
    width: 100%;
    height: 100%;
    background: #005091;
    box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.025);
    position: absolute;
    z-index: 8888;
  }

  #nav-menu-top:after {
    content: "";
    width: 100%;
    height: 5px;
    position: absolute;
    bottom: -5px;
    background: #F9C320;
  }

  #nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 666;
    transform: translateY(-100%);
    background: #F9C320;
    transition: transform 0.4s;
    animation-timing-function: ease;
  }

  #nav-menu.open {
    transform: translateY(0%);
  }

  #nav-menu #nav-overflow {
    height: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
  }

  #nav-menu #nav-content {
    padding: 110px 60px 50px 50px;
    height: 100%;
    width: calc(100% + 20px);
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
  }

  #nav-menu #nav-content>ul {
    margin: 0;
    padding: 0;
    padding-bottom: 80px;
  }

  #nav-menu #nav-content>ul>li {
    display: block;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.5);
  }

  #nav-menu #nav-content>ul>li.nav-group {
    background-image: url("../img/chevron-white-down.png");
    background-size: 15px;
    background-position: calc(100% - 10px) 20px;
    background-repeat: no-repeat;
  }

  #nav-menu #nav-content>ul>li.nav-group.open, #nav-menu #nav-content>ul>li.nav-group.active {
    background-image: url("../img/chevron-white-top.png");
  }

  #nav-menu #nav-content>ul>li>a {
    height: 100%;
    display: block;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #fff;
    padding: 15px 0px;
    display: flex;
    align-items: center;
    border: none;
    text-decoration: none;
    overflow: hidden;
    position: relative;
  }

  #nav-menu #nav-content>ul>li>a.active {
    color: #005091;
  }

  #nav-menu #nav-content>ul>li>a>span {
    display: block;
  }

  #nav-menu #nav-content>ul>li:last-child>a>span {
    border-right: none;
  }

  #nav-menu #nav-content>ul>li>a:hover {
    border: none;
    text-decoration: none;
    cursor: pointer;
  }

  #nav-menu #nav-content>ul>li>ul {
    display: none;
    visibility: hidden;
  }

  #nav-menu #nav-content>ul>li>ul li {
    display: block;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.5);
  }

  #nav-menu #nav-content>ul>li>ul li a {
    height: 100%;
    display: block;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #fff;
    padding: 15px 0px;
    display: flex;
    align-items: center;
    border: none;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    padding-left: 25px;
    background-image: url("../img/chevron-white-right.png");
    background-size: 12px;
    background-position: 0px 20px;
    background-repeat: no-repeat;
  }

  #nav-menu #nav-content>ul>li>ul li a.active {
    color: #005091;
  }

  #nav-menu #nav-content>ul>li.active>ul, #nav-menu #nav-content>ul>li.open>ul {
    display: block;
    visibility: visible;
  }
}