.container {
}

.switch {
  position: relative;
  height: 30px;
  width: 290px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
}

.switch-label {
  position: relative;
  z-index: 2;
  float: left;
  width: 68px;
  line-height: 30px;
  font-size: 18px;
  color: #535353;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.switch-label:active {
  font-weight: bold;
}

.switch-label-off {
  padding-left: 2px;
}

.switch-label-on,.switch-label-two,.switch-label-three {
  padding-right: 2px;
}

.switch-input {
  display: none;
}

.switch-input:checked + .switch-label {
  font-weight: bold;
  color: rgba(0, 0, 0, 0.65);
  text-shadow: 0 1px rgba(255, 255, 255, 0.25);
  -webkit-transition: 0.15s ease-out;
  -moz-transition: 0.15s ease-out;
  -o-transition: 0.15s ease-out;
  transition: 0.15s ease-out;
}

.switch-input:checked + .switch-label-on ~ .switch-selection {
  /* Note: left: 50% doesn't transition in WebKit */
  left: 70px;
  background: #F9828D;
}
.switch-input:checked + .switch-label-two ~ .switch-selection {
  /* Note: left: 50% doesn't transition in WebKit */
  left: 140px;
  background: #FFCC99;
}
.switch-input:checked + .switch-label-three ~ .switch-selection  {
  /* Note: left: 50% doesn't transition in WebKit */
  left: 210px;
  background: #0099FF;
}

.switch-selection {
  display: block;
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 2px;
  width: 74px;
  height: 26px;
  background: #65bd63;
  border-radius: 3px;
  background-image: -webkit-linear-gradient(top, #9dd993, #65bd63);
  background-image: -moz-linear-gradient(top, #9dd993, #65bd63);
  background-image: -o-linear-gradient(top, #9dd993, #65bd63);
  background-image: linear-gradient(to bottom, #9dd993, #65bd63);
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 0 2px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 0 2px rgba(0, 0, 0, 0.2);
  -webkit-transition: left 0.15s ease-out;
  -moz-transition: left 0.15s ease-out;
  -o-transition: left 0.15s ease-out;
  transition: left 0.15s ease-out;
}

@media only screen and (max-width:500px) {
.switch {
  height: 30px;
  width: 145px;
}
.switch-label {
  width: 34px;
  font-size: 11px;
}
.switch-input:checked + .switch-label-on ~ .switch-selection {
  left: 35px;
  background: #F9828D;
}
.switch-input:checked + .switch-label-two ~ .switch-selection {
  left: 70px;
  background: #FFCC99;
}
.switch-input:checked + .switch-label-three ~ .switch-selection  {
  left: 105px;
  background: #0099FF;
}
.switch-selection {
  width: 37px;
  height: 26px;
}