/* header */
#menu {
  position: relative;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 1;
  top:40px;
  font-size: 20px;
  margin-left:250px;
}
#menu a , #menu li{
  text-decoration: none;
  color: #4e5056;
}
#menu ul {
  list-style: none;
}
.menu-items {
  display: flex;
  align-items: center;
}
.menu-items li {
  padding: 0.5rem 1.75rem;
  transition: background 0.3s ease-in-out;
}
.menu-items li li{
  padding: 0.5rem 1.25rem;
}
#menu .menu-items li.active {
  background: #324253;
}
#menu .menu-items li.active a {
  color:#fff;
}
#menu .menu-items li:hover {
  text-decoration:underline;
}

/* dropdown */
.dropdown {
  position: relative;
}
.dropdown-menu,
.menu-right {
  position: absolute;
  background: #324253;
  width: max-content;
  top: 50px;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.menu-right {
  top: 0;
  left: 110%;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  /*width: 100%;*/
}
.dropdown:hover .dropdown-menu {
  top: 34px;
  opacity: 1;
  visibility: visible;
}
.dropdown-right:hover .menu-right {
  left: 100%;
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a, .menu-right a
{
  font-size:1rem;
}


/* NEW STUFFS */

/* nav menu button */
.menu-btn {
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 2;
}
.menu-btn__lines::before,
.menu-btn__lines::after {
  content: "";
  position: absolute;
}
.menu-btn__lines,
.menu-btn__lines::before,
.menu-btn__lines::after {
  width: 2.5rem;
  height: 0.25rem;
  background: #4e5056;
  transition: all 0.5s ease-in-out;
}
.menu-btn__lines::before {
  transform: translateY(-0.75rem);
}
.menu-btn__lines::after {
  transform: translateY(0.75rem);
}
/* animation */
.menu-btn.open .menu-btn__lines {
  transform: translateX(2rem);
  background: transparent;
}
.menu-btn.open .menu-btn__lines::before {
  transform: rotate(45deg) translate(-1.5rem, 1.5rem);
  background: #ffffff;
}
.menu-btn.open .menu-btn__lines::after {
  transform: rotate(-45deg) translate(-1.5rem, -1.5rem);
  background: #ffffff;
}



/*------------------------Mobil------------*/

/* MEDIA QUERY */
@media screen and (max-width: 1150px) {
  #menu{
    position:absolute;
    padding:0px;
    width:95%;
    font-size:18px;
    margin-left:0px;
  }
  .menu-btn {
    display: flex;
    position:absolute;
    right:50px;  
  }
  
  #menu a
  {
    color:#c0c4cd;
  }

  #menu .menu-items {
    position: absolute;
    height: 80vh;
    width: 100%;
    /*max-width: 350px;*/
    top: 100%;
    margin-top:-35px;
    right: 0;
    background: #122331;
    display: block;
    padding: 8rem 1rem 1rem 1rem;
    line-height: 3rem;
    overflow-y: auto;
    transform: translateY(-110vh);
    transition: transform 0.3s ease-out;
  }
  #menu .menu-items.open {
    transform: translateY(0);
  }

  .menu-items li {
    margin: 15px 10px;
    padding:0px;
  }
  .menu-items li a {
    padding: 0 1rem;
    display: block;
    font-size: 1.4rem;
    color:#fff;
  }
  .menu-items li:hover {
    background-color: transparent;
  }

  /* DROPDOWN, MEGA MENUS */
  .menu-items .dropdown-menu,
  .menu-items .menu-right,
  .menu-items .mega-menu {
    position: static;
    opacity: 1;
    top: 4rem;
    visibility: visible;
    padding-left: 1rem;
    width: 100%;
    max-height: 0;
    transform: scaleY(0);
    transform-origin: top;
    overflow: hidden;
    transition: all 0.2s ease;
  }
  .expand-btn.open + .expandable {
    max-height: 100%;
    transform: scaleY(1);
  }

  .expandable li {
    margin: 0;
  }
  .expandable li a {
    font-size: 1rem;
  }

}
