.main5 {
	min-height: auto;
}
.main5 .imgWrap {
	position: relative;
	padding-top: 56.25%;
}
.main5 .imgWrap .loader {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	margin: auto;
	transition: background-image 0.3s;
	background-image: url(../images/main/day.jpg);
}
.main5 .imgWrap .loader.night {
	background-image: url(../images/main/night.jpg);
}
.toggleWrapper {
	position: absolute;
	bottom: 60px; left: 50%;
	width: 300px; height: 70px;
	background-color: rgba(255,255,255,0.7);
	border-radius: 100px;
	transform: translateX(-50%);
	text-align: center;
	overflow: hidden;
	z-index: 10;
}
.toggleWrapper input {
	position: absolute;
	display: none;
}

.toggle {
	position: relative;
	display: inline-block;
	width: 90px; height: 50px;
	margin-top: 10px;
	background-color: #83D8FF;
	border-radius: 84px;
	text-align: left;
	cursor: pointer;
	transition: background-color 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.toggle:before {
	content: 'Day';
	position: absolute;
	top: 15px; left: -60px;
	font-size: 18px;
}
.toggle:after {
	content: 'Night';
	position: absolute;
	top: 15px; right: -68px;
	font-size: 18px;
	color: #749ED7;
}

.toggle__handler {
	position: relative;
	display: inline-block;
	top: 3px; left: 3px;
	width: 44px; height: 44px;
	background-color: #FFCF96;
	border-radius: 50px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	transition: all 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
	transform: rotate(-45deg);
	z-index: 1;
}
.toggle__handler .crater {
	position: absolute;
	background-color: #E8CDA5;
	opacity: 0;
	transition: opacity 200ms ease-in-out;
	border-radius: 100%;
}
.toggle__handler .crater--1 {
	top: 18px; left: 10px;
	width: 4px; height: 4px;
}
.toggle__handler .crater--2 {
	top: 28px; left: 22px;
	width: 6px; height: 6px;
}
.toggle__handler .crater--3 {
	top: 10px; left: 25px;
	width: 8px; height: 8px;
}

.star {
	position: absolute;
	background-color: #ffffff;
	border-radius: 50%;
	transition: all 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.star--1 {
	top: 10px; left: 35px;
	width: 30px; height: 3px;
	z-index: 0;
}
.star--2 {
	top: 18px; left: 28px;
	width: 30px; height: 3px;
	z-index: 1;
}
.star--3 {
	top: 27px; left: 40px;
	width: 30px; height: 3px;
	z-index: 0;
}
.star--4,
.star--5,
.star--6 {
opacity: 0;
transition: all 300ms 0 cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.star--4 {
	top: 16px; left: 11px;
	width: 2px; height: 2px;
	transform: translate3d(3px, 0, 0);
	z-index: 0;
}
.star--5 {
	top: 32px; left: 17px;
	width: 3px; height: 3px;
	transform: translate3d(3px, 0, 0);
	z-index: 0;
}
.star--6 {
	top: 36px; left: 28px;
	width: 2px; height: 2px;
	transform: translate3d(3px, 0, 0);
	z-index: 0;
}

input:checked + .toggle {
	background-color: #749DD6;
}
input:checked + .toggle:before {
	color: #749ED7;
}
input:checked + .toggle:after {
	color: #666;
}
input:checked + .toggle .toggle__handler {
	background-color: #FFE5B5;
	transform: translate3d(40px, 0, 0) rotate(0);
}
input:checked + .toggle .toggle__handler .crater {
	opacity: 1;
}
input:checked + .toggle .star--1 {
	width: 2px; height: 2px;
}
input:checked + .toggle .star--2 {
	width: 4px; height: 4px;
	transform: translate3d(-5px, 0, 0);
}
input:checked + .toggle .star--3 {
	width: 2px; height: 2px;
	transform: translate3d(-7px, 0, 0);
}
input:checked + .toggle .star--4,
input:checked + .toggle .star--5,
input:checked + .toggle .star--6 {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}
input:checked + .toggle .star--4 {
	transition: all 300ms 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
input:checked + .toggle .star--5 {
	transition: all 300ms 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
input:checked + .toggle .star--6 {
	transition: all 300ms 400ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

@media ( max-width: 1024px ) {
	.main5 {
		margin-top: 35px;
	}
	.toggleWrapper {
		bottom: 8px;
		width: 80px; height: 40px;
	}
	.toggle {
		margin-top: 5px;
		width: 70px; height: 30px;
	}
	.toggle:before {
		display: none;
	}
	.toggle:after {
		display: none;
	}
	.toggle__handler {
		top: 3px; left: 3px;
		width: 23px; height: 23px;
	}
	.toggle__handler .crater--1,
	.toggle__handler .crater--2,
	.toggle__handler .crater--3,
	.star--3,
	.star--5,
	.star--6 {
		display: none;
	}
}
