.switch{position:relative;display:inline-block;width:40px;height:20px}.switch input{opacity:0;width:0;height:0}.slider{cursor:default;top:0;right:0;background-color:#ccc}.slider,.slider:before{position:absolute;left:0;bottom:0;transition:.4s}.slider:before{content:"";height:20px;width:20px;background-color:white}input:checked+.slider{background-color:#2C3333}input:focus+.slider{box-shadow:0 0 1px #2196F3}input:checked+.slider:before{transform:translateX(20px)}.slider.round{border-radius:20px}.slider.round:before{border-radius:50%}