@font-face {
    font-family:PixelifySans-VariableFont_wght;
    src: url(../fonts/PixelifySans-VariableFont_wght.ttf);
}

/* google code */

/* Make the burger thing transform */
.hamburger {
  display: grid;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;

}

.line {
  width: 30px;
  height: 3px;
  background-color: rgb(174, 255, 229);
  transition: all 0.3s ease;

}

/* x shape */
.hamburger.active .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active .line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Menu Positioning */
.nav-menu {
    font-family:PixelifySans-VariableFont_wght;
  position: fixed;
  top: 100;
  right: -100%;
  width: 20%;
  height: 100vh;
  background: #fff;
  display: grid;
  justify-content: center;
  align-items: center;
  transition: right 0.5s ease;
  font-size: 20px;
}

.nav-menu.active {
  right: 0;
}

/* menu fade in */
@keyframes fadeInLinks {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-menu.active ul li {
  animation: fadeInLinks 0.5s ease forwards;
}