html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

#page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content-wrap {
  flex: 1;
}

section {
  scroll-margin-top: 120px;
}

.hamburger {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #fff;
  margin-bottom: 5px;
  transition: 0.3s;
}

.hamburger:hover span {
  background-color: #ccc;
}

.hamburger.active span:first-child {
  transform: rotate(45deg);
  top: 10px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:last-child {
  transform: rotate(-45deg);
  top: 10px;
}

.nav__list.active {
  display: block;
  position: absolute;
  top: 50px;
  right: 0;
  background-color: #fff;
  padding: 10px;
  border: 1px solid #ddd;
}

@media only screen and (max-width: 768px) {
  body {
    display: block;
  }

  main {
    margin-bottom: 20px;
  }

  .top-bar {
    height: 40px;
  }
  .nav__list {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    height: calc(100vh - 40px);
    padding-top: 40px;
  }
}

@media only screen and (max-width: 480px) {
  .top-bar {
    height: 30px;
  }
  .hero {
    height: calc(100vh - 30px);
    padding-top: 30px;
  }
}
