* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 80%;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 250px 1fr;
}

nav {
  height: auto;
  max-height: 95vh;
  width: 100%;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 20px 40px 20px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  font-family: "Courier New", Courier, monospace;
  color: #333;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
}
nav::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: linear-gradient(-45deg, transparent 8px, #f9f9f9 8px), linear-gradient(45deg, transparent 8px, #f9f9f9 8px);
  background-size: 16px 16px;
  z-index: 2;
}

#thumbnails {
  display: flex;
  justify-content: center;
  padding: 10px;
}
#thumbnails canvas {
  background: #f9f9f9;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 5px;
}

nav h1 {
  font-size: 1.2rem;
  text-align: center;
  border-bottom: 2px dashed #333;
  padding-bottom: 10px;
  text-transform: uppercase;
}

#history-list, #best-score-display {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
}

/* Unifying the style: History and Best Score items now look the same */
.history-item, .best-item-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dotted #999;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.best-item-row strong {
  font-size: 1.1rem;
  color: #000;
}

/* Customizing the scrollbar for a cleaner look */
#history-list::-webkit-scrollbar {
  width: 6px;
}

#history-list::-webkit-scrollbar-thumb {
  background: #39363b;
  border-radius: 10px;
}

main {
  min-height: 100vh;
  width: 100%;
  grid-column: 2;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#board {
  margin: 20px auto;
  width: 60%;
  height: 90%;
  display: block;
  border: 1px solid black;
}

#game-overlay {
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  color: white;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#game-overlay.hidden {
  display: none;
}
#game-overlay .button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
}/*# sourceMappingURL=main.css.map */