body,
html {
	margin: 0;
	padding: 0;
	height: 100%;
	background-color: black;
	color: white;
	font-family: "Montserrat", sans-serif;
}

.container {
	position: relative;
	font-family: "Montserrat", sans-serif;
}

.container::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 70vh;
	background: url("../emotion_detector/arduino setup.png") center/cover no-repeat;
	opacity: 0;
	z-index: 1;
	transition: opacity 1.5s ease-in-out;
}

.container.reveal::before {
	opacity: 0.3;
}

.header-text {
	position: relative;
	z-index: 2;
	color: white;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 70vh;
	/* match background height */
}

.header-text h1 {
	font-weight: 600;
	font-size: 5vw;
}

.about-dbf {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: flex-start;
	padding: 60px 40px;
	gap: 40px;
	font-family: "Montserrat", sans-serif;
}

/* Force two equal columns */
.about-dbf>div {
	flex: 1 1 50%;
	max-width: 50%;
	box-sizing: border-box;
}

.left-column {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

.left-column img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.left-column,
.right-column {
	opacity: 0;
	transform: translateY(50px);
	/* start slightly down */
	transition: all 0.8s ease-out;
}

.left-column.slide-in,
.right-column.slide-in {
	opacity: 1;
	transform: translateY(0);
	/* back to original position */
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 768px) {
	.about-dbf {
		flex-direction: column;
	}

	.about-dbf>div {
		max-width: 100%;
		flex: none;
	}
}

.image-gallery {
	width: 90%;
	margin: 40px auto 80px auto;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

/* Image and caption container */
figure {
	margin: 0;
	text-align: center;
}

figcaption {
	font-style: italic;
	font-size: 0.9em;
	color: #ccc;
	margin-top: 8px;
}

/* Side-by-side layout for last two images */
.side-by-side-images {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
	/* Allows wrapping on small screens */
}

.side-by-side-images figure {
	flex: 1;
	max-width: 48%;
}

/* Make sure images behave as before */
.image-gallery img {
	width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
	opacity: 0;
	transition: all 0.8s ease-out;
}

/* Sliding animation */
.slide-left {
	transform: translateX(-100px);
}

.slide-right {
	transform: translateX(100px);
}

.slide-left.visible,
.slide-right.visible {
	opacity: 1;
	transform: translateX(0);
}
