:root {
	--BODY-LINK-HOVER: #ff69b477;
	--BLOCK-HOVER: #d1cab4;
	--BODY-BG: url("https://static.igem.wiki/teams/5645/wiki-images/body/body-lightmode-bg.webp");
}

:root[data-theme="dark"] {
	--BLOCK-HOVER: #4f4440;
	--BODY-BG: url("https://static.igem.wiki/teams/5645/wiki-images/body/body-darkmode-bg.webp");
}

body {
	background-image: var(--BODY-BG);
	color: var(--BODY-COLOR);
	overflow-x: hidden;
}

.engineering-page-container {
	display: flex;
	font-family: "Nunito", Calibri, sans-serif;
	justify-content: center;
}

main {
	width: 75vw;
	background-color: var(--BODY-BGCOLOR);
	padding: 2vw;
	margin: 0 auto;
}

main p {
	text-indent: 2rem;
}

h2 {
	font-size: min(3rem, 7vw);
	margin: 1rem 0;
}

h3 {
	font-size: min(2rem, 5vw);
	text-indent: 1rem;
}

.iteration-tab {
	background-color: var(--BODY-BGCOLOR2);
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 1vw 3vw;
	align-items: center;
	cursor: pointer;
	margin: 1vh 0;
	transition: all 0.2s ease-in-out;
	border-radius: 4px;
}

.iteration-tab:hover {
	background-color: var(--BLOCK-HOVER);
}

.iteration-tab h4 {
	font-size: min(1.7rem, 4vw);
	display: flex;
	align-items: center;
	font-family: "Nunito", Calibri, sans-serif;
	font-weight: 500;
}

.iteration-tab .learn-more {
	font-size: 3rem;
	padding: 0 0.5rem;
	font-family: "Times New Roman", Times, serif;
	font-weight: 900;
}

.engg-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.1);
	z-index: 5;
	display: none;
}

.iteration-details {
	position: fixed;
	top: 15%;
	left: 50%;
	transform: translateX(-50%);
	width: 85vw;
	height: 80vh;
	padding: 3vw;
	background-color: var(--BODY-BGCOLOR);
	border-radius: 8px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	z-index: 100;
	display: none;
	overflow-y: auto;
	scrollbar-width: none;
}

.iteration-details.active {
	display: block;
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 1.5rem;
	background: none;
	border: none;
	cursor: pointer;
	color: #555555;
}

@media screen and (max-width: 850px) {
	body {
		background-position: left;
	}
}
