.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-style: solid;
  border-width: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  
  
  z-index: 1;

  padding-top: 40px;
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 40px;

  position: fixed;
  background-color: white;
  height: 40px;

  top: 0;
  left: 0;
  right: 0;
}

.top-header img {
  width: 130px;
}

nav ul {
  list-style: none;
  display: flex;

  margin-top: 0;
}

nav a {
  margin-right: 20px;
  color: black;
  cursor: pointer;
}

nav .primary-button {
  color: white;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: black;
  left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

@media (max-width: 833px) {
  .top-header {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  nav {
    position: fixed;
    top: 80px; 
    right: -100%; 
    width: 250px;

    height: calc(100vh - 80px); 
      
    background-color: white;
    box-shadow: -8px 10px 20px rgba(0, 0, 0, 0.3);
    
    transition: right 0.3s ease-in-out;
    z-index: 101;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 2rem;
    list-style: none;
  }

  .menu-toggle {
    display: block;
    z-index: 102;
    background: none;
    border: none;
    cursor: pointer;
  }
}