body
{
	background-color: white;
	color: black;
	font-size: 1.4em;
}

.dark
{
	background-color: black;
	color: white;
}

input
{
	font-size: 1em;
}

p
{
	margin: 0;
}

/* The switch - the box around the slider */
.dark_mode_switch 
{
	position: relative;
	width: 170px;
	height: 34px;
	margin: auto;
	margin-top: 1rem;
}

.dark_mode_switch div
{
	font-size: 1rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Hide default HTML checkbox */
.dark_mode_switch input 
{
	opacity: 0;
	width: 0;
	height: 0;
}

/* The slider */
.dark_mode_slider 
{
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 110px;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
}

.dark_mode_slider:before 
{
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
}

input:checked + .dark_mode_slider 
{
	background-color: #2196F3;
}

input:focus + .dark_mode_slider 
{
	box-shadow: 0 0 1px #2196F3;
}

input:checked + .dark_mode_slider:before 
{
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
}

/* Rounded sliders */
.dark_mode_slider.dark_mode_round 
{
	border-radius: 34px;
}

.dark_mode_slider.dark_mode_round:before 
{
	border-radius: 50%;
} 