* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	color: white;
}

:root {
	--background-color: #222222;
	--main-color: #fbcb29;
	--btn-color: #2cab00;
}

body {
	background-color: var(--background-color);
	font-family: 'Roboto', sans-serif;
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

header {
	display: grid;
	place-content: center;
	padding: 24px;
}

section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	text-align: center;
	width: 1200px;
	max-width: 90%;
	margin: 0 auto;
}

section > * {
	max-width: 90%;
}

.hl {
	text-transform: uppercase;
	color: var(--main-color);
	font-weight: 900;
}

.text-x {
	font-size: calc(1em + 4px);
}

.home {
	flex: 1;
	font-size: 20px;
}

.logo-brazzers {
	width: 240px;
}

button {
	text-transform: uppercase;
	text-transform: uppercase;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 24px;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
	text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
	border-radius: 8px;
	border: none;
	cursor: pointer;
	padding: 12px;
	max-width: 90%;
}

button:hover {
	filter: brightness(110%) contrast(110%);
}

.btn--green {
	background-color: var(--btn-color);
	padding-inline: 20px;
}

/* Steps */
.steps {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-self: center;
	justify-content: center;
	align-items: center;
	gap: 16px;
}

.steps,
.step:not(.active),
.thank-you {
	display: none;
}

.steps,
.step {
	flex: 1;
}

.steps-footer {
	display: grid;
	place-content: center;
	padding: 24px;
}

/* Progress bar */

.progress {
	width: 640px;
	max-width: 90%;
	height: 5px;
	border-radius: 4px;
	background-color: black;
}

.progress-bar {
	height: 100%;
	width: 0%;
	border-radius: 4px;
	background-color: var(--main-color);
	background-image: linear-gradient(
		to bottom,
		var(--main-color),
		rgba(251, 203, 41, 0.5)
	);
	transition: all 0.4s ease;
}

.step p {
	font-weight: 300;
	font-size: 20px;
}

/* Cards */

.cards {
	width: 100%;
	display: flex;
	gap: 12px;
}

.card {
	position: relative;
	flex: 1;
	width: 33.33%;
	overflow: hidden;
	cursor: pointer;
}

.card::before {
	content: '';
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 9;
	transition: all 0.4s ease;
}

.card__logo,
.card__text {
	position: absolute;
	z-index: 99;
}

.card__logo {
	top: 8px;
	width: 80%;
	display: flex;
	align-items: center;
}

.card__logo > img {
	width: 100%;
}

.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.4s ease;
}

.card__text {
	bottom: 8px;
	text-transform: uppercase;
	font-weight: 500;
}

.card:hover::before {
	opacity: 0;
}

.card:hover .card__text {
	display: none;
}

.card:hover .card__img {
	transform: scale(1.125);
}

/* Buttons (section) */
.buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.btn--choice {
	background-color: var(--main-color);
	color: black;
	width: 400px;
}

.btn--choice:hover {
	background-color: #98780b;
}

/* Thank you section */
.thank-you {
	flex: 1;
}

.logo-with-gift {
	min-height: 124px;
	position: relative;
	display: flex;
	align-items: center;
}

.logo-shade {
	width: 100%;
	z-index: 999;
}

.logo-gift {
	width: 144px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.earned {
	text-transform: uppercase;
	font-weight: 500;
}

.form--tracking {
	width: 100%;
}

@media only screen and (max-width: 1023px) {
	.card__logo,
	.card__text {
		left: 50%;
		transform: translateX(-50%);
	}
}

@media only screen and (min-width: 1024px) {
	.home,
	.step p,
	.thank-you h2 {
		font-size: 40px;
	}

	.logo-brazzers {
		width: 560px;
	}

	button {
		font-size: 40px;
	}

	.card__logo {
		right: 16px;
	}

	.card__text {
		left: 16px;
		font-size: 24px;
	}

	.thank-you p,
	.thank-you h3 {
		font-size: 32px;
	}
}

@media only screen and (min-height: 800px) {
	.progress {
		margin-top: 64px;
	}
}

@media only screen and (max-height: 799px) and (min-width: 960px) {
	.step:has(.cards) {
		width: 840px;
	}

	.logo-brazzers {
		width: 400px;
	}

	.home,
	.step p,
	.thank-you h2 {
		font-size: 32px;
	}

	.thank-you {
		gap: 20px;
	}
}
