:root {
	--card-width: 240px;
	--card-height: calc(var(--card-width) * 514 / 300);

	--color-orange: #f38020;
	--color-yellow: #fcc039;
	--color-light-blue: #68d3dd;
	--color-dark-blue: #249ab2;
}

::selection {
	background-color: var(--color-yellow);
}

body {
	background-color: var(--color-dark-blue);
	margin: 0;
	font-family: 'Rubik', sans-serif;
}

.top-container {
	align-items: center;
	background-color: var(--color-light-blue);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100vw;
}

.top-container:before {
	background-color: var(--color-light-blue);
	content: ' ';
	flex: 1;
	width: 100%;
}

.top-container:after {
	background-color: var(--color-dark-blue);
	content: ' ';
	flex: 1;
	width: 100%;
}

.title-section {
	position: relative;
}

.content {
	box-sizing: border-box;
	display: flex;
	gap: 55px;
	max-width: 1024px;
	padding: 16px 16px 0;
}

.main-title-container {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.main-title {
	font-family: 'Fredoka', sans-serif;
	font-size: 7.875rem;
	line-height: 1.1em;
	margin: 0;
	position: relative;
	inset-block-start: -30px;
	text-shadow: #fff 2px 2px;
	user-select: none;
}

.main-text {
	flex: 1;
}

.title-capsule {
	align-items: center;
	background-color: var(--color-yellow);
	border: 1.5px solid #000;
	border-radius: 45px;
	display: flex;
	font-size: 1.5625rem;
	font-weight: 500;
	padding: 13px 30px;
	justify-content: center;
	width: fit-content;
	white-space: nowrap;
}

.title-capsule.tilt-right {
	rotate: 3deg;
}

.title-capsule.tilt-left {
	rotate: -2deg;
	font-size: 1.8125rem;
	padding: 20px 70px;
	margin: 30px 0 20px;
}

.description-head {
	color: #fff;
	font-size: 1.5625rem;
	font-weight: 500;
	line-height: 2rem;
	margin-top: 62px;
}

.description-paragraph {
	color: #000;
	font-size: 1.375rem;
	line-height: 1.875rem;
	margin: 0 0 1.0625em;
	width: 100%;
}

.description-paragraph:last-child {
	margin: 0 0 0.7625rem;
}

.description-paragraph.bold {
	font-weight: 600;
}

.bottom-section {
	justify-content: center;
	background-color: var(--color-dark-blue);
	display: flex;
	width: 100%;
}

.cards-container {
	align-items: center;
	display: flex;
	inset-block-end: -16rem;
	justify-content: center;
	position: absolute;
	width: 320px;
}

.card {
	animation-fill-mode: forwards;
	border: 6px solid white;
	border-radius: 16px;
	box-shadow: 5px 5px 15px rgba(192, 192, 192, 0.5);
	display: none;
	height: var(--card-height);
	overflow: hidden;
	perspective: 3.5em;
	transform-style: preserve-3d;
	user-select: none;
	width: var(--card-width);
}

.card.current {
	animation: rotateInAndOut 5s ease-in-out 1;
	display: block;
	opacity: 0;
}

.card.current:after {
	animation: move-shadow 5s ease-in-out 1;
	animation-fill-mode: forwards;
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.4) 0,
		rgba(0, 0, 0, 0) 30%,
		rgba(0, 0, 0, 0) 70%,
		rgba(0, 0, 0, 0.4) 100%
	);
	background-size: 400%;
	content: ' ';
	display: block;
	height: 100%;
	position: relative;
	top: -100%;
	width: 100%;
}

.card-image {
	width: 100%;
}

.form-container {
	flex: 1;
	padding-right: 320px;
}

.little-print {
	color: #fff;
	font-size: 0.9375rem;
	margin: 0.5rem 0 2rem;
}

.desktop-only {
	display: block;
}

.mobile-only {
	display: none;
}

/* Omnisend form */

