body {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	width: 100vw;
	margin: 0;
	background-color: #f0f0f0;
	position: relative;
	overflow: hidden;
}
canvas {
	width: 100vw;
	height: 100vh;
	image-rendering: pixelated;
}
.tile-label {
	position: absolute;
	/*background: rgba(255, 255, 255, 0.7);
	border: 1px solid #000;
	padding: 2px 5px;*/
	font-size: 12px;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

#player-fight{
	position: fixed;
	top:0;
	left:0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,.9);
	z-index: 10000000;
	display: none;
}
#player-fight .grid{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10vw;
	margin: 10vw;
	color: white;
}
#player-fight .grid .attacker,
#player-fight .grid .defender{
	background: rgba(255,255,255,.1);
}
.attacker .health,
.defender .health{
	width: 100%;
	height: 1em;
	background: green;
}
.attacker .stamina,
.defender .stamina{
	width: 100%;
	height: 1em;
	margin: 1em 0;
	background: lightblue;
}
.log p{
	margin-top: .5em;
}

.button{
	display: inline-block;
	padding: 10px;
	background: orange;
	color: white;
}