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

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

.education-content {
	width: 70vw;
	margin: 1rem auto;
	background-color: var(--BODY-BGCOLOR);
	padding: 3vh 3vw;
	border-radius: 10px;
}

.education-content .counter-container {
	text-align: center;
	margin: 2rem 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
}

.education-content .statistic {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.education-content .counter-container h3 {
	font-size: min(3rem, 9vw);
}

.education-content .statistic h3.counter-number {
	font-size: min(6rem, 18vw);
}

.education-content .counter-container h3 span {
	border-bottom: 3px solid var(--ACCENT-COLOR);
}

.education-content p {
	font-family: "Nunito";
	font-size: min(4.4vw, 1.2rem);
	margin: 1.2rem 0.5rem;
}

.education-content h2 {
	text-indent: 1.5rem;
	font-size: min(2.5rem, 7vw);
	margin-bottom: 1rem;
	border-bottom: 2px var(--BODY-BGCOLOR2) solid;
}

.education-content h3 {
	padding: 1.5rem 0 0.5rem 0.5rem;
	font-size: min(2rem, 5vw);
}

.education-images-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	width: 100%;
	border-radius: 10px;
	margin: 2rem 0;
}

.education-images-container img {
	width: 25vw;
	margin: 0.5rem 1rem;
	border-radius: 0.5rem;
}

.education-images-container figure {
	position: relative;
}

.education-images-container figcaption {
	font-family: "Nunito";
	position: absolute;
	color: beige;
	width: 25vw;
	background-color: #292421dd;
	margin: 0.5rem 1rem;
	bottom: 0;
	padding: 10px;
	text-align: center;
	border-radius: 0 0 9px 9px;
	margin-bottom: 11.5px;
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
}

.education-images-container figure:hover figcaption {
	opacity: 1;
}

.educational-tools-block {
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 2rem auto;
	flex-wrap: wrap;
}

.educational-tools-block .ppt-iframe {
	width: 55vw;
	height: 35vw;
}

.educational-tools-block .pdf-iframe {
	width: max(40vw, 300px);
	height: max(56vw, 400px);
}

.center-a-div {
	display: flex;
	justify-content: center;
}

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

	.education-content {
		width: 90vw;
	}

	.education-images-container {
		flex-direction: column;
	}

	.education-images-container img {
		width: 100%;
		margin: 0.5rem 0;
	}

	.education-images-container figcaption {
		width: 100%;
		margin: 0;
		margin-bottom: 11.5px;
	}

	.educational-tools-block .ppt-iframe {
		width: 80vw;
		height: 40vw;
	}
}
