.switch {
    box-sizing: border-box;
    border: 5px solid transparent;
    background: var(--gray);
    margin: 0 5px 0 10px;
    border-radius: 1000px; /* huge value always retains pill-shape */
    width: calc(2 * var(--col-width) + 10px);
    transition: background .3s;
    height: 4ex;
    align-self: center;
}

.switch.on {
    background: var(--ubk-blue);
}

.switch .handle {
    height: 100%;
    transition: all .3s;
    display: block;
    position: relative;
}

.switch img {
    transition: all .3s;
    position: absolute;
    left: 0;
    transform: translateX(0);
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 10px 0px var(--dark-gray);
}

.switch.on img {
    left: 100%;
    transform: translateX(-100%);
}


/* The switch - the box around the slider */
.switch2 {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

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

.slider2 {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

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

input.on + .slider2 {
  background-color: var(--ubk-blue);
}

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

input.on + .slider2:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

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

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