.style-switcher {
  position: fixed;
  right: 0;
  top: 20px;
  z-index: 101;
  transform: translateX(-30%);
}

.style-switcher-checkbox {
  display: none;
}

.style-switcher .toggle {
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  border-radius: 50px;
  height: 60px;
  width: 120px;
  transition: .2s;
}

.style-switcher .toggle {
  background: linear-gradient(145deg, #e1e1e1, #fff);
}

.style-switcher .toggle i {
  width: 50%;
  line-height: 60px;
  text-align: center;
  font-size: 30px;
  z-index: 1;
}

.style-switcher .toggle .ball {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: 7.5px;
  border-radius: 50%;
  background: #151d2a;
  transition: .3s ease-out;
}

.style-switcher .toggle .bxs-sun {

  color: #fafafa;
}

.style-switcher .toggle .bx-moon {
  color: #151d2a;
}

/* Dark Mode */

body.dark .style-switcher .toggle {
  background: #151515;
}


body.dark .style-switcher .toggle .ball {
  background: #fafafa;
  transform: translateX(60px);
}

body.dark .style-switcher .toggle .bx-sun {
  color: #fafafa;
}

body.dark .style-switcher .toggle .bxs-moon {
  color: #151d2a;
}

@media (max-width:620px) {
  .style-switcher {
    right: 1px;
    top: 20px;
  }


  .style-switcher .toggle {
    text-align: center;
    border-radius: 50px;
    height: 60px;
    width: 120px;
  }

  .style-switcher .toggle i {
    line-height: 60px;
    font-size: 30px;
  }

  .style-switcher .toggle .ball {
    width: 44px;
    height: 44px;
    margin: 7.5px;
  }

  body.dark .style-switcher .toggle .ball {
    background: #fafafa;
    transform: translatex(60px);
  }


}
