input[type=checkbox]{
    height: 0;
    width: 0;
    visibility: hidden;
}
  
label {
    cursor: pointer;
    /* text-indent: -9999px; */
    width: 24px;
    height: 14px;
    background: rgb(98, 98, 98);
    /* display: block; */
    border-radius: 12px;
    position: relative;
}

label:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 10px;
    transition: 0.3s;
}

input:checked + label {
    background: rgb(136, 136, 136);
}

input:checked + label:after {
    left: calc(100% - 2px);
    transform: translateX(-100%);
}

label:active:after {
    width: 16px;
}

/* body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
} */