header {
  background-color: var(--card-bg);
  border-bottom: 1px var(--border-color) solid;
  position: sticky;
  top: 0px;
  z-index: 9;
}

.header-wrapper {
  display: flex;
  align-items: center;
  height: 72px;
}

.header-wrapper ul {
  padding: 0px;
  list-style: none;
}

.header-wrapper ul li {
  display: inline-block;
  margin: 5px 10px;
}

.header-wrapper ul li a {
  text-decoration: none;
  color: var(--gray-color);
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  transition: 0.3s;
  border-radius: 999px;
}

.theme-switch .slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
}

.theme-switch input + .slider {
  background: #0a84ff;
}

.theme-switch input:checked + .slider::before {
  transform: translateX(16px);
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.current-menu-item {
  text-decoration: underline;
}

@media all and (max-width: 991px) {
  .menu-header {
    width: 80vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    right: -80vw;
    z-index: 9999;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    overflow-y: auto;
    transition: all 0.2s ease-out;
    transition: all 0.2s ease-in;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
  }

  body.open .menu-header {
    right: 0px;
  }

  body.open .overlay-menu {
    display: block;
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
  }

  .header-wrapper {
    margin-top: 40px;
  }

  .header-wrapper li {
    display: block;
    width: 100%;
  }

  .menu-icon {
    font-size: 40px;
    cursor: pointer;
    color: white;
  }

  .close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: white;
  }

  .switch-container {
    width: 100%;
    padding: 5px 10px;
  }
}
