/* De basis van de switch kleine letter */
.switch {
  position: relative;
  display: inline-block;
  width: 46px; /* Iets compacter voor in een popup */
  height: 24px;
}

/* Verberg de standaard checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* De slider (achtergrond) */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

/* Het witte rondje */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Kleur als hij AAN staat (mooi blauw of groen) */
input:checked + .slider {
  background-color: #2ecc71;
}

/* Verplaats het rondje naar rechts */
input:checked + .slider:before {
  transform: translateX(22px);
}
