nav {
  position: absolute;
  top: 20px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

nav a {
  margin: 0 25px;
  font-size: 1.5rem;
  text-decoration: none;
  color: #48bb78;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #48bb78;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.top-header {
  position: relative;
  height: 60px;
}

/* === Hamburger Menu === */
.drop-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  /* change direction */
  z-index: 100;
}

.drop-menu .bar {
  width: 25px;
  height: 3px;
  background-color: #48bb78;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === Mobile Nav === */
.alternate-nav {
  display: none;
  flex-direction: column;
  background-color: #1a1a1a;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  z-index: 99;
  padding: 1rem;
  border-top: 1px solid #48bb78;
}

.alternate-nav a {
  padding: 0.75rem;
  margin-right: 2rem;
  text-align: right;
  text-decoration: none;
  font-size: 1.2rem;
  color: #9ae6b4;
  border-bottom: 1px solid #2d2d2d;
}

.alternate-nav a:hover {
  background-color: #2d2d2d;
  color: #ffffff;
}


/* Show hamburger on small screens */
@media (max-width: 600px) {
  body {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  nav {
    display: none;
  }

  .drop-menu {
    display: flex;
  }

  .alternate-nav.show {

    display: flex;
  }
}
