html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto 1fr;
  image-rendering: pixelated;
  will-change: transform;
  background: linear-gradient(to bottom, #1b3f6e, #0e2248, #050e1f);
}

#tank {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: var(--world-width) / var(--world-height);
  width: min(100vw, 100vh * (var(--world-width) / var(--world-height)));
  height: min(100vh, 100vw * (var(--world-height) / var(--world-width)));
}

#tank canvas {
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
}


#tooltip {
  position: fixed;
  display: none;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-family: monospace;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1000;
  white-space: pre;
}


body .rock {
  width: 100%;
  height: 100%;
  grid-row: 2 / 3;
  background-size: auto 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  z-index: 100;
}

.left {
  grid-column: 1;
  background-image: url('./backgrounds/rock_front_left.png');
  background-position: bottom right;
}

.right {
  grid-column: 3;
  background-image: url('./backgrounds/rock_front_right.png');
  background-position: bottom left;
}