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

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

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; */
	width: 75vw;
	background-color: var(--BODY-BGCOLOR);
	padding: 2vw;
	margin: 0 auto;
	font-size: min(4vw, 1.2rem);
	border-radius: 0.5rem;
}

.engineering-page-container p {
	margin: 0 0.5rem;
}

.engineering-page-container h2 {
	font-size: min(3rem, 7vw);
	margin: 2rem 0 0;
	text-indent: 1rem;
	border-bottom: 2px var(--BODY-BGCOLOR2) solid;
}

.engineering-page-container h3 {
	font-size: min(2rem, 5.5vw);
	margin: 2rem 0 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.5rem, 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;
}

.iteration-details h2 {
	text-align: center;
	margin: 0.5rem 0;
	border: none;
}

.iteration-details h3 {
	margin: 0.8rem 0;
}

.iteration-details p,
.iteration-details ul,
.iteration-details ol {
	margin: 0.8rem 0.5rem;
}

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

.close-btn:hover {
	color: var(--ACCENT-COLOR);
}

.DBTL-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.DBTL-animation-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 1rem;
}

.DBTL-progress {
	margin: 1rem;
	--SIZE: 100px;
	--BG-COLOR: #88888866;
	--PROGRESS-COLOR: var(--ACCENT-COLOR);
	--PROGRESS: 0; /* default value if not overridden inline */

	width: var(--SIZE);
	height: var(--SIZE);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: conic-gradient(
		var(--PROGRESS-COLOR) calc(var(--PROGRESS) * 1%),
		var(--BG-COLOR) 0
	);
	position: relative;
}

.DBTL-inner-circle {
	position: absolute;
	--SIZE: 100px;
	--THICKNESS: 25px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	/* z-index: 500; */
	width: calc(var(--SIZE) - var(--THICKNESS));
	height: calc(var(--SIZE) - var(--THICKNESS));
	border-radius: 50%;
	background-color: var(--BODY-BGCOLOR);
}

.DBTL-animation-middle {
	display: flex;
	align-items: center;
	transform: translateX(0.5rem);
}

.DBTL-animation-text {
	font-size: min(1rem, 3vw);
}

.progress-dot {
	position: absolute;
	width: 20px;
	height: 20px;
	background-color: orange;
	/* background-image: url("http://127.0.0.1:5500/pepper.png"); */
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform-origin: 50% 50%;
	pointer-events: none;
	/* box-shadow: black 0 0 1px 2px; */
	/* transform: translate(-50%, -50%) translateY(-43.75px); */
}

.DBTL-content-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.left-arrow,
.right-arrow {
	position: relative;
	width: 0;
	height: 0;
	border-top: 1.2rem solid transparent;
	border-bottom: 1.2rem solid transparent;
}

.left-arrow::after,
.right-arrow::after {
	position: absolute;
	content: "";
	width: 0;
	height: 0;
	border-top: 0.8rem solid transparent;
	border-bottom: 0.8rem solid transparent;
	top: 50%;
}

.left-arrow {
	border-right: 1rem solid var(--ARROW-COLOR);
}

.left-arrow::after {
	border-right: 0.8rem solid var(--BODY-BGCOLOR);
	left: 0;
	transform: translate(0.25rem, -50%);
}

.right-arrow {
	border-left: 1rem solid var(--ARROW-COLOR);
}

.right-arrow::after {
	border-left: 0.8rem solid var(--BODY-BGCOLOR);
	right: 0;
	transform: translate(-0.25rem, -50%);
}

.DBTL-content {
	width: max(250px, calc(66vw - 12rem));
	height: 61vh;
	background-color: var(--BODY-BGCOLOR2);
	border-radius: 10px;
	margin: 1vh 1vw;
	padding: 1vh 1vw;
	overflow-x: hidden;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.DBTL-part {
	min-width: calc(66vw - 12rem);
	height: 100%;
	overflow-y: auto;
	transition: transform 0.4s ease-in-out;
	padding: 0 calc(1.5rem + 1vw);
}

.DBTL-part h3 {
	font-size: min(2.5rem, 8vw);
}

.DBTL-part a {
	color: var(--BODY-COLOR);
	text-decoration: none;
	box-shadow: inset 0 -0.2rem 0 var(--ACCENT-COLOR);
	transition-property: box-shadow;
	transition-duration: 0.5s;
	padding: 0 0.2rem;
	margin: 0 0 0 0.1rem;
	border-radius: 0.2rem;
	overflow-wrap: break-word;
}

.DBTL-part a:hover {
	box-shadow: inset 0 -1.7rem 0 var(--BODY-LINK-HOVER);
	transition-property: box-shadow;
	transition-duration: 0.5s;
}

.DBTL-part table {
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 0.5rem;
	border: 1px solid var(--BODY-COLOR);
	overflow-x: auto;
}

.DBTL-part td,
.DBTL-part th {
	padding: 0.8rem;
	border: 1px solid var(--BODY-COLOR);
}

.DBTL-part th {
	font-weight: bold;
}

.DBTL-part th:first-child {
	border-top-left-radius: 0.5rem;
}

.DBTL-part th:last-child {
	border-top-right-radius: 0.5rem;
}

.DBTL-part tr:last-child td:first-child {
	border-bottom-left-radius: 0.5rem;
}

.DBTL-part tr:last-child td:last-child {
	border-bottom-right-radius: 0.5rem;
}

figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem 0;
}

figcaption {
	text-align: center;
	color: gray;
}

figure img {
	max-width: max(80%, 300px);
}

.table-caption {
	text-align: left;
	align-self: flex-start;
}

@media screen and (max-width: 1050px) {
	.DBTL-content {
		margin: 1vh 0.8rem;
		width: calc(80vw - 3rem);
		height: 40vh;
	}

	.DBTL-part {
		min-width: calc(80vw - 3rem);
	}
}

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

	.engineering-page-container {
		width: 100%;
		margin: 0;
		border: none;
		border-radius: 0;
		padding: 4vh 2vw;
	}
}
