.switch {
  position: relative;
  display: inline-block;
  width: 51px !important;
  height: 30px !important;
}

.switch input {display:none;}

/*按鈕背景設定*/
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*關閉時背景顏色*/
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

/*會移動的按鈕設定*/
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  /*按鈕顏色*/
  background-color: white;
  /*左右移動秒數*/
  -webkit-transition: .3s;
  transition: .3s;
}

/*啟動按鈕後背景顏色*/
input:checked + .slider {
  background-color: #39ad8c;
}

input:focus + .slider {
  box-shadow: 0 0 1px #39ad8c;
}

/*這段令按鈕會動，translateX係X軸向右平移距離*/
input:checked + .slider:before {
  -webkit-transform: translateX(21px);
  -ms-transform: translateX(21px);
  transform: translateX(21px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

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

.checkbox_padding {
  position: absolute;
  bottom: 105px;
  padding-left: 10px;
}











