.main-menu__desktop {
  border-bottom: 1px solid $lightgrey-1;

  .main-menu__wrapper {
    .dropdown-menu {
      border-top: 0;
      margin-top: 1px;
      width: 100%;
      moz-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.15);
      webkit-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.15);
      box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.15);

      .row {
        // max-height: 20rem;
        justify-content: space-between;
      }
    }

    a.nav-link {
      border-bottom: none;
      border-top: 7px solid $white;
      color: $black;
      font-size: $nav-links-font-size;
      font-weight: $light-weight;
      transition: border 0.3s ease;
      padding: 1.25rem 1rem 1.25rem .5rem;
      display: flex;
      min-height: 79px;
      align-items: center;
      margin: 0;

      &:link,
      &:visited {
        display: flex;
      }

      &:hover,
      &:active {
        border-top: 7px solid $ochre;
        color: $black !important;
      }
    }

    a.a-dropdown-item {
      color: $black;
      display: flex;
      border-bottom: none;
      padding: 1.25rem 1rem 1.25rem .5rem;
      margin: 0;
      align-items: center;

      & .mat-icon {
        font-size: 12px;
        font-weight: 700;
      }

      &:link,
      &:visited {
        color: $black;
        display: flex;
        border-bottom: none;
        padding: 1.25rem 1rem 1.25rem .5rem;
        margin: 0;
        align-items: center;
      }

      &:hover,
      &:active {
        background-color: $white;
        color: $ochre;
        text-decoration: none;
      }
    }


  }

  .dropdown-trigger-container.show {
    .nav-link {
      border-top: 7px solid $ochre;
    }
  }

  .megamenu-list {
    font-size: $megamenu-list-font-size;
    list-style: none;
    padding-left: 1rem;

    .dropdown-item {
      border-bottom: 1px solid $lightgrey-1;
      color: $black;
      display: block;
      margin-left: 0.5rem;
      padding: 0;

      &:hover,
      &:active {
        background-color: $white;
        color: $ochre;
      }
    }
  }

  .dropdown-menu .dropdown-item a.a-dropdown-item:active, .dropdown-menu .dropdown-item a.a-dropdown-item:focus {
    outline: $ochre dotted 2px;
  }
}

.megamenu-item {
  margin-right: 2rem;
}

