nav {
  background-color: #83bedc;
  text-align: center;

  & .logo {
    & a {
      color: white;
      text-decoration: none;
    }
  }

  & .menu {
    & li {
      margin: 0.5rem 0;
      & a {
        color: white;
        text-decoration: none;
      }
      & a::after {
        content: "";
        width: 0%;
        height: 2px;
        display: block;
        background-color: white;
      }
      & a:hover::after {
        width: 100%;
        transition: all 0.5s;
      }
    }
  }
}

.hamburger {
  filter: invert(100%) sepia(0%) saturate(7491%) hue-rotate(295deg)
    brightness(109%) contrast(94%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  height: 25px;
  width: 25px;
}


@media screen and (min-width: 600px) {
  /* for desktop */
  .hamburger {
    display: none;
  }
  .menu-mobile {
    display: none;
  }
  nav {
    height: 40%;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    & ul {
      z-index: 1 !important;
      margin-bottom: 0;
    }

    & .logo {
      margin-bottom: 0.25rem;
      margin-top: 0.25rem;
      margin-left: 1.5rem;
      height: 2rem;
    }

    & .menu {
      display: flex;
      list-style: none;
      font-size: 1.1rem;

      & li {
        margin-right: 2.5rem;
      }
    }
  }
}

@media screen and (max-width: 600px) {
  /* for mobile */

  .menu {
    display: none;
  }

  .arrange {
    display: contents;
  }
  nav {
    display: flex;
    height: 2.5rem;
  }

  .logo {
    height: 1.5rem;
    margin: auto 1rem;
  }

  .hamburger {
    margin: auto 0;
    /* padding-left: 18rem; */
    position: absolute;
    right: 1.6rem;
    top: 7.5px;
  }

  .menu-mobile {
    width: 50%;
    height: 100%;
    background-color: #83bedc;
    text-align: right;
    list-style: none;
    position: absolute; /*  */
    right: 0;
    padding-right: 1rem;
    z-index: 2 !important;

    & li {
      margin: 0.75rem;
    }

    & ul {
      z-index: 2 !important;
    }

    & a {
      text-decoration: none;
      color: white;
    }
  }
}
