#header {
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0px 3px 6px #00000029;

  padding: 1rem 1.5rem;
  height: 4rem;
}

#header div.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;

  width: 100%;
  max-width: 1380px;
}

#header .only_mobile {
  display: none;
}

#nav_items {
  display: flex;
  align-items: center;
  gap: 2rem;

  color: var(--deep-purple);
}

#nav_items li {
  font-size: 1.125rem;
  font-weight: 300;
  font-family: "museo-sans", sans-serif;
  letter-spacing: 0.36px;

  cursor: default;
}

#nav_items li h3 {
  font-size: 1.125rem;
  font-weight: 300;
  font-family: "museo-sans", sans-serif;
  letter-spacing: 0.36px;
}

#nav_items li.listable {
  position: relative;
}

#nav_items li.listable::after {
  content: "";
  height: 1rem;
  width: 100%;
  background-color: transparent;

  position: absolute;
  left: 0;
  top: 100%;
}

#nav_items li.listable .links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;

  padding: 1rem 1.125rem;
  background-color: #fff;
  box-shadow: 0px 10px 6px #00000029;
  border-radius: 0px 0px 8px 8px;

  width: max-content;

  color: var(--purple-hover);
  font-weight: 300;
  font-size: 0.9375rem;

  position: absolute;
  top: calc(100% + 1rem);
  left: -1.125rem;
  z-index: -99999;

  opacity: 0;
}

#nav_items li.listable:hover .links {
  opacity: 100%;
  z-index: 100;

  animation: appear 0.3s ease forwards;
}

#nav_items li.listable:hover .links li a {
  color: var(--purple-hover);

  display: flex;
  align-items: center;
  gap: 0.625rem;
}

#nav_items li.listable:hover .links li a:hover {
  text-decoration: underline;
}

#nav_items li a {
  text-decoration: none;

  cursor: pointer;
  color: var(--deep-purple);

  transition: color 0.3s, border 0.3s, font 0.3s;
}

#nav_items li.link:hover a {
  color: var(--purple-hover);
  border-bottom: 1px solid var(--purple-hover);
}

#nav_items li a.button {
  color: #efefef;
  font-weight: 700;

  width: 11.875rem;
  height: 2.75rem;

  border: 1px solid transparent;
  border-radius: 2px;

  background-color: var(--purple);
  padding-block: 0.625rem;

  display: block;

  position: relative;

  transition: background 0.3s;
}

#nav_items a.button:hover {
  background-color: var(--purple-hover-b);
}

@media only screen and (max-width: 1200px) {
  #header .non_mobile {
    display: none;
  }

  #nav_items {
    gap: 2rem;
  }
}

@media only screen and (max-width: 1020px) {
  #header.active #nav_items {
    height: calc(100% - 64px);

    padding: 3rem 2rem 10rem 2rem;

    overflow-y: auto;

    opacity: 100%;
  }

  #header .only_mobile {
    display: flex;
  }

  #nav_items {
    background-color: var(--deep-purple);

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 90%;

    height: 0;
    padding: 0;
    opacity: 80%;

    overflow-y: hidden;

    position: absolute;
    left: 50%;
    top: 4rem;
    transform: translateX(-50%);

    transition: height 0.1s ease-in-out, padding 0.2s, opacity 0.2s;

    z-index: 999;
  }

  #nav_items li {
    color: var(--light-blue);
    text-transform: uppercase;
    width: 100%;
    text-align: left;

    cursor: inherit;
  }
  #nav_items li a {
    color: var(--light-blue);
    /* text-transform: uppercase; */
  }

  #nav_items .listable {
    width: 100%;

    cursor: pointer;
  }

  #nav_items .listable .listable_item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;

    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-blue);
  }

  #nav_items .link #nav_items .listable .listable_item button.only_mobile {
    padding: 0;
    color: var(--light-blue);
    font-size: 1.5rem;

    transform: scaleY(-1);
  }

  #nav_items li.listable .icon img {
    transform: rotate(180deg);

    transition: transform 0.3s ease-in-out;
  }

  #nav_items li.listable.active .icon img {
    transform: scaleY(1);
  }

  #nav_items li.listable .links {
    display: flex;

    width: 100%;

    padding: 0;
    background-color: transparent;
    box-shadow: none;

    max-height: 0px;

    position: static;
    top: auto;
    left: auto;

    opacity: 80%;

    overflow-y: hidden;
    transition: max-height 0.2s ease-in-out;
  }

  #nav_items li.listable .links a {
    color: #fff;
    font-weight: 300;
    line-height: 2rem;
    text-transform: none;
    letter-spacing: 0.36px;

    opacity: 50%;
  }

  #nav_items li.listable.active .links {
    max-height: 300px;
  }

  #nav_items li.listable.active .links li a {
    color: #fff;
  }

  #nav_items li.listable.active .links li a img {
    filter: brightness(999%);
  }

  #nav_items li.listable::after {
    display: none;
  }

  #header #menu_button #open_menu {
    opacity: 1;
    position: static;

    transition: opacity 0.3s;
  }

  #header.active #menu_button #open_menu {
    opacity: 0;

    position: absolute;
    top: -1000px;

    z-index: -9999;
  }
  #header #menu_button #close_menu {
    opacity: 0;

    position: absolute;
    top: -1000px;

    z-index: -9999;

    transition: opacity 0.3s;
  }

  #header.active #menu_button #close_menu {
    opacity: 1;

    position: static;
  }
}
