html {
  scroll-padding-top: 70px;
  /* links like #about stop below the fixed header, not under it */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  box-sizing: border-box;
  /* padding no longer adds to the 100% width */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  width: 100%;
  padding: 0 10%;
  background-color: white;
  z-index: 5;
}

header .logo {
  display: block;
  width: 170px;
  height: 120px;
}

nav a {
  margin-right: 15px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  color: #ff00ff;
  text-decoration: none;
}

/* hamburger button: hidden on desktop */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ff00ff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ================= 1100px and below ================= */
@media (max-width: 1100px) {
  header {
    padding: 0 5%;
  }

  header .logo {
    width: 150px;
    height: 105px;
  }

  nav a {
    margin-right: 12px;
    font-size: 15px;
  }
}

/* ================= 760px and below: hamburger menu ================= */
@media (max-width: 760px) {
  .menu-btn {
    display: flex;
  }

  header .logo {
    width: 120px;
    height: 84px;
  }

  /* the links become a dropdown under the header */
  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    max-height: 0;
    /* closed */
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  }

  nav a {
    margin: 0;
    padding: 16px 5%;
    font-size: 18px;
    border-top: 1px solid rgba(255, 0, 255, 0.15);
  }

  header.open nav {
    max-height: 400px;
  }

  /* open */

  /* the three lines turn into an X */
  header.open .menu-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  header.open .menu-btn span:nth-child(2) {
    opacity: 0;
  }

  header.open .menu-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ================= 460px and below ================= */
@media (max-width: 460px) {
  header {
    padding: 0 4%;
  }

  header .logo {
    width: 100px;
    height: 70px;
  }

  .menu-btn {
    width: 36px;
    height: 36px;
  }

  nav a {
    padding: 14px 4%;
    font-size: 16px;
  }
}