/* Create a responsive, centered, three-column grid. */
.card-container {
	align-items: start;
	display: grid;
	grid-gap: 16px;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 100px;
	margin-bottom: 100px;
}

.card-description {
	font-size: 18px;
	padding: 0 16px;
	margin: 10px 0;
}

.card {
	background-color: rgb(0, 87, 255);
	border-radius: 5px;
	color: white;
	padding: 24px 16px 16px;
	text-align: center;
	text-shadow: 1px 1px 0 #555;
	min-height: 600px;
	display: flex;
	flex-direction: column;
}

.card h3 {
	margin: 10px 0;
	font-size: 1.3em;
}

/* Fix for card images */
.card img {
	width: 200px;
	max-width: 100%;
	height: auto;
	max-height: 180px;
	object-fit: contain;
	margin: 15px auto;
	display: block;
	/* Force Safari to respect sizing */
	min-width: 0;
	min-height: 0;
	flex-shrink: 0;
}
.fas {
	font-size: 40px;
	margin-bottom: 10px;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
	.card-container {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.card img {
		max-width: 75%;
		max-height: 200px;
	}
}

@media screen and (max-width: 768px) {
	.card-container {
		grid-template-columns: 1fr;
		margin-top: 50px;
		margin-bottom: 50px;
	}
	
	.card {
		min-height: auto;
	}
	
	.card img {
		max-width: 80%;
		max-height: 220px;
	}
	
	.card-description {
		font-size: 16px;
	}
}

@media screen and (max-width: 480px) {
	.card img {
		max-width: 90%;
		max-height: 180px;
	}
	
	.card-description {
		font-size: 14px;
	}
}

@media (prefers-color-scheme: dark) {
	html {
		background-color: #111;
		color: #fff;
	}
}