/* Page layout */
body {
  margin: 0;
  background-image: url("../images/packdotpng.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: #eee;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

/* Title */
h1 {
  margin: 8px 0 16px;
  font-size: 20px;
  text-align: center;
}

#side-left {
  display: flex;
  flex-direction: column;
  gap: 12px;           /* space between Hold & Next */
  align-items: center; /* center them vertically under each other */
}

/* Game container */
#tetris-wrap {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  padding: 16px 10px;
  border-radius: 12px;

  background: rgba(0, 0, 0, 0.65); /* dark glass effect */
  backdrop-filter: blur(6px);

  box-shadow: 0 6px 20px rgba(0, 0, 0, 1.0);
}

/* Canvas styling */
#tetris-canvas {
  border: 2px solid #555;
  background: #000;
  image-rendering: pixelated;
  grid-column: 2;
}

/* Info panel */
#tetris-info {
  font-size: 14px;
  line-height: 1.5;
  max-width: 300px;
  grid-column: 3;
}

.score {
  margin: 4px 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.score.small {
  font-size: 13px;
  color: #ccc;
}

.preview-block {
  background: #191919;
  border-radius: 6px;
  padding: 6px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aaa;
  margin-bottom: 4px;
}

#hold-canvas,
#next-canvas {
  background: #000;
  border-radius: 4px;
  image-rendering: pixelated;
}

/* List styling */
#tetris-info ul {
  padding-left: 18px;
  margin: 6px 0 0;
}

.hint {
  margin-top: 6px;
  font-size: 12px;
  color: #bbb;
}

.game-over {
  color: #ff6161;
  font-weight: bold;
  margin-top: 8px;
}

#restart-btn {
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: #3a86ff;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: none; /* hidden until game over */
}

#restart-btn:hover {
  background: #2563d6;
}

