﻿body {

}

.switch {
	+position: absolute;
	+top: 50%;
	+left: 50%;
	+transform: translate(-50%, -50%);
	display: flex;
}

.switch > input[type="checkbox"] {
	position: relative;
	width: 60px;
	height: 30px;
	-webkit-appearance: none;
	outline: none;
	background: #c6c6c6;
	border-radius: 20px;
	transition: .5s;
	box-shadow: inset 0 0 5px rgba(0,0,0,.2);
}

.switch > input:checked[type="checkbox"] {
	background: #40e551
}

	.switch > input[type="checkbox"]:before {
		content: '';
		position: absolute;
		width: 30px;
		+height: 40px;
		height: 30px;
		border-radius: 15px;
		top: 0;
		left: 0;
		background: #fff;
		transition: .5s;
		transform: scale(1.1);
		box-shadow: 0 2px 5px rgba(0,0,0,.2);
	}

.switch > input:checked[type="checkbox"]:before {
	left: 30px;
}

	.switch > label {
		margin-right: 20px;
		line-height: 30px;
		font-size: 20px;
	}
