.navbar {
  position: fixed;
  background-color: var(--color-primary);
  top: 0;
  bottom: 0;
  left: -212px;
  width: 212px;
  z-index: 2;
  transition: 0.3s;
  overflow-y: auto;
}

.nav-active {
  left: 0;
}

.close-menu-btn {
  padding: 15px;
  margin-left: auto;
}

.icon-cancel {
  color: var(--color-gray-500);
  width: 16px;
  height: 16px;
}

.close-menu-btn:hover,
.close-menu-btn:focus-within {
  background-color: var(--color-secondary);
}

.navbar,
.navbar-item {
  text-align: center;
}

.nav-link,
.theme-btn,
.theme-option {
  font-size: var(--fs-sm-1);
  font-weight: var(--weight-bold);
  padding: 10px;
}

.nav-link:hover,
.nav-link:focus-within {
  background-color: var(--color-green-800);
}

.nav-link.is-active {
  background-color: var(--color-green-800);
}

.theme-btn .icon-moon,
.theme-option .icon,
.theme-option .icon + span {
  display: none;
}

.theme-btn {
  margin-inline: auto;
  width: 100%;
}

.icon-arrow-up {
  display: inline;
  margin: 0 0 1px 1px;
  transform: rotate(180deg);
  transition: 0.1s;
  width: 8px;
  height: 5px;
}

.theme-btn:hover,
.theme-btn:focus-within {
  background-color: var(--color-green-700);
}

.theme-btn-active {
  background-color: var(--color-green-700);
}

.rotate-theme-arrow {
  transform: rotate(0);
}

.theme-options {
  display: none;
}

.open-theme-options {
  display: block;
}

.theme-option {
  margin-inline: auto;
  width: 100%;
}

.theme-option:hover,
.theme-option:focus-within {
  background-color: var(--color-green-600);
}

.theme-option-active {
  background-color: var(--color-green-600);
}

.nav-dive-deeper {
  background-color: var(--color-green-800);
  width: fit-content;
  height: 31px;
  border-radius: 19px;
  margin-inline: auto;
  padding: 7px 18px;
  font-size: var(--fs-sm-1);
  font-weight: var(--weight-bold);
  line-height: normal;
  margin-top: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-dive-deeper .icon-double-arrow {
  width: 13px;
  height: 15px;
  margin-left: 6px;
  margin-top: 2px;
}

.nav-dive-deeper:hover,
.nav-dive-deeper:focus-within {
  background-color: var(--color-secondary);
}

@media (min-width: 576px) {
  .navbar {
    position: static;
    background-color: transparent;
    max-width: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    overflow-y: visible;
  }

  .close-menu-btn {
    position: fixed;
    left: -212px;
    top: 0;
    padding: 20px;
    z-index: 3;
    transition: 0.3s;
  }

  .close-menu-btn__active {
    left: 156px;
  }

  .navbar-overlay {
    position: fixed;
    background-color: var(--color-secondary);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
  }
  .active {
    opacity: 0.5;
    pointer-events: all;
  }

  .navbar-list {
    position: fixed;
    top: 0;
    left: -212px;
    bottom: 0;
    z-index: 2;
    width: 212px;
    background-color: var(--color-primary);
    transition: 0.3s;
  }

  .nav-link {
    font-size: 1.6rem;
    white-space: nowrap;
    padding: 15px;
  }

  .navbar-list__active {
    left: 0;
  }

  .navbar-item:first-child {
    margin-top: 56px;
  }

  .theme-btn span,
  .theme-btn .icon-arrow-up,
  .theme-option span:first-of-type {
    display: none;
  }

  .theme-container {
    position: absolute;
    right: 265px;
  }

  .theme-btn .icon-moon {
    display: block;
    width: 20px;
    height: 20px;
  }

  .theme-btn {
    height: 40px;
    width: 40px;
    padding: 8px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: transparent;
  }

  .theme-btn .icon-moon,
  .theme-option .icon,
  .theme-option .icon + span {
    display: inline-block;
  }

  .theme-option .icon {
    width: 20px;
    height: 20px;
  }

  .theme-options {
    position: absolute;
    width: 156px;
    height: auto;
    right: -20px;
    padding-top: 20px;
    background-color: var(--color-primary);
    display: none;
  }

  .theme-option {
    height: 51px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 19px;
    font-size: 16px;
    font-weight: var(--weight-regular);
  }

  .theme-container:hover .theme-btn,
  .theme-container:focus-within .theme-btn {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: #383838;
  }

  .theme-container:hover .theme-options,
  .theme-container:focus-within .theme-options {
    display: block;
  }

  .theme-option-active,
  .theme-option:focus-within {
    background-color: var(--color-green-800);
  }

  .theme-option:hover,
  .theme-option:focus-visible {
    background-color: var(--color-green-700);
  }

  .nav-dive-deeper {
    position: absolute;
    right: 110px;
    margin-top: 0;
    padding: 9px 15px;
    font-size: 16px;
  }

  .nav-dive-deeper .icon {
    display: none;
  }
}

@media (min-width: 768px) {
}

@media (min-width: 992px) {
  .close-menu-btn {
    display: none;
  }

  .navbar-overlay {
    display: none;
  }

  .navbar-list {
    position: static;
    display: flex;
    margin-right: clamp(80px, 8vw, 127px);
    width: auto;
    background-color: transparent;
    gap: clamp(30px, 3vw, 64px);
  }

  .nav-link {
    font-weight: var(--weight-regular);
    padding: 0;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background-color: transparent;
    color: var(--color-green-800);
  }

  .navbar-item:first-child {
    margin-top: 0;
  }

  .theme-container {
    position: relative;
    right: 40px;
  }

  .theme-options {
    padding-top: 27px;
  }

  .nav-dive-deeper {
    position: static;
    margin-right: 40px;
    padding: 18px 15px;
  }
}

@media (min-width: 1200px) {
  .navbar-list {
    margin-right: 127px;
    gap: 50px;
  }
}

@media (min-width: 1400px) {
  .nav-dive-deeper {
    margin-right: 0;
  }
}
