nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  width: calc(100% - 40px);
  height: 30px;
  font-family: var(--font-family-title);
  font-size: 1.3rem;
  color: var(--gray-900);
  background-color: var(--gray-100);
  padding: 10px 20px;
  box-shadow: var(--box-shadow-X);
  z-index: 1000;
  user-select: none;

  > div {
    #menu-button {
      text-decoration: none;
      color: var(--gray-900);
      text-transform: uppercase;
      font-weight: 700;
      text-shadow: 0 0 1px white, 0 0 2px white, 0 2px 5px var(--gray-600);
      transition: color 0.1s ease;

      &:hover {
        color: var(--purple-600);
        text-shadow: 0 0 1px white, 0 0 2px white;
      }
    }
  }

  a {
    text-decoration: none;
    color: var(--gray-900);
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 0 1px white, 0 0 2px white, 0 2px 5px var(--gray-600);
    transition: color 0.1s ease;

    &:hover {
      color: var(--purple-600);
      text-shadow: 0 0 1px white, 0 0 2px white;
    }
  }
}

#nav-menu-1 {
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  list-style: none;
}

#nav-menu-2 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  list-style: none;

  > div {
    flex: 1 1;
    display: block;
  }

  > ul {
    flex: 1 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
    margin: 0 auto;
    width: 100%;
  }
}

/* ============================================================================
=== MEDIA QUERIES =============================================================
============================================================================ */

@media screen and (min-width: 840px) {
  .logo-text {
    font-size: 80% !important;
  }

  #nav-menu-2 > ul {
    font-size: 100% !important;
  }
}

@media screen and (min-width: 760px) and (max-width: 839px) {
  .logo-text {
    font-size: 70% !important;
  }

  #nav-menu-2 > ul {
    font-size: 90% !important;
  }
}

@media screen and (min-width: 720px) and (max-width: 759px) {
  .logo-text {
    font-size: 70% !important;
  }

  #nav-menu-2 > ul {
    font-size: 80% !important;
  }
}

@media screen and (min-width: 520px) and (max-width: 719px) {
  .logo-text {
    display: none !important;
  }

  #nav-menu-2 > ul {
    font-size: 80% !important;
  }
}

@media screen and (max-width: 519px) {
  .logo-text {
    font-size: 70% !important;
  }

  #nav-menu-1 {
    display: flex;
  }

  #nav-menu-2 {
    display: none;
  }
}
