/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin-top: 20px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.slider:hover{
  background-color: #80C4FC;
}

.slider:before {
  position: absolute;
  content: "";
  height: 23px;
  width: 23px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: #2196f3;
}



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

input:checked + .slider:before {
  -webkit-transform: translateX(28px);
  -ms-transform: translateX(28px);
  transform: translateX(28px);
}

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

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

span.slider-scritte:before {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  content: "Careser";
  position: absolute;
  left: -62px;
  top: 4px;
  color: #2196f3;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

span.slider-scritte::after {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  content: "La Mare";
  position: absolute;
  right: -62px;
  top: 4px;
  color: rgba(15, 15, 15, 0.6);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

input:checked + .slider + span.slider-scritte:before {
  color: rgba(15, 15, 15, 0.6);
}

input:checked + .slider + span.slider-scritte::after {
  color: #2196f3;
}

#elemento2 span.slider-scritte:before {
  content: "In equilibrio";
  transform: translateX(-120%);
  left: auto;
  white-space: nowrap;
}

#elemento2 span.slider-scritte::after {
  content: "In ritiro";
  transform: translateX(120%);
  right: auto;
  white-space: nowrap;
}

#elemento3 span.slider-scritte:before {
  content: "Careser";
  transform: translateX(-120%);
  left: auto;
  white-space: nowrap;
}

#elemento3 span.slider-scritte::after {
  content: "La Mare";
  transform: translateX(120%);
  right: auto;
  white-space: nowrap;
}
