/*Simple css to style it like a toggle switch*/
.theme-switch-wrapper {
  right: 0;
  margin-top: -2px;

  display: flex;
  align-items: center;

  /* em {
    margin-left: 10px;
    font-size: 1.5rem;
  } */
}
.theme-switch-wrapper em:nth-child(1) {
  margin-right: 8px;
  font-size: 1.5rem;
}
.theme-switch-wrapper em:nth-child(3) {
  margin-left: 8px;
  font-size: 1.5rem;
}

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

.theme-switch input {
  display:none;
}

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

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 20px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 20px;
}

input:checked + .slider {
  background-color: #000;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 28px;
}

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

@media (max-width: 400px) and (orientation: portrait) {

  .theme-switch-wrapper {
    margin-top: -5px;
  }
  .theme-switch-wrapper em:nth-child(1) {
    margin-right: 8px;
    font-size: 1.2rem;
  }
  .theme-switch-wrapper em:nth-child(3) {
    margin-left: 8px;
    font-size: 1.2rem;
  }

}

@media (max-width: 900px) and (orientation: landscape) {

  .theme-switch-wrapper {
    margin-top: -6px;
  }

}