body.dark {
  --color-bg: hsla(220, 20%, 8%, 1);
  --color-text: hsla(210, 40%, 92%, 1);
  --text-muted: hsla(210, 15%, 65%, 1);
  --text-muted-soft: hsla(210, 15%, 55%, 1);
  --color-border: hsla(220, 15%, 25%, 1);

  --bg-gradient-start: hsla(220, 30%, 12%, 1);
  --bg-gradient-end: hsla(180, 30%, 16%, 1);

  --glass-bg: hsla(220, 20%, 15%, 0.55);
  --glass-border: hsla(220, 20%, 30%, 0.6);
}

.theme-switch {
  --theme-btn-light: #73C0FC;
  --theme-btn-dark: #183153;
  --theme-btn-ball: #e8e8e8;
  --sun-color: #ffd43b;
  --moon-color: #73C0FC;
  --theme-btn-size: 20px;
  --theme-btn-padding: 2px;
}

.theme-switch {
  position: absolute;
  padding: var(--theme-btn-padding);
  top: 25px;
  right: 10px;
  transform: translateY(-50%);
  border-radius: 20px;
  display: inline-block;
  display: flex;
  background-color: var(--theme-btn-light);
  width: calc(var(--theme-btn-size) * 2 + var(--theme-btn-padding) * 3);
  height: calc(var(--theme-btn-size) + var(--theme-btn-padding) * 2);
  z-index: 99;
  cursor: pointer;
}

.theme-switch .slider {
  background-color: var(--theme-btn-ball);
  width: var(--theme-btn-size);
  height: var(--theme-btn-size);
  border-radius: 20px;
  position: absolute;
  transition: transform 0.3s ease;
}

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

.theme-switch svg {
  width: var(--theme-btn-size);
  height: var(--theme-btn-size);
}

.sun svg {
  fill: var(--sun-color);
}

.moon svg {
  fill: var(--moon-color);
}

.theme-switch.active .slider {
  transform: translateX(calc(var(--theme-btn-size) + var(--theme-btn-padding)));
}

.theme-switch.active {
  background-color: var(--theme-btn-dark);
}

.theme-switch .sun,
.theme-switch .moon {
  transition: transform 1s ease;
}

.theme-switch:hover .sun,
.theme-switch:hover .moon
{
  transform: rotate(360deg);
}