.minimap-container {
  display: flex;
  margin: 8px;
  justify-content: center;
  align-items: center;
}

.minimap-wrapper {
  height: 160px;
  display: block;
  position: relative;
}

.minimap-wrapper canvas {
  background-color: black;
}

.minimap-wrapper .crosshair {
  /* The marker of the player must not catch clicks meant for the minimap (click = walk there) */
  pointer-events: none;
  position: absolute;
  left: 76px;
  top: 72px;
  color: white;
}

.minimap-wrapper .button-stack {
  position: absolute;
  width: 18px;
  height: 160px;
  padding: 4px;
  top: 0px;
  right: 4px;
}
/* The minimap is 120 pixels high and as wide as its column (client/src/minimap.js) */
.minimap-wrapper {
  height: 120px;
}

.minimap-container {
  justify-content: stretch;
}

.minimap-wrapper {
  width: 100%;
}

.minimap-wrapper canvas {
  display: block;
  margin: 0 auto;
}

/* The marker of the player in the middle of the minimap */
.minimap-wrapper .crosshair {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.minimap-wrapper .button-stack {
  height: 120px;
  padding: 2px;
  right: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.minimap-wrapper .button-stack button {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 1px 0;
  font-size: 9px;
  line-height: 16px;
}
