@charset "UTF-8";

.theme-switch-wrapper {
  position: relative;
  line-height: 1;
}
.theme-switch-wrapper::before {
  content: "Light Mode";
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35em;
}
:root[data-theme='dark'] .theme-switch-wrapper::before {
  content: "Dark Mode";
}

.theme-switch {
  display: inline-block;
  vertical-align: middle;
  height: 18px;
  position: relative;
  width: 40px;
}

.theme-switch input {
  display:none;
}

.theme-switch .slider {
  background-color: #aaa;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.theme-switch .slider:before {
  content: "";
  background-color: #fff;
  position: absolute;
  bottom: 0;
  top: 0;
  margin: auto;
  left: 3px;
  transition: .4s;
  width: 12px;
  height: 12px;
}

.theme-switch input:checked + .slider {
  background-color: #66bb6a;
}

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

.theme-switch .slider.round {
  border-radius: 24px;
  border: 1px solid;
}

.theme-switch .slider.round:before {
  border-radius: 50%;
}
