html,
body {
  margin: 0;
  height: 100%;
  background: #222;
  overflow: hidden;
  font-family: "Trebuchet MS", sans-serif;
}

body {
  display: block;
  position: relative;
}

canvas {
  display: block;
  background: #000;
  image-rendering: pixelated;
}

.hidden {
  display: none !important;
}

.pause-menu-background {
  background: rgba(0, 0, 0, 0.7);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
}

.pause-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  width: min(384px, 90vw);
  height: min(640px, 80vh);
  background-image: url("assets/ui/pausemenubackground.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding-top: 80px;
}

.pause-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  image-rendering: pixelated;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ui-button {
  border: 2px solid #23321a;
  width: 140px;
  height: 40px;
  background: #979797;
  color: #000000;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #23321a;
}

.ui-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #23321a;
}

.fullscreen-button {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: block;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent url("assets/uiAtlas.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 64px 64px;
  image-rendering: pixelated;
  box-shadow: none;
  appearance: none;
}

.fullscreen-button.is-fullscreen {
  background-position: -32px 0;
}

.fullscreen-button:active {
  transform: none;
  box-shadow: none;
}
