#banner-wrapper {
	background-image: url("/projects/final_web_development_project/images/buffet.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	background-attachment: fixed;
	filter: brightness(1.1) contrast(0.9);
	flex-direction: column;
	gap: 20px;
}

#banner-wrapper:after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(49, 30, 14, 0.393);
	z-index: 1;
	backdrop-filter: blur(6px);
}

#banner-wrapper > * {
	position: relative;
	z-index: 2;
}

#banner-wrapper > h1 {
	color: white;
	font-size: 50px;
	width: max-content;
	font-weight: 900;
	text-align: center;
	margin-top: -30px;
}

#banner-wrapper > h3 {
	color: white;
	width: max-content;
	font-size: 18px;
	font-weight: 500;
	text-align: center;
}

#banner-wrapper > a {
	color: white;
	width: 40px;
	height: 40px;
	position: absolute;
	bottom: 40px;
}

#favorite-foods {
	padding-inline: 30px;
	box-sizing: border-box;
	padding-top: 225px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 250px;
}

#favorite-foods > ul {
	max-width: var(--max-w);
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 200px;
}

#favorite-foods > ul > li {
	display: flex;
	flex-direction: row;
	width: 100%;
	position: relative;
	max-width: 900px;
	gap: 50px;
}

#favorite-foods > ul > li > h2 {
	font-size: 30px;
	position: absolute;
	top: -75px;
}

.left > h2 {
	left: 0;
}

.right > h2 {
	right: 0;
}

.left,
.left > .description {
	margin-right: auto;
}

.right,
.right > .description {
	margin-left: auto;
}

.description {
	display: flex;
	flex-direction: column;
	gap: 38px;
	text-align: justify;
	max-width: 400px;
	width: 45%;
}

.description > ol {
	display: flex;
	flex-direction: column;
	gap: 5px;
	list-style-position: inside;
	width: max-content;
	list-style-type: decimal;
}

.description > p {
	hyphens: auto;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
}

.description > h3 {
	margin-bottom: -27px;
}

.right > .description > h3,
.right > .description > ol > li {
	text-align: right;
}

.description > ol > li {
	/* font-weight: 500; */
	/* font-style: italic; */
	display: list-item;
	/* font-size: 14px; */
}

.right > .description > p {
	text-align-last: right;
}

.right > .description > ol {
	margin-left: auto;
}

#favorite-foods > ul > li > img {
	width: 375px;
	height: 275px;
	border-radius: 20px;
	object-fit: cover;
	filter: brightness(0.95) contrast(0.9);
}

#yt-video-wrapper {
	scroll-margin-top: 86px;
	max-width: none !important;
	width: 100%;
	margin-top: -30px;
}

#yt-video-wrapper:after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background-color: rgb(241, 241, 241);
	height: 135%;
	width: 100vw;
	z-index: 1;
}

#yt-video-wrapper > iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16/9;
	max-height: 500px;
	z-index: 2;
	border-radius: 3px;
}

#link-to-yt-section {
	color: blue;
}

.vertical-line {
	width: 2px;
	border-radius: 1px;
	background-color: rgba(0, 0, 0, 0.1);
	align-self: stretch;
	margin-block: -25px;
	flex-shrink: 0;
	/* display: none; */
}

/* -- Next part was written with AI help -- */
/* -- DONT TOUCH I TWEAKED IT TO PIXEL PERFECTION -- */

#tableau-section {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding-block: 150px;
	padding-inline: 24px;
}

.tableau-responsive-wrapper {
	width: 100%;
	max-width: 1016px;
	aspect-ratio: 1100 / 1400;
	overflow: hidden;
	position: relative;
}

#tableau-iframe {
	width: 1100px;
	height: 1400px;
	border: none;
	position: absolute;
	transform-origin: top left;
}

/* --------------------------------------- */

#link-to-yt-section:hover {
	text-decoration: underline;
}

@media (max-width: 800px) {
	.vertical-line {
		display: none;
	}

	#favorite-foods > ul > li {
		flex-direction: column;
		align-items: center;
	}

	#favorite-foods > ul {
		gap: 175px;
		max-width: 600px;
	}

	.description {
		display: flex;
		flex-direction: column;
		text-align: justify;
		max-width: inherit;
		/* padding-inline: 15px; */
		width: auto;
	}

	.description > p {
		max-width: 600px;
	}

	.left > h2,
	.right > h2 {
		left: 0px;
	}

	#favorite-foods > ul > li > img {
		width: 100%;
		height: auto;
		aspect-ratio: 15/11;
		max-width: 600px;
	}

	.right {
		flex-direction: column-reverse !important;
	}

	.right > .description > p {
		text-align-last: left;
	}

	.right > .description,
	.right > .description > h3,
	.right > .description > ol > li,
	.right > .description > ol,
	.right > .description > p {
		margin-right: auto;
		left: 0;
		margin-left: 0;
	}

	#favorite-foods {
		padding-top: 175px;
	}

	#banner-wrapper {
		background-attachment: scroll;
	}

	#yt-video-wrapper {
		scroll-margin-top: 76px;
		margin-top: -10px;
		margin-bottom: 20px;
	}

	#yt-video-wrapper > iframe {
		aspect-ratio: 15/11;
	}

	#yt-video-wrapper:after {
		height: 150%;
	}

	#tableau-section {
		padding-block: 100px;
	}

	#banner-wrapper > h1 {
		font-size:46px;
	}

	#banner-wrapper > h3 {
		font-size: 16px;
	}
}
