.switch {
    position: relative;
    display: inline-block;
    width: 3.5vw;
    height: 1.6vw;
  }
  
  /* 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: var(--grey);
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 1vw;
    width: 1vw;
    left: 0.3vw;
    bottom: 0.3vw;
    background-color: var(--brown);
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider.moderator {
    background-color: var(--pink);
  }
  
  input:focus + .slider.moderator {
    box-shadow: 0 0 1px var(--pink);
  }
  
  input:checked + .slider.moderator:before {
    -webkit-transform: translateX(1.95vw);
    -ms-transform: translateX(1.95vw);
    transform: translateX(1.95vw);
  }

  input:checked + .slider.voice {
    background-color: var(--blue);
  }

  input:focus + .slider.voice {
    box-shadow: 0 0 1px var(--blue);
  }

  input:checked + .slider.voice:before {
    -webkit-transform: translateX(1.95vw);
    -ms-transform: translateX(1.95vw);
    transform: translateX(1.95vw);
  }
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }









  .sliderLightOrDarkMode {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../img/darkmodetogglebg.png);
    background-size: cover;
    background-position: center;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .sliderLightOrDarkMode:before {
    position: absolute;
    content: "";
    height: 1vw;
    width: 1vw;
    left: 0.3vw;
    bottom: 0.3vw;
    background-image: url(../img/darkmodetogglemoon.png);
    background-size: cover;
    background-position: center;
    -webkit-transition: .4s;
    transition: .4s;
    filter: drop-shadow(0 0 5px #000);
  }

  input:checked + .sliderLightOrDarkMode {
    background-image: url(../img/lightmodetogglebg.png);
    background-size: cover;
    background-position: center;
  }
  
  input:focus + .sliderLightOrDarkMode {
    box-shadow: 0 0 1px var(--white);
  }
  
  input:checked + .sliderLightOrDarkMode:before {
    background-image: url(../img/lightmodetogglesun.png);
    background-size: cover;
    background-position: center;
    -webkit-transform: translateX(1.95vw);
    -ms-transform: translateX(1.95vw);
    transform: translateX(1.95vw);
  }

  .sliderLightOrDarkMode.round {
    border-radius: 34px;
  }
  
  .sliderLightOrDarkMode.round:before {
    border-radius: 50%;
  }



