: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;
}

.hp-page-container p {
	padding: 2vh 3vw;
	text-indent: 2rem;
}

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

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

h2 {
	/* text-align: center; */
	font-size: min(2.5rem, 10vw);
}

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

.hp-details .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;
	/* text-align: center; */
	transition: all 0.2s ease-in-out;
}

.hp-details .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 {
	height: max(14vw, 180px);
	width: max(21vw, 270px);
	padding: 0;
	margin: 0 0.5rem;
	border: 2px solid white;
	border-radius: 4px;
}

.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: 1rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #333;
	transition: transform 0.2s ease-in-out;
}

.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;
	text-indent: 1rem;
}

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

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

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

	.hp-block {
		flex-direction: column;
	}

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

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

	.hp-popup {
		width: 80vw;
	}
}
