body,
html {
	height: 100%;
	display: flex;

	justify-content: center;
	align-items: center;
}

body {
	background: #333333;
	transition: background 2s;
}
.on {
	background: lightblue;
}

#circle {
	fill: transparent;
	stroke: #dc143c;
	stroke-width: 10px;
	stroke-linecap: round;

	transform: rotate(-50deg);

	transform-origin: 49% 53.5%;
	stroke-dasharray: 210;
	stroke-dashoffset: 40;

	transition: transform 2s, fill 2s, stroke 1s, stroke-dasharray 1s;
}

#line {
	stroke: #dc143c;
	stroke-width: 10px;
	stroke-linecap: round;

	transition: transform 1s ease-in 1.2s, stroke 1s;
}

#powerSwitch {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 150px;
	height: 150px;
}

#powerSwitch input {
	position: absolute;
	height: 100%;
	width: 100%;
	z-index: 2;
	cursor: pointer;
	opacity: 0;
}

input:checked + svg #line {
	stroke: white;
	transform: translateY(38px);

	transition: transform 1s, stroke 1s;
	transition-delay: 0s;
}
input:checked + svg #circle {
	stroke: #98fb98;
	fill: #98fb98;
	stroke-dasharray: 260;
	transform: rotate(310deg);
}