

.toggle {
    --width: 120px;
    --height: calc(var(--width) / 4);

    position: relative;
    display: inline-block;
    width: var(--width);
    height: var(--height);
    border-radius: var(--height);
    cursor: pointer;
  }

  .toggle input {
    display: none;
  }

  .toggle .slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--height);
    border: 2px solid #aaa;
    transition: all 0.4s ease-in-out;
  }

  .toggle .slider::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: calc(var(--height)*0.9);
    height: calc(var(--height)*0.9);
    border-radius: calc(var(--height) / 2);
    background-color: #fff;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease-in-out;
  }

  .toggle input:checked+.slider {
    border: 2px solid cornflowerblue;
  }

  .toggle input:checked+.slider::before {
    background-color: darkblue;
  }

  .toggle .labels {
    position: absolute;
    top: 8px;
    left: 50px;
    width: 100%;
    height: 100%;
    color: black;
    font-size: 12px;
    font-family:monospace;
    transition: all 0.4s ease-in-out;
  }

  .toggle .labels::after {
    content: attr(data-cas);
    position: absolute;
    opacity: 1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease-in-out;
  }

  .toggle .labels::before {
    content: attr(data-bus);
    position: absolute;
    opacity: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease-in-out;
  }

  .toggle input:checked~.labels::after {
    opacity: 0;
  }

  .toggle input:checked~.labels::before {
    opacity: 1;
  }

  /*For hot/cold slider*/
  /*Sets the global style emelemts*/
  body, html{
    /*sets background color*/
    background-color: white;
    /*no margin or padding means full screen background*/
    margin: 0;
    padding: 0;
  }
  /*styles the range input element*/
  .range{
    /*Removes default apperence for mozilla and webKit browsers*/
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    display: inline-block;
    left: 10%;
    top: 50%;
    width: 200px;
    margin-top: 10px;
    transform: translate(-50%, -50%);

  }
  input[type=range]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    background: rgba(51,159,209,1);
    background: -moz-linear-gradient(45deg, rgb(51, 159, 209) 0%, rgb(47, 36, 172) 25%, rgb(164, 52, 95) 60%, rgb(220, 46, 46) 100%);
    background: -webkit-linear-gradient(45deg, rgb(51, 159, 209)0%, rgb(47, 36, 172) 25%, rgb(164, 52, 95) 51%, rgb(220, 46, 46) 100%);
    background: -o-linear-gradient(45deg, rgb(51, 159, 209) 0%, rgb(47, 36, 172)25%, rgb(164, 52, 95) 51%, rgb(220, 46, 46) 100%);
    background: -ms-linear-gradient(45deg, rgb(51, 159, 209) 0%, rgb(47, 36, 172) 25%, rgb(164, 52, 95) 51%, rgb(220, 46, 46) 100%);
    background: linear-gradient(45deg, rgb(51, 159, 209) 0%, rgb(47, 36, 172) 25%, rgb(164, 52, 95) 51%, rgb(220, 46, 46) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3bade3 ', endColorstr='#ff357f ', GradientType=1 );
    height: 2px;
    
  }
  
  input[type=range]:focus{
    outline: none;
  }

  input[type=range]::-moz-range-track {
    -moz-appearance: none;
    background: rgba(51,159,209,1);
    background: -moz-linear-gradient(45deg, rgb(51, 159, 209) 0%, rgb(47, 36, 172) 25%, rgb(164, 52, 95) 51%, rgb(220, 46, 46) 100%);
    background: -webkit-linear-gradient(45deg, rgb(51, 159, 209)0%, rgb(47, 36, 172) 25%, rgb(164, 52, 95) 51%, rgb(220, 46, 46) 100%);
    background: -o-linear-gradient(45deg, rgb(51, 159, 209) 0%, rgb(47, 36, 172)25%, rgb(164, 52, 95) 51%, rgb(220, 46, 46) 100%);
    background: -ms-linear-gradient(45deg, rgb(51, 159, 209) 0%, rgb(47, 36, 172) 25%, rgb(164, 52, 95) 51%, rgb(220, 46, 46) 100%);
    background: linear-gradient(45deg, rgb(51, 159, 209) 0%, rgb(47, 36, 172) 25%, rgb(164, 52, 95) 51%, rgb(220, 46, 46) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3bade3 ', endColorstr='#ff357f ', GradientType=1 );
    height: 2px;
    
  }

  input[type=range]::-webkit-slider-thumb{
    -webkit-appearance: none;
    border: 2px solid;
    border-radius: 50%;
    height: 25px;
    width: 25px;
    max-width: 80px;
    position: relative;
    bottom: 11px;
    background-color: #1d1c25;
    cursor: -webkit-grab;
    -webkit-transition: border 1000ms ease;
    transition: border 1000ms ease;
  }

  input[type=range]::-moz-range-thumb {
    -moz-appearance: none;
    border: 2px solid;
    border-radius: 50%;
    height: 25px;
    width: 25px;
    max-width: 80px;
    position: relative;
    bottom: 11px;
    background-color: #1d1c25;
    cursor: -moz-grab;
    -moz-transition: border 1000ms ease;
    transition: border 1000ms ease;
  }

  .range.blue::-webkit-slider-thumb {
    border-color: rgb(51, 159, 209);
  }
  .range.ltpurple::-webkit-slider-thumb {
    border-color: rgb(47, 36, 172);
  }
  .range.purple::-webkit-slider-thumb {
    border-color: rgb(164, 52, 95);
  }
  .range.pink::-webkit-slider-thumb {
    border-color:  rgb(220, 46, 46);
  }
  .range.blue::-moz-range-thumb {
    border-color: rgb(51, 159, 209);
  }
  .range.ltpurple::-moz-range-thumb {
    border-color: rgb(47, 36, 172);
  }
  .range.purple::-moz-range-thumb {
    border-color: rgb(164, 52, 95);
  }
  .range.pink::-moz-range-thumb {
    border-color:  rgb(220, 46, 46);
  }
  input[type=range]::-webkit-slider-thumb:active {
    cursor: -webkit-grabbing;
  }
  input[type=range]::-moz-range-thumb:active {
    cursor: -moz-grabbing;
  }


  div.gallery {
    border: 1px solid #ccc;
  }
  
  div.gallery:hover {
    border: 1px solid #777;
  }
  
  div.gallery img {
    width: 100%;
    height: auto;
  }
  
  div.desc {
    padding: 15px;
    text-align: center;
  }
  
  * {
    box-sizing: border-box;
  }
  
  .responsive {
    padding: 0 6px;
    float: left;
    width: 24.99999%;
  }
  
  @media only screen and (max-width: 700px) {
    .responsive {
      width: 49.99999%;
      margin: 6px 0;
    }
  }
  
  @media only screen and (max-width: 500px) {
    .responsive {
      width: 100%;
    }
  }
  
  .clearfix:after {
    content: "";
    display: table;
    clear: both;
  }
  