.ml-embedded {
	height: 114px;
	width: 100%;
}

.content #mlb2-6518253.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody, .content #mlb2-6518253.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody {
	padding: 0 !important;
}

.content #mlb2-6518253.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
	background-color: var(--color-orange) !important;
	border: 1.5px solid #000 !important;
	font-family: 'Rubik', sans-serif !important;
	font-size: 1.5625rem !important;
	height: 51px;
}

.content #mlb2-6518253.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit {
	margin: 0 0 10px;
}

.content #mlb2-6518253.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-formContent, .content #mlb2-6518253.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-checkboxRow {
	margin: 0 0 10px;
}

.content #mlb2-6518253.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input {
	height: 51px;
}

/* End Omnisend form */

@media only screen and (max-width: 800px) {
	.desktop-only {
		display: none;
	}

	.mobile-only {
		display: block;
	}

	.title-section {
		display: flex;
		justify-content: center;
		max-width: 400px;
		width: 100%;
	}

	.top-container {
		padding-top: 25px;
	}

	.content {
		align-items: center;
		flex-direction: column;
		gap: 0;
		padding: 0 20px;
		width: 100%;
	}
	
	.main-title-container {
		position: relative;
		inset-block-start: 16px;
		inset-inline-start: 10px;
		z-index: 100;
	}
	
	.main-title {
		font-size: 5.5rem;
		inset-block-start: -22px;
		text-align: center;
	}
	
	.title-capsule {
		font-size: 1.125rem;
		padding: 10px 25px;
	}

	.title-capsule.tilt-left {
		rotate: -2.5deg;
		font-size: 2.25rem;
		padding: 6px 50px;
		margin: 20px 0 20px;
	}
	
	.cards-container {
		--card-width: 145px;
		--card-height: calc(var(--card-width) * 514 / 300);
		
		flex: 1;
		position: relative;
		inset-block-end: 0;
		inset-inline-end: 20px;
		transform: translate3d(0, 0, 0); /* Solved Safari transition layering behavior */
	}

	.card {
		inset-block-start: 0;
		height: var(--card-height);
		width: var(--card-width);
	}

	.form-container {
		padding-right: 0;
	}

	.bottom-section {
		background-color: var(--color-light-blue);
	}

	.mobile-section {
		align-items: center;
		background-color: var(--color-dark-blue);
		display: flex;
		flex-direction: column;
	}

	.mobile-section .description-head, .mobile-section .description-paragraph {
		color: #fff;
	}

	.mobile-section .description-paragraph.bold {
		font-weight: 600;
	}

	.description-head {
		font-size: 1.1875rem;
		line-height: 1.5rem;
		margin: 30px 0 0.5em;
	}
	
	.description-paragraph {
		font-size: 1.1875rem;
		line-height: 1.5rem;
	}

	.description-paragraph:last-child {
		margin: 0 0 0.9em;
	}

	.little-print {
		font-size: 0.9375rem;
	}

	.content #mlb2-6518253.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
		border: 1px solid #000 !important;
	}
}

@keyframes rotateInAndOut {
	0% {
		box-shadow: 10px 5px 15px rgba(0, 0, 0, 0);
		transform: rotateX(10deg) rotateY(-90deg);
		opacity: 1;
	}
	10% {
		box-shadow: 10px 5px 15px rgba(0, 0, 0, 0.3);
		transform: rotateX(10deg) rotateY(-20deg);
	}
	90% {
		box-shadow: -10px 5px 15px rgba(0, 0, 0, 0.3);
		transform: rotateX(10deg) rotateY(20deg);
	}
	100% {
		box-shadow: -10px 5px 15px rgba(0, 0, 0, 0);
		transform: rotateX(10deg) rotateY(90deg);
		opacity: 1;
	}
}

@keyframes move-shadow {
	0% {
		background-position-x: 0;
	}
	100% {
		background-position-x: 100%;
	}
}