

nav {
  @media (min-width: $large-devices) {
    &.nav-right {
      margin-left: auto;
    }
  }

  @media (max-width: $large-devices) {
  }
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;

  .menu-item {
    a {
      text-decoration: none;
    }
  }
}

.laniakea-menu,.laniakea-pre-menu { 
  ul {
    list-style: none;
    margin: 0;
    padding: 0;

    li {
      a {
        display: block;
      }

      &.menu-item-has-children > a::after {
        content: unicode('f107');   
        font-family: "Font Awesome 6 Free";
        vertical-align: middle;
        font-size: 16px;
        margin-left: $spacing_unit * 2;
        font-weight: 900;
      }
      
    }

    .sub-menu,
    .children {
      @media (min-width: $large-devices) {
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        transform: translateY(10px);
      }
      @media (max-width: $large-devices) {
        display: none;
      }
    }
  }

  

  @media (min-width: $large-devices) {
    li {
      position: relative;
      line-height: 1.7;

      &:hover > .sub-menu,
      &:hover > .children {
        //display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0px);
      }
    }

    & > ul > li {
      float: left;

      & > a {
        text-transform: uppercase;
        position: relative;
        padding: $spacing_unit * 6 $spacing_unit * 3;
      }
    }

    & > ul > li:hover > a {
      //background: white;
    }

    /* Sub/Children Menu */
    .sub-menu,
    .children {
      position: absolute;
      left: 0;
      top: auto;
      top: calc(100% + 1px);
      z-index: 1;
      background: white;
      min-width: 200px;
      outline: 1px solid #eaeaea;
      box-shadow: 2px 4px 9px #78787864;

      a {
        padding: $spacing_unit * 3 $spacing_unit * 4;
      }

      & li:hover a {
        background: white;
      }
    }

    /* Grandchildren Menu */
    .sub-menu .sub-menu,
    .children .children {
      position: absolute;
      left: 50%;
      top: 32px;
      background: white;
    }
  }

  @media (max-width: $large-devices) {
    position: absolute;
    top: 0;
    left: 0;
    /* background: rgb(18 18 18 / 96%);
    background: linear-gradient(0deg, #000000f7, rgb(49 49 49 / 96%)); */
    width: 100vw;
    height: 100vh;
    color: white;
    font-size: $spacing_unit * 6;
    overflow-y: auto;
    padding: $spacing_unit * 6;

    transform: translateX(-100vw);

    .nav-menu {
      margin-top: $spacing_unit * 24;
    }

    li {
      position: relative;
      line-height: $spacing_unit * 12;

      &:hover > .sub-menu,
      &:hover > .children {
        display: block;
      }

      

      &.menu-item-has-children:hover > a::after {
        content: unicode('f105');
        font-weight: 900;
      }
    }

    .sub-menu,
    .children {
      margin-left: $spacing_unit * 2;
    }
  }
}

.laniakea-pre-menu>ul>li>a {
  padding: 0 6px;
}

.mobile-burger {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: none;
  margin-left: auto;

  @media (max-width: $large-devices) {
    display: flex;
    position: relative;
    z-index: 9999;
  }
}

.burger-line {
  fill: none;
  stroke: black;
  stroke-width: 6;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);

  &.stroke-white {
    stroke: white;
  }
}
.burger-line1 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}
.burger-line2 {
  stroke-dasharray: 60 60;
  stroke-width: 6;
}
.burger-line3 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}

.menu-mobile-open .burger-line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}
.menu-mobile-open .burger-line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
  stroke-width: 6;
}
.menu-mobile-open .burger-line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}
