/* CSS rules are kept repetitive so that you can get CSS rules for each button easily :) */

*
{
    user-select: none;
    -webkit-tap-highlight-color:transparent;
}

*:focus
{
    outline: none;
}



.row
{
    display: table-row;
}


.toggle-button{
  margin-left: 44px;
}

.toggle-button-cover
{
    display: table-cell;
    position: relative;
    width: 200px;
    height: 140px;
    box-sizing: border-box;
}

.button-cover
{
    height: 100px;
    margin: 20px;
    background-color: #fff;
    box-shadow: 0 10px 20px -8px #c5d6d6;
    border-radius: 4px;
}

.button-cover:before
{
    counter-increment: button-counter;
    content: counter(button-counter);
    position: absolute;
    right: 0;
    bottom: 0;
    color: #d7e3e3;
    font-size: 12px;
    line-height: 1;
    padding: 5px;
}

.button-cover, .knobs, .layer
{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.button
{
    position: relative;
    /* top: 66%; */
    width: 63px;
    height: 29px;
    /* margin: -20px auto 0 auto; */
    /* overflow: hidden; */
}

.button.r, .button.r .layer
{
    border-radius: 100px;
}


.checkbox
{
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.knobs
{
    z-index: 2;
}

.layer
{
    
    width: 100%;
    background-color: #E0E0E0;
    transition: 0.3s ease all;
    z-index: 1;
}


/* Button 10 */
#button-10 .knobs:before, #button-10 .knobs:after, #button-10 .knobs span
{
    position: absolute;
    top: 3px;
    width: 26px;
    height: 26px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    padding: 9px 0px;
    border-radius: 4px;
    transition: 0.3s ease all;
}

#button-10 .knobs:before
{
    content: '';
    left: 2px;
    background-color:#808080;
}

#button-10 .knobs:after
{
    content: 'ON';
    right: 4px;
    color: #4e4e4e;
}

#button-10 .knobs span
{
    display: inline-block;
    left: 4px;
    color: #E0E0E0;
    z-index: 1;
}

#button-10 .checkbox:checked + .knobs span
{
  
  /* color: #FF5722; */
    color: #4e4e4e;
}

#button-10 .checkbox:checked + .knobs:before
{
    left: 36px;
    /* background-color: #333333; */
    background-color: #FF5722; 
}

#button-10 .checkbox:checked + .knobs:after
{
    color: #fff;
}

#button-10 .checkbox:checked ~ .layer
{
    background-color: #fcebeb;
}
