nav {
  position: fixed;
  width: 100%;
  background-color: black;
  z-index: 100;
}

.hamburger {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px 0;
  margin: 0.5rem 1rem;
  padding: 1rem;
  cursor: pointer;
  width: calc(30px + 2rem);
  transition: transform 0.3s;
  background-color: black;
  border-radius: 8px;
  z-index: 110;
}
.hamburger .line {
  border: 1px solid white;
  background-color: white;
  border-radius: 3px;
  width: 30px;
  transition: border-color 0.3s, transform 0.3s, opacity 0.2s;
}
.hamburger .middle {
  width: 20px;
}

.cross {
  background-color: black;
  border-radius: 8px;
}
.cross .line {
  border-color: white;
  background-color: white;
}
.cross .middle {
  opacity: 0;
}
.cross .top {
  transform: translateY(12px) rotateZ(45deg);
}
.cross .bottom {
  transform: translateY(-12px) rotateZ(-45deg);
}

.menu {
  z-index: 105;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  height: 100vh;
}
.menu a {
  flex: 1 1 0px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32pt;
  font-weight: 300;
  font-variant: small-caps;
  border-right: 1px solid #101010;
  color: white;
}
.menu a p {
  z-index: 110;
}
.menu a:last-child {
  border: unset;
}
.menu a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: -65%;
  transition: top 0.2s;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 34%, #25D033 100%);
  z-index: 107;
}
.menu a:nth-child(2)::before {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 34%, #47D1FF 100%);
}
.menu a:nth-child(3)::before {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 34%, #7000C6 100%);
}
.menu a:nth-child(4)::before {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 34%, white 100%);
}
.menu a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 60%;
  bottom: -60%;
  transition: bottom 0.2s;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 50%, black 95%), center/cover url("../imgs/snake.jpg");
  z-index: 106;
}
.menu a:nth-child(2)::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 50%, black 95%), center/cover url("../imgs/orca.jpg");
}
.menu a:nth-child(3)::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 50%, black 95%), center/cover url("../imgs/jellyfish.jpg");
}
.menu a:nth-child(4)::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 50%, black 95%), center/cover url("../imgs/tiger.jpg");
}
.menu a:hover::before {
  top: 0;
}
.menu a:hover::after {
  bottom: 0;
}

@media (max-width: 850px) {
  .menu {
    flex-direction: column;
  }
  .menu a {
    border-right: unset;
    border-bottom: 1px solid #101010;
  }
  .menu a:last-child {
    border: unset;
  }
  .menu a::before {
    top: unset;
    left: -100%;
    transition: left 0.2s;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 34%, #25D033 100%);
  }
  .menu a:nth-child(2)::before {
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 34%, #47D1FF 100%);
  }
  .menu a:nth-child(3)::before {
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 34%, #7000C6 100%);
  }
  .menu a:nth-child(4)::before {
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 34%, white 100%);
  }
  .menu a:hover::before {
    left: 0;
  }
  .menu a::after {
    width: 60%;
    height: 100%;
    bottom: unset;
    right: 0;
    transition: right 0.2s;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, black 95%), center/cover url("../imgs/snake.jpg");
  }
  .menu a:nth-child(2)::after {
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, black 95%), center/cover url("../imgs/orca.jpg");
  }
  .menu a:nth-child(3)::after {
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, black 95%), center/cover url("../imgs/jellyfish.jpg");
  }
  .menu a:nth-child(4)::after {
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, black 95%), center/cover url("../imgs/tiger.jpg");
  }
  .menu a:hover::after {
    right: 0;
  }
}
@media (hover: none) and (max-width: 600px) {
  nav {
    bottom: 0;
  }
  .hamburger {
    top: unset;
    bottom: 8px;
  }
}

/*# sourceMappingURL=navbar.css.map */
