

body, body a{
   transition: color 1s, background-color 1s;
}
body.night.start {
  transition: color 0s, background-color 0s;
}
body.night {
 background: black;
 color: #fff;
}
body.night a{color: #fff;}
.toggle-box-label-left {
  z-index: 1000;
}
.toggle-box-label-left:empty {
  margin-left: -10px;
}
.toggle-box-label-left:before,
.toggle-box-label-left:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: 0.25s ease-in-out;
  outline: none;
}
.toggle-box input[type="checkbox"],
.toggle-box input[type="checkbox"]:active {
  position: absolute;
  top: -5000px;
  height: 0;
  width: 0;
  opacity: 0;
  border: none;
  outline: none;
}
.toggle-box label {
  display: inline-block;
  position: relative;
  padding: 0px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 16px;
  cursor: pointer;
  color: rgba(149, 149, 149, 0.51);
  font-weight: normal;
}
.toggle-box-label-left:before {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  line-height: 34px;
  text-indent: 40px;
  height: 16px;
  width: 16px;
  margin: 4px;
  right: 26px;
  border-radius: 100%;
  bottom: 0px;
  background: #000;
  transform: rotate(-45deg);
  box-shadow: 0 0 10px white;
}
.toggle-box-label-left:after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  vertical-align: middle;
  margin: 0 10px;
  border: 2px solid #000;
}
.toggle-box input[type="checkbox"]:checked + .toggle-box-label-left:before {
  right: 17px;
  box-shadow: 5px 5px 0 0 #eee;
  background: transparent;
}
.toggle-box input[type="checkbox"]:checked + .toggle-box-label-left:after {
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid white;
}
.toggle-box input[type="checkbox"] + .toggle-box-label-left {
  color: rgba(250, 250, 250, 0.51);
  font-weight: bold;
}
.toggle-box input[type="checkbox"]:checked + .toggle-box-label-left {
  color: rgba(149, 149, 149, 0.51);
  font-weight: normal;
}
.toggle-box input[type="checkbox"]:checked
  + .toggle-box-label-left
  + .toggle-box-label {
  color: rgba(250, 250, 250, 0.51);
  font-weight: bold;
}
.toggle-box {
  position: fixed;
  bottom: 20px;
  left: 30px;
  z-index: 1000;
  transform: scale(.8);
}

@media screen and (max-width: 900px) {
  .toggle-box {
    position: fixed;
    bottom: auto;
    left: auto;
    z-index: 1070;
    transform: scale(.8);
    top: 13px;
    right: 67px;
  }
}
