* {
  font-family: monospace
}

body {
  background: #fff;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 32px;
}

main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.canvas-container {
  flex: 1 0 auto;
}

canvas {
  max-width: 100%;
  max-height: 90%;
  object-fit: contain;
}

.no-cursor {
	cursor: none;
}

.metadata {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  max-width: min(600px,100%);
}

.metadata p {
  margin: 0;
  text-align: center;
}

.overlay {
  color: #000;
  background: #fff;
	display: flex;
  opacity: 1;
  flex-direction: column;
  z-index: 2;
	font-size: 1em;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 15vmin;
}

.overlay p {
  text-align: center;
	max-width: 800px;
}

#loading img {
  image-rendering: pixelated;
  width: 64px;
  height: 64px;
}

.hide {
  display: none;
}