@charset "UTF-8";

/**
Essay-card and construction-card grid. Loaded only on pages that display a
card index (html/index.html, html/misc/hosted/CPR.html).
*/

.essay-card-container {
	position: relative;
	display: flex;
	justify-content: center;
	font-size: 1.2em;
}
.essay-card-container a, .essay-card-container a:hover {
	color: black;
	text-decoration: none;
}

div.essay-card-container {
	flex-wrap: wrap;
	gap: 1.8rem;
	justify-content: space-between;
	width: 70%;
	left: 15%;
}
div.essay-card-container > div {
	flex: 1 1 auto;
	justify-content: center;
	display: flex;
	flex-direction: column;
	width: -moz-max-content;
	width: max-content;
}
div.essay-card-container .hovertip {
	border: none;
	color: #550000;
}
div.essay-card-container .hovertiptext {
	left: 0;
	width: 100%;
	top: initial;
	z-index: -10;
	visibility: hidden;
	bottom: unset;
}

.essay-card {
	position: relative;
	flex: 1 1 auto;
	z-index: 1;
	font-size: 1.6em;
	font-weight: 500;
	font-family: var(--card-font);
	font-variant: small-caps;
	scale: 1;
	margin-bottom: 1rem;
	padding: 0.5em;
	border-radius: 0.5em;
	text-align: center;
	border: 2px solid #555;
	text-shadow: 0px 0px 1px white, 0px 0px 3px white, 0px 0px 5px white;
	transform: translateY(0px);
	transition: scale 0.3s ease-in-out, transform 0.3s ease-in-out, color 0.3s ease-in-out;
}
.essay-card:hover {
	transition: scale 0.15s ease-in-out, transform 0.15s ease-in-out, color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
	scale: 1.05;
	transform: translateY(-5px);
	color: white;
	text-shadow: 0px 0px 3px black, 0px 0px 1px black, 0px 0px 5px black;
}
.essay-card:hover .essay-card-bg {
	filter: saturate(120%) opacity(100%) contrast(100%) brightness(100%);
	transition: filter 0.2s ease-in-out;
}

.essay-card-bg {
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 0.5em;
	background-clip: border-box;
	background-size: cover;
	background-position: 0% 45%;
	filter: contrast(100%) saturate(90%) opacity(50%);
	transition: filter 0.3s ease-in-out;
}
