body {
  font-family: sans-serif;
  text-align: center;
  padding-top: 20px;
}

#controls-top {
  margin-bottom: 12px;
}

#session-info {
  margin-left: 12px;
  font-weight: bold;
}

/* Time Gauge */
#time-bar-container {
  width: 320px;
  height: 20px;
  border: 1px solid #aaa;
  background-color: #ddd;
  margin: 12px auto;
  border-radius: 8px;
  overflow: hidden;
}

#time-bar {
  height: 100%;
  width: 100%;
  background-color: #4caf50; /* green */
  transition: width 0.2s linear, background-color 0.2s linear;
}

#grid-container {
  width: 320px;
  height: 320px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 auto;
}

.grid-cell {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: background-color 0.15s;
}

.grid-cell.active {
  background-color: yellow;
}

.grid-cell.correct {
  background-color: #b6f5b6; /* green */
}

.grid-cell.wrong {
  background-color: #f5b6b6; /* red */
}

#buttons {
  margin-top: 18px;
}

#buttons button {
  font-size: 18px;
  margin-right: 8px;
  padding: 8px 14px;
}

#info {
  margin-top: 12px;
  font-size: 16px;
}

#result {
  margin-top: 8px;
  font-size: 18px;
  font-weight: bold;
}

#score-table {
  margin: 20px auto;
  border-collapse: collapse;
  width: 80%;
  font-size: 16px;
}

#score-table th, #score-table td {
  border: 1px solid #aaa;
  padding: 8px 12px;
}

#score-table th {
  background-color: #ddd;
}
