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

:root[data-theme="dark"] {
	--BLOCK-COLOR: #3f342e;
	--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;
}

.hp-page-container {
	font-family: "Nunito", Calibri, sans-serif;
	justify-content: center;
	position: relative;
	/* padding: 5vw; */
	font-size: min(1.2rem, 5vw);
	justify-items: center;
	/* margin-top: 6vh; */
}

.hp-page-container 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;
}

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

.hp-box {
	background-color: var(--BLOCK-COLOR);
	border-radius: 4px;
	margin: 5vh 5vw;
	width: 80vw;
	align-items: center;
	padding: 3rem;
}

.hp-box h2 {
	font-size: min(2.5rem, 10vw);
}

.hp-box p {
	margin: 1rem 0;
}

.hp-block {
	background-color: var(--BLOCK-COLOR);
	padding: 3rem;
	border-radius: 4px;
	margin: 5vh 5vw;
	width: 80vw;
}

.hp-block p {
	text-align: justify;
}

.hp-details {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.hp-details h2 {
	text-align: center;
	font-size: min(2.5rem, 10vw);
}

.hp-details h3 {
	text-align: center;
	font-size: min(2.2rem, 7vw);
	margin-bottom: 1rem;
}

.hp-popup h2 {
	text-align: center;
	font-size: min(2.5rem, 10vw);
}

.hp-popup h3 {
	text-align: center;
	font-size: min(2.2rem, 7vw);
	margin-bottom: 1rem;
}

.read-more {
	font-size: min(1.2rem, 6vw);
	border-radius: 0.3rem;
	padding: 0.6rem 2rem;
	width: fit-content;
	background-color: #f8f3e2;
	color: #26211f;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease-in-out;
	display: block;
	margin: 1.5rem auto 0 auto;
}

.read-more:hover {
	transform: scale(1.07);
}

.hp-images {
	align-content: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.hp-images img {
	max-height: max(45vh, 170px);
	max-width: max(55vw, 220px);
	padding: 0;
	margin: 0 0.5rem;
	border: 2px solid white;
	border-radius: 4px;
}

.img_and_storyline {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.onerow {
	display: flex;
	position: relative;
	/* gap: 5vw; */
	border-bottom: 3px solid var(--ACCENT-COLOR);
}

.onerow-first {
	display: flex;
	position: relative;
	/* gap: 5vw; */
	/* border-bottom: 3px solid var(--ACCENT-COLOR); */
}

.left-half-horizontal-line-hp {
	height: 3px;
	background-color: var(--ACCENT-COLOR);
	position: absolute;
	left: 0;
	top: 0;
	transform: translateY(-50%);
	width: 50%;
	z-index: -1;
}

.horizontal-line {
	height: 3px;
	background-color: var(--ACCENT-COLOR);
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	z-index: -1;
}

.top-half-vertical-line {
	position: absolute;
	top: 0;
	width: 3px;
	height: 50%;
	background-color: var(--ACCENT-COLOR);
}

.bottom-half-vertical-line {
	position: absolute;
	width: 3px;
	height: 50%;
	bottom: 0;
	right: 0;
	background-color: var(--ACCENT-COLOR);
}

.center-vertical-line-hp {
	position: absolute;
	top: -10vh;
	width: 3px;
	height: 10vh;
	background-color: var(--ACCENT-COLOR);
	right: 50%;
	z-index: -1;
}

.hp-page-container .onerow:last-child {
	border-bottom: none;
}

.hp-page-container .onerow:last-child .horizontal-line {
	width: 50%;
}

.hp-popup {
	position: fixed;
	top: 15%;
	left: 50%;
	transform: translateX(-50%);
	width: 65vw;
	max-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;
}

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

.hp-popup .close-btn:hover {
	transform: scale(1.2);
}

.hp-popup h4 {
	font-size: 1.2rem;
	margin: 1vh 0;
	font-weight: bold;
}

.hp-popup p {
	margin: 0.5rem 0;
}

.hp-popup ul,
.hp-popup ol {
	padding: 1vw 1vw 1vw 5vw;
}

.hp-popup li {
	margin: 3px 0;
}

.survey-images {
	width: 90vw;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 3rem 0;
	background-color: var(--BLOCK-COLOR);
	padding: 3rem 0;
	align-items: center;
}

.survey-image {
	max-width: max(40vw, 300px);
	margin: 0.5rem;
	border-radius: 0.2rem;
}

.survey-images p {
	margin: 0.5rem 3rem;
}

.intro-box {
	background-color: var(--BLOCK-COLOR);
	border-radius: 4px;
	margin: 5vh auto;
	width: 80vw;
	align-items: center;
	padding: 3rem;
}

.intro-box h2 {
	font-size: min(2.5rem, 10vw);
}

.intro-box p {
	margin: 1rem 0;
	text-indent: 2rem;
	font-family: "Nunito";
	font-size: min(1.2rem, 5vw);
}

.intro-box 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;
}

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

.tab-buttons-container {
	display: flex;
	justify-content: center;
}

.tab-buttons {
	width: 100%;
	/* position: absolute; */
	right: 1rem;
	z-index: 10;
	align-items: center;
	justify-content: center;
	display: flex;
	border: 3px solid var(--ACCENT-COLOR);
	border-radius: 0.5rem;
	width: fit-content;
}
.tab-buttons button {
	padding: 1rem 2rem;
	border: none;
	background-color: var(--BODY-BGCOLOR2);
	cursor: pointer;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 1.2rem;
	transition: all 0.2s ease;
	font-family: "Nunito";
}

.tab-buttons button:hover {
	color: var(--ACCENT-COLOR);
}
.tab-buttons button.active {
	background-color: var(--BODY-BGCOLOR);
}

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

	.intro-box {
		width: 90vw;
	}

	.hp-page-container {
		margin-top: 5vh;
	}

	.hp-block {
		flex-direction: column;
		padding: 1rem;
		width: 90vw;
		margin: 1vh 2vw;
	}

	.hp-box {
		width: 90vw;
		padding: 1rem;
		margin: 1vh 2vw;
	}

	.hp-details {
		width: 100%;
		margin-bottom: 1rem;
	}

	.hp-images img {
		margin: 0.5rem;
	}

	.img_and_storyline {
		flex-direction: column;
	}

	.hp-popup {
		width: 80vw;
	}

	.survey-images {
		flex-direction: column;
		padding: 1rem;
	}

	.survey-image {
		width: 80vw;
	}

	.tab-buttons {
		flex-direction: column;
	}

	.tab-buttons button {
		margin: 0.2rem 0;
	}

	.center-vertical-line {
		height: 87vh;
	}
}
