/* Copyright (C) 2018 - 2022
 *
 * Skylark Services GmbH - All Rights Reserved
 * 87719 Mindelheim, Bavaria, Germany
 *
 * This file is part of ATM Galerida
 *
 * This file can not be copied and/or distributed without the
 * express permission of Skylark Services GmbH
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400&display=swap');

body {
  font-family: 'Lato', sans-serif;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  min-width: 57px;
  height: 24px;
  font-size: 14px;
  line-height: 16px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  color: #ACACBB;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #828291;
  -webkit-transition: background .4s;
  transition: background .4s;
}

.slider:after {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: #ACACBB;
  -webkit-transition: transform .4s;
  transition: transform .4s;
}

input:checked + .slider {
  background-color: #9494FF;
  border: 1px solid #9494FF;
  color: #fff;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:after {
  background-color: #fff;
  -webkit-transform: translateX(32px);
  -ms-transform: translateX(32px);
  transform: translateX(32px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:after {
  border-radius: 50%;
}

.slider__text:before, .slider__text:after {
  display: block;
  width: 21px;
  height: 16px;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  overflow: hidden;
}

.slider__text:before {
  content: attr(data-off);
  right: 8px;
}

.slider__text:after {
  content: attr(data-on);
  right: auto;
  left: 8px;
}

input:checked + .slider .slider__text:before {
  animation: hide .3s;
  opacity: 0;
}

input:not(:checked) + .slider .slider__text:before {
  animation: show .3s;
  opacity: 1;
}

input:checked + .slider .slider__text:after {
  animation: show .3s;
  opacity: 1;
}

input:not(:checked) + .slider .slider__text:after {
  animation: hide .3s;
  opacity: 0;
}

@keyframes hide {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes show {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}