.main-menu__mobile {
  display: none;

  .menu_header {
    position: fixed;
    width: 100%;
    background: $darkgrey-1;
    line-height: 0px;
    color: $white;
    z-index: 100;

    .menu_brand {
      display: inline-block;
      vertical-align: top;
      width: calc(100% - 90px);
      height: 80px;
    }

    .menu_closer {
      display: inline-block;
      vertical-align: top;
      width: 90px;
      height: 80px;

      button {
        display: block;
        padding: 24px 24px 23px 24px;
        color: $white;
        background: $grey-8;
        font-size: $main-menu-mobile-button-font-size;
        line-height: 22px;
      }

      button:focus, button:active {
        outline: 2px dotted $ochre-focus;
      }
    }

  }



  .menu_brand a{
    width: auto;
    height: 28px;
    padding: 28px;
    display: inline-block;
    position: absolute;
    top: 14px;
    border-bottom: none;
    color: $white;
    font-size: $main-menu-mobile-menu-brand-font-size;
    font-weight: $black-weight;
  }

  .app-title--long .menu_brand a {
    height: 62px;
    padding: 4px 5px;
    display: inline-flex;
    top: 10px;
    font-size: 0.9rem;
    font-weight: 900;
    align-items: center;
    line-height: 1.25;
  }

  @media print, (min-width: 375px) {
    .app-title--long .menu_brand a {
      font-size: 1rem;
    }
  }

  @media print, (min-width: 500px) {
    .app-title--long .menu_brand a {
      font-size: 1.5rem;
    }
  }

  @media print, (min-width: 768px) {
    .app-title--long .menu_brand a {
      font-size: 1.7rem;
    }
  }

  .menu_brand a:hover, .menu_brand a:focus {
    color: $white !important;
  }

  .first_level {
    margin-top: 90px;
    height: calc(100% - 90px);
    overflow-y:auto;
    padding-bottom: 5rem;

    .megamenu-item:last-child .dropdown-item{
      border-bottom: none;
    }
  }

  .second_level {
    margin-top: calc(90px + 72px);
    height: calc(100% - (90px + 72px));
    overflow-y: scroll;
    padding-bottom:5rem;
    .megamenu-item:last-child .dropdown-item{
      border-bottom: none;
    }
  }

  .menu_return{
    display: block;
    position: fixed;
    width: 100%;
    z-index: 99;
    padding-top: 90px;
    padding-right:1px;
    padding-left:1px;
  }

  .menu_return a{
    display: block;
    position: relative;
    color: $black;
    text-decoration: none;
    font-size: $font-size-base;
    font-weight: $medium-weight;
    line-height: 1.5rem;
    padding: 24px 12px 24px 60px;
    -moz-box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.15);
    -webkit-box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.15);
    box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.15);
    border-bottom: none;
    cursor: hand;
    cursor: pointer;
  }

  .dropdown-item{
    padding-left: 0px;
    padding-right:0px;
    border-bottom: solid 1px $tertiary;
  }

  .dropdown-item{
    padding-left: 0px;
    border-bottom: solid 1px $tertiary;

    &:hover,
    &:active {
      background-color: $white;
      color: $ochre;
      text-decoration: none;
    }
  }

  .a-dropdown-item,
  .a-dropdown-item:link,
  .a-dropdown-item:visited{
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: $font-size-base;
    font-weight: $medium-weight;
    line-height: 1.5rem;
    padding: 24px 24px 24px 12px;
    border-bottom: none;
    color: $black;
  }

  .a-dropdown-item:hover {
    border-bottom: none;
  }

  .return__icon {
    position: absolute;
    display: block;
    top: 50%;
    margin-top: -6px;
    left: 20px;
    line-height: .75rem;
  }

  .browse__btn, .about__btn {
    cursor: hand;
    cursor: pointer;
  }
}

.main-menu__mobile--open {
  display: block;
  height: 100vh;
  visibility: visible;
  -moz-transition: -moz-transform .5s;
  -o-transition: -o-transform .5s;
  -webkit-transition: -webkit-transform .5s;
  transition: transform .5s;
  -moz-transform: translate3d(0px,0,0);
  -ms-transform: translate3d(0px,0,0);
  -webkit-transform: translate3d(0px,0,0);
  transform: translate3d(0px,0,0);
}

@media print,(max-width:949px) {
  .main-menu__desktop{
    display:none;
  }

  .main-menu__mobile{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    visibility: hidden;
    width: 100vw;
    min-width: 300px;
    height: 100%;
    background: #fff;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    -webkit-transition: all .5s;
    transition: all .5s;
    -moz-transform: translate3d(-100%,0,0);
    -ms-transform: translate3d(-100%,0,0);
    -webkit-transform: translate3d(-100%,0,0);
    transform: translate3d(-100%,0,0);

  }

  .megamenu-item {
    margin-left: 2rem;
  }

  .main-menu__mobile--open {
    display: block;
    height: 100vh;
    visibility: visible;
    -moz-transition: -moz-transform .5s;
    -o-transition: -o-transform .5s;
    -webkit-transition: -webkit-transform .5s;
    transition: transform .5s;
    -moz-transform: translate3d(0px,0,0);
    -ms-transform: translate3d(0px,0,0);
    -webkit-transform: translate3d(0px,0,0);
    transform: translate3d(0px,0,0);
  }

}


.info-menu-items {
  border-bottom: none;
  color: $black;
  display: block;
  font-size: $info-menu-system-font-size;
  padding: 1rem 0;
  width: 100%;

  &:hover, &:active {
    color: $ochre;
  }
}

@media print,(min-width:975px){
  .info-menu-items {
    font-size: $info-menu-system-sm-font-size;
  }
}

