/* To-do: figure out why there is a right-hand margin on the page when shrinking */

figcaption {
	margin-top: 10%;
	margin-left: 10%;
	font-style: italic;
}


.button {
	position: relative;
	font-size: 2.5em;
	background-color: #3b3227;
	border-radius: 10px;
	min-width: fit-content;
	max-width: 10em;
	height: auto;
	padding: 0.5em;
	text-align: center;
}

a {
	color: inherit;
	text-decoration: inherit;
}

#gridBox {
	width: 80vw;
	height: 70vh;
	margin: auto;
	display: grid;
	align-items: center;
	justify-items: center;
	gap: 0 1em;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"image button1"
		"image button2"
		"image button3"
		"image button4";
}

#heroImage {
	grid-area: image;
	width: 100%;
}

#heroImage div {
	aspect-ratio: 1/1;
	background-image: url("graphics/jabberwocky_fade.png");
	background-repeat: no-repeat;
	background-size: contain;	
	max-height: 60vh;
}

.button:hover {
	box-shadow: 0px 0px 5px #b58341;
}

.damageOverlay {
	visibility: hidden;
	position: absolute;
	top: -50%;
	left: 30%;
	z-index: 5;
	height: 100%;
	width: 100%;
}

.damageOverlay img {
	max-width: 100%;
	max-height: 175%;
}

.button:hover .damageOverlay {
	visibility: visible;	
}

@media (max-width: 900px) {
	#gridBox {
		grid-template-columns: 1fr;
		grid-template-areas:
			"image"
			"button1" 
			"button2"
			"button3";

		gap: 2em;
	}

	.damageOverlay {
		height: 50%;
		top: -20%;
	}
}