body {
  margin: 0;
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background-color: #4b729a;
}

.main-container {
  width: 25%;
  padding: 15px;
  background-color: #fff;
  border-radius: 6px;
  border: 2px solid #ccc;
  text-align: center;
}

.main-container .switch-element {
  margin: 20px 0;
}

.main-container .switch-element label {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 34px;
}

.main-container .switch-element label input[type=checkbox] {
  opacity: 0;
  width: 0;
  height: 0;
}

.main-container .switch-element label input[type=checkbox]:checked + span.slider {
  background-color: #2196F3;
}

.main-container .switch-element label input[type=checkbox]:checked + span.slider::before {
  -webkit-transform: translateX(36px);
  transform: translateX(36px);
}

.main-container .switch-element label span.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 25px;
}

.main-container .switch-element label span.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 25px;
}
/*# sourceMappingURL=style.css.map */