/*
CSS controls the styling of the page.
You can write a color in directly, or use variables.
Try changing the color from blue to red in the
primary color variable below.
*/

:root {
	--color-primary: #2E2828;
	--color-secondary: #2E2828;
}

/*body {
	background: hsla(0, 44%, 57%, 1);
	background: linear-gradient(90deg, hsla(0, 44%, 57%, 1) 0%, hsla(345, 43%, 54%, 1) 100%);
}*/

body {
	background: hsla(0, 35%, 51%, 1);
	background: linear-gradient(90deg, hsla(0, 35%, 51%, 1) 0%, hsla(345, 43%, 54%, 1) 100%);
}

/* Navbar Styling */
.navbar {
	background-color: #CDB450;
	color: #2E2828;
	padding: 15px 20px;
	position: relative;
}

.navbar-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	flex-direction: row-reverse;
}

.nav-left a {
	margin-right: 15px;
	text-decoration: none;
	color: var(--color-primary);
	font-weight: bold;
	font-size: 16px;
	border-right: 1.5px solid var(--color-primary);
	padding-right: 10px;
}

.nav-left a:first-child {
	margin-left: 0;
}

.nav-left a:last-child {
	border-right: none;
}

.menu-icon {
	display: none;
	cursor: pointer;
	font-size: 24px;
	padding: 10px;
}

/* The dropdown nav menu for mobile */
.nav-links {
	display: none;
	flex-direction: column;
	background-color: #CDB450;
	padding: 10px;
	position: absolute;
	top: 60px;
	left: 15px;
	z-index: 1000;
	border-radius: 5px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.nav-links.show {
	display: flex;
}

.nav-links a {
	text-decoration: none;
	color: var(--color-primary);
	font-weight: bold;
	font-size: 16px;
	margin: 5px 0;
}

@media (max-width: 768px) {
	.menu-icon {
		display: block;
	}

	.nav-left {
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}
}

button {
	display: block;
	margin: 30px auto;
	background-color: var(--color-primary);
	color: white;
	font-size: 18px;
	font-weight: bold;
	padding: 15px 30px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

button:active {
	background-color: white;
}

/*
CSS doesn't allow variables to be used in media
queries just yet, but you can use these values
to help you out.

	--size-xs: 320px;
	--size-sm: 480px;
	--size-md: 768px;
	--size-lg: 1024px;
	--size-xl: 1200px;
*/

h1 {
	color: var(--color-primary);
	text-align: center;
	padding-top: 50px;
	margin-bottom: 10px;
}

h2 {
	color: var(--color-primary);
	text-align: center;
	padding-top: 20px;
	margin-top: 0;
	font-weight: bold;
}

h3 {
	text-align: center;
	color: var(--color-primary);
	font-size: 20px;
	font-weight: normal;
	margin-top: 20px;
}

h4 {
	color: var(--color-primary);
	text-align: center;
	font-size: 20px;
	font-weight: normal;
}

@media screen and (width >=320px) {
	.content-container {
		margin: 0 auto;
		max-width: 768px;
	}
}

/* Page Visibility Handling */
.page {
	display: none;
}

.page.active {
	display: block;
}

/* Question Container Styling */
#question-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 20px;
	opacity: 0;
	transition: opacity 0.8s ease;
}

#question-container.visible {
	opacity: 1;
}

/* Navigation Buttons Styling */
.nav-btn {
	margin-top: 20px;
	background-color: var(--color-secondary);
	color: white;
	font-size: 16px;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	border: none;
}

.nav-btn:hover {
	transform: scale(1.05);
	background-color: white;
}

/* Images for Questions */
.option-img {
	display: block;
	width: 80px;
	height: auto;
	margin: 10px auto;
	border-radius: 0;
	transition: transform 0.3s ease;
}

label.answer-option {
	width: 100%;
	max-width: 250px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 10px;
	cursor: pointer;
	gap: 4px;
}

label.answer-option input {
	margin: 0;
}

label.answer-option span {
	margin: 0;
	line-height: 1.2;
}

.option-img {
	margin: 0;
}

label.answer-option img {
	display: block;
}

label.answer-option:hover .option-img {
	transform: scale(1.1);
}

/* Poster Sizes */
.poster-img {
	width: 200px;
	height: auto;
	border-radius: 10px;
	display: block;
	margin: 10px auto;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.movie-result {
	text-align: center;
	margin: 20px 0;
}

.movie-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	margin: 30px auto;
	max-width: 1000px;
}

.movie-card {
	background-color: white;
	border-radius: 15px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	padding: 20px;
	width: 280px;
	text-align: center;
	transition: transform 0.3s ease;
}

.movie-card:hover {
	transform: translateY(-5px);
}

.movie-info {
	font-size: 14px;
	color: #444;
	margin-bottom: 10px;
}

.trailer-btn {
	background-color: black;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s ease;
}

.trailer-btn:hover {
	background-color: #333;
}

.retry-text {
	text-align: center;
	font-style: italic;
	margin-top: 20px;
	font-size: 14px;
}

.movie-genre {
	font-weight: bold;
	text-decoration: underline;
}

.nav-btn-group {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
}

#progress-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	margin: 30px auto;
	width: 90%;
	max-width: 600px;
	height: 30px;
}

#progress-bar::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	background-color: #2E2828;
	z-index: 0;
	transform: translateY(-50%);
}

.progress-step {
	width: 14px;
	height: 14px;
	background-color: white;
	border: 3px solid #2E2828;
	border-radius: 50%;
	z-index: 1;
	position: relative;
}

.progress-step.active {
	background-color: #2E2828;
}

#transition-page {
	background-color: transparent;
	display: none;
	justify-content: center;
	align-items: center;
	height: 100vh;
	overflow: hidden;
}

#transition-page.active {
	display: flex;
}

#poster-gallery {
	opacity: 0;
	transform: translateY(0);
	transition: transform 6s ease-in-out, opacity 3s ease-in;
	/* Adjust the duration of the transition */
}

#poster-gallery.flow-up {
	transform: translateY(-60%);
	opacity: 1;
}

.fact-poster {
	width: 200px;
	height: auto;
	display: block;
	margin: 10px auto;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.movie-fact ul li {
	color: var(--color-primary);
	margin-bottom: 1.2em;
	line-height: 1.5;
	font-size: 16px;
}

.movie-fact h3 {
	background-color: white;
	text-align: center;
	padding: 10px 15px;
	margin: 30px auto 10px;
	width: fit-content;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	font-size: 20px;
}
