:root {
    --white: #e8e9ed;
    --gray: #87a5f7;
    --blue: #18172c;
    --green: #ffe46b;
    --pink: #ff4b77;
  }
  
  
  [type="checkbox"] {
    position: absolute;
    left: -9999px;
  }
  
  
 
  
  .switches li {
    position: relative;
    counter-increment: switchCounter;
    list-style: none;
  }
  
  .switches li:not(:last-child) {
    border-bottom: 1px solid var(--gray);
  }
  
  .switches li::before {
    /* content: counter(switchCounter); */
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: var(--pink);
  }
  
  .switches label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
  }
  
  .switches span:last-child {
    position: relative;
    width: 50px;
    height: 26px;
    border-radius: 15px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
    background: var(--gray);
    transition: all 0.3s;
  }
  
  .switches span:last-child::before,
  .switches span:last-child::after {
    content: "";
    position: absolute;
  }
  
  .switches span:last-child::before {
    left: 1px;
    top: 1px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s;
  }
  
  .switches span:last-child::after {
    top: 50%;
    right: 8px;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background: url(../images/moon.svg);
    background-size: 12px 12px;
    color:#fff !important
  }
  
  .switches [type="checkbox"]:checked + label span:last-child {
    background: var(--green);
  }
  
  .switches [type="checkbox"]:checked + label span:last-child::before {
    transform: translateX(24px);
  }
  
  .switches [type="checkbox"]:checked + label span:last-child::after {
    width: 14px;
    height: 14px;
    /*right: auto;*/
    left: 8px;
    background-image: url(../images/sun.svg);
    background-size: 14px 14px;
  }
  
  @media screen and (max-width: 600px) {
    .switches li::before {
      display: none;
    }
  }
  