header {
  display: flex;
  justify-content: center;

  width: 100%;
  height: 3.875rem;

  background: linear-gradient(90deg, #4d77f4 0%, #2c59df 100%);
}

header #header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 80%;
  max-width: 112.5rem;
}

header #header-content #logo:focus {
  outline: none;

  box-shadow:
    0 0 0 4px #4a73f3,
    0 0 0 5.5px #ffffff;
}

header #header-content a {
  display: flex;
}

header #header-content #links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header #header-content #links .login, header #header-content #links .register {
  display: flex;
  align-items: center;

  height: 2.125rem;

  font-size: 0.9375rem;
  font-weight: 600;

  border: 1px solid white;
  border-radius: 6.25rem;

  padding: 0 0.875rem;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

header #header-content .login:focus, header #header-content .register:focus {
  outline: none;

  box-shadow:
    0 0 0 4px #4a73f3,
    0 0 0 5px #ffffff;
}

header #header-content a:hover {
  text-decoration: none;
}

header #header-content #links .login {
  background-color: rgba(0, 0, 0, 0);

  color: white;
}

header #header-content #links .login:hover {
  background-color: #7595f6;
}

header #header-content #links .register {
  background-color: #ffffff;

  color: #4d77f3;
}

header #header-content #links .register:hover {
  background-color: #ebf0fe;
}

header #header-content #links .primary-link {
  display: none;
}

header #header-content #links .ghost-link {
  display: none;
}

#toggle-menu {
  display: none;
  align-items: center;
  justify-content: center;

  width: 2rem;
  height: 2rem;

  border-radius: 0.5rem;

  transition: background-color 0.3s ease;
}

#toggle-menu:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 75rem) {
  header #header-content {
    width: 100%;

    padding: 0 1.25rem;
  }
}

@media (max-width: 37.5rem) {
  header #header-content #links {
    display: none;
  }

  #toggle-menu {
    display: flex;
  }

  #toggle-menu[data-state="open"] #hamburger-menu-icon {
    display: none;
  }

  #toggle-menu[data-state="open"] #x-icon {
    display: block;
  }

  #toggle-menu[data-state="closed"] #hamburger-menu-icon {
    display: block;
  }

  #toggle-menu[data-state="closed"] #x-icon {
    display: none;
  }

  header #header-content #links {
    display: none;
    justify-content: flex-start;
    flex-direction: column;
    gap: 1rem;

    position: absolute;
    top: 3.875rem;
    right: 0;
    z-index: 99999;

    width: 100%;
    height: calc(100vh - 3.875rem);

    background-color: #ffffff;

    padding: 2rem 1.25rem;
  }

  header #header-content #links[data-state="open"] {
    display: flex;

    transform: translateX(100px);

    animation: slide-right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  @keyframes slide-right {
    0% {
      transform: translateX(100px);
      opacity: 0;
    }
    100% {
      transform: translateX(0px);
      opacity: 1;
    }
  }

  header #header-content #links .primary-link {
    display: flex !important;

    width: 100%;
  }
  
  header #header-content #links .ghost-link {
    display: flex !important;

    width: 100%;
  }
  
  header #header-content #links .register {
    display: none;
  }
  
  header #header-content #links .login {
    display: none;
  }
}
