.switch {
  position: relative;
  display: inline-block;
}
.switch-input {
  display: none;
   
}
.switch-label {
    display: block;
    width: 100%;
    height: 36px;
    text-indent: -150%;
    clip: rect(0 0 0 0);
    color: transparent;
    user-select: none;
}
.switch-label::before,
.switch-label::after {
  content: "";
  display: block;
  position: absolute;
  cursor: pointer;
}
.switch-label::before {
  width: 100%;
  height: 100%;
  background-color: #dedede;
  border-radius: 100px;
  -webkit-transition: background-color 0.25s ease;
  transition: background-color 0.25s ease;
}
.switch-label::after {
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.45);
  -webkit-transition: left 0.25s ease;
  transition: left 0.25s ease;
}
.switch-input:checked + .switch-label::before {
  background-color: #02ad08;
}
.switch-input:checked + .switch-label::after {
  left: 44px;
}


.label_checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 28px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.label_checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.span_checkbox {
  position: absolute;
  top: 0;
  left: 0;
  height: 36px;
  width: 40px;
  background-color: #fbfbfb;
  border-radius: 15px;
  border: 2px #666 solid;
}

/* On mouse-over, add a grey background color */
.label_checkbox:hover input ~ .span_checkbox {
  background-color:  rgba(255,0,0,0.2);
}

/* When the checkbox is checked, add a blue background */
.label_checkbox input:checked ~ .span_checkbox {
  background-color: #4caf50;
}

/* Create the checkmark/indicator (hidden when not checked) */
.span_checkbox:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.label_checkbox input:checked ~ .span_checkbox:after {
  display: block;
}

/* Style the checkmark/indicator */
.label_checkbox .span_checkbox:after {
    left: 15px;
    top: 4px;
    width: 5px;
    height: 20px;
    border: solid white;
    border-width: 0 5px 5px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}