/* nav */

#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 98px;
  transition: height 200ms ease-out, background-image 200ms ease-out, box-shadow 200ms ease-out;
  z-index: 999;
  /* border-bottom: 1px white solid; */
}

#navbar a {
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--clr-bright);
  font-size: clamp(1.0rem, 1.4vw, 1.2rem);
}

#logo {
  display: block;
  transition: width 200ms ease-out, filter 250ms ease-in-out;
  overflow-y: hidden;
  /* height: var(--iso); */
  width: var(--iso);
  padding: 8px;
}

#logo a .scroll {
  display: none;
}

#navbar.nav-active {
  height: 74px;
  box-shadow: 0 0 12px black;
  background-image: linear-gradient(to right, var(--clr-blue), var(--clr-midblue));
  
  & #logo {
    width: calc(var(--iso) * 0.8);
  }

  & #logo a .scroll {
    display: block;
  }
  & #logo a .top {
    display: none;
  }
}

.hambur-cont {
  display: none;
  width: 28px;
  height: 24px;
}

.menu-mobile {
  /* width: 0; */
  transform: translateX(120%);
  position: absolute;
  height: 100vh;
  top: 0;
  right: 0;
  padding: 4rem;
  background: linear-gradient(var(--clr-skyblue), var(--clr-blue));
  box-shadow: 0 0 18px black;
  font-size: var(--fnt-h3);
  z-index: 990;
  transition: transform 150ms ease-out;
}


@media (max-width: 1560px) {
  .menu {
    display: none;
  }
  .hambur-cont {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 992;
  }
  .hambur-cont span {
    width: 100%;
    height: 4px;
    background: white;
    border-radius: 5px;
    transition: width 150ms ease-out;
  }
  .hambur-cont span:nth-of-type(odd) {
    width: 80%;
  }
  .hambur-cont.open span {
    width: 80%;
  }
  .hambur-cont.open span:nth-of-type(odd) {
    width: 100%;
  }
  .menu-mobile.open {
    width: min-content;
    transform: translateX(0);
  }
}

