body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f5f5dc;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  position: relative; /* Added position relative to contain the pseudo-element */
}

/* Added the diamond pattern using a pseudo-element */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05; /* Adjust the opacity to make the pattern lighter or darker */
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 10px, #000 10px, #000 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, #000 10px, #000 20px);
  background-size: 20px 20px;
  z-index: -1; /* Ensure the pattern appears behind the game container */
}

#gameTitle {
  font-family: 'Creepster', cursive;
  font-size: 6vw;
  color: green;
  text-shadow: 2px 2px darkgreen;
  margin-bottom: 10px;
}

#gameContainer {
  position: relative;
  width: 90vw;
  max-width: 800px;
  height: calc(90vw * 0.75);
  max-height: 600px;
  border: 10px solid #C57600;
  box-sizing: content-box;
}

#gameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#scoreBoard {
  margin-top: 10px;
}

#controls {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

#pauseBtn, #slowBtn, #normalBtn, #fastBtn {
  padding: 5px;
}

#gameOverScreen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#credits {
  font-size: 12px;
  margin-top: 10px;
  color: #666;
}