main {
	> :nth-child(2) {
		margin-left: auto;
		margin-top: 45%;
	}
}

section {
	position: relative;
	width: calc(100% / 12 * 5 - 8pt);

	h2 {
		white-space: nowrap;
	}

	p {
		transition: opacity 1s ease;
	}

	p.flipped-text {
		opacity: 0;
		width: 150pt;
		margin-top: 13%;
		margin-left: 15%;
		z-index: 2;
	}
	p.p-bottom-padding{
		padding-bottom:100px;
	}

	#photo {
		position: absolute;
		left: 110%;
		top: 70%;
		display: flex;
		transform: rotate(-4.73deg);

		* {
			position: absolute;
		}
	}

	#photo:hover {
		#background-tape {
			animation: animateTape 1s;
			animation-fill-mode: forwards;
		}

		#background-photo-frame {
			animation: animateScale 1s;
			animation-fill-mode: forwards;
		}

		p.flipped-text {
			opacity: 1;
			animation: animateScale 1s;
			animation-fill-mode: forwards;
		}

		#background-carpet {
			opacity: 0;
			animation: animateScale 1s;
			animation-fill-mode: forwards;
		}
	}
}

section img {
	position: absolute;
	user-select: none;
	transition: opacity 1s ease;

	&#background-splotch {
		top: 100%;
		left: 40%;
	}

	&#background-cutout {
		left: 48%;
		top: 100%;
	}

	&#background-bike {
		left: 68%;
		top: 100%;
	}

	&#background-photo-frame {
		position: relative;
		box-shadow: 8px 8px 10px;
	}

	&#background-tape {
		transform: scale(0.3) rotate(4.73deg);
		left: -58%;
		top: -77%;
		z-index: 1;
	}

	&#background-carpet {
		margin-top: 9%;
		margin-left: 2%;
		z-index: 2;
	}

	&#single-line {
		left: -93%;
		top: -37%;
		z-index: -1;
		transform: scaleX(-1) rotate(35deg);
	}

	&#house-illustration {
		left: -74%;
		top: 69%;
	}

	&#heart-illustration {
		left: -21%;
		top: 40%;
	}

	&#squirrels {
		left: -30%;
		top: 53%;
		transform: scale(2);
	}
}

@keyframes animateScale {
	50% {
		transform: scale(1.1);
	}
	to {
		transform: scale(1);
	}
}

@keyframes animateTape {
	50% {
		top: -83%;
		transform: scale(0.35) rotate(4.73deg);
		animation-play-state: paused;
	}
	to {
		transform: scale(0.3) rotate(4.73deg);
	}
}

@media screen and (max-width: 426px) {
	main {
		> * {
			margin: 0;
			padding: 0 10pt;
		}
	}

	section {
		width: calc(100% - 20pt);
		margin: 0;

		#photo {
			left: 45%;
			top: 65%;
			transform: scale(0.3) rotate(4.73deg);
		}

		#photo:hover {
			#background-tape {
				animation: none;
			}

			#background-photo-frame {
				animation: none;
			}

			p.flipped-text {
				opacity: 0;
				animation: none;
			}

			#background-carpet {
				opacity: 1;
				animation: none;
			}
		}
	}

	section img {
		&#background-splotch {
			transform: scale(0.25);
			position: absolute;
			left: -59%;
			top: 70%;
		}

		&#background-bike {
			left: 23%;
			top: 74%;
			transform: scale(0.3);
			z-index: 4;
		}

		&#background-cutout {
			left: -20%;
			top: 100%;
			transform: scale(0.3);
		}

		&#background-tape {
			transform: scale(0.3) rotate(30deg);
			left: -25%;
			top: -65%;
			z-index: 3;
		}

		&#squirrels {
			display: none;
		}

		&#single-line {
			display: none;
		}

		&#house-illustration {
			display: none;
			transform: scale(0.3);
			left: 90%;
			top: 80%;
		}

		&#heart-illustration {
			display: none;
			transform: scale(0.3);
			left: 80%;
			top: 0%;
		}
	}
}

.quiz {
	margin-top: 70px;
	display: flex;
	justify-content: center;
}

@media screen (min-width: 769px) and (max-width: 1024px) {
	section img {
		&#background-splotch {
			transform: scale(0.8);
		}
	}
}

/* No less than 427px, no greater than 768px */
@media (min-width: 427px) and (max-width: 768px) {
	.emailAdres {
		margin-left: -10%;
	}

	main {
		> :nth-child(1) {
			width: 60%;
		}

		> :nth-child(2) {
			margin-left: auto;
			margin-top: 32%;
			width: 70%;
		}

		> :nth-child(3) {
			width: 70%;
		}

		> * {
			padding: 0 40pt;
		}
	}

	section {
		width: calc(100% - 20pt);

		#photo {
			left: 84%;
			top: 28%;
			transform: scale(0.55) rotate(11.27deg);
		}

		#photo:hover {
			#background-tape {
				animation: none;
			}

			#background-photo-frame {
				animation: none;
			}

			p.flipped-text {
				opacity: 0;
				animation: none;
			}

			#background-carpet {
				opacity: 1;
				animation: none;
			}
		}
	}

	section img {
		position: absolute;

		&#background-splotch {
			transform: scale(0.5);
			position: absolute;
			top: 98%;
			width: 100%;
			left: -4%;
		}

		&#background-bike {
			left: 18%;
			top: 65%;
			transform: scale(0.4);
			z-index: 4;
		}

		&#background-cutout {
			left: -13%;
			top: 94%;
			transform: scale(0.5);
		}

		&#background-tape {
			transform: scale(0.2) rotate(-30deg);
			left: -102%;
			top: -66%;
			z-index: 3;
		}

		&#squirrels {
			display: none;
		}

		&#single-line {
			left: -74%;
			top: -111%;
			transform: scale(0.4) scaleX(1) rotate(200deg);
		}

		&#house-illustration {
			transform: scale(0.5);
			left: 69%;
			top: 231%;
		}

		&#heart-illustration {
			transform: scale(0.5);
			left: 63%;
			top: 97%;
		}
	}

	section {
		#photo {
			transform: scale(0.4) rotate(10deg);
			left: 55%;
			top:55%;
		}
	}
}
