/* Styles for the responsive 3x7 floor grid and click timestamp display. */
body {
  margin: 0;
  padding: 24px;
  font-family: Arial, sans-serif;
  background-color: #0b2f16;
  color: #9dffb8;
}

.grid-wrapper {
  width: 100%;
}

#last-clicked-time {
  margin: 0 0 10px;
  color: #9dffb8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(64px, auto));
  gap: 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid #9dffb8;
}

.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  border-right: 1px solid #9dffb8;
  border-bottom: 1px solid #9dffb8;
  font-size: clamp(12px, 2.2vw, 18px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  color: #9dffb8;
}

.cell:nth-child(7n) {
  border-right: 0;
}

.cell:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.header {
  font-weight: bold;
}

@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .grid {
    grid-template-rows: repeat(3, minmax(56px, auto));
  }

  .cell {
    padding: 6px;
    font-size: 12px;
  }
}