/* styles.css */
body {
  background-color: #6c7404;
  font-family: Arial, sans-serif;
}
/* canvas */
#gameBoard {
  position: relative;
  background-color: azure;
  border: 3px solid #000000;
  border-radius: 10px;
  text-align: center;
  margin: 0 auto;
  margin-top: 50px;
  width: 600px;
  height: 600px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

#scoreDisplay {
  display: flex;
  justify-content: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 3rem;
  font-weight: bold;
  align-items: center;
  height: 4rem;
  margin-top: 1rem, 2rem, 2rem, 2rem;
}

#btnSpace {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: auto;
  margin: auto;
}

#restartBtn {
  width: 200px;
  font-size: 1.5rem;
  font-weight: bold;
  background-color: #4caf50;
  color: white;
  border: bisque;
  border-radius: 10px;
  padding: 10px 10px;
  cursor: pointer;
  margin: 2rem;
}

#restartBtn:hover {
  background-color: #45a049;
}

#restartBtn:disabled {
  background-color: azure;
  cursor: not-allowed;
}

#pauseBtn {
  width: 200px;
  font-size: 1.5rem;
  font-weight: bold;
  background-color: #5b05fa;
  color: white;
  border: bisque;
  border-radius: 10px;
  padding: 10px 10px;
  cursor: pointer;
  margin: 2rem;
}

#pauseBtn:hover {
  background-color: #4a04c9;
}

#pauseBtn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

#hiScoreDisplay {
  display: flex;
  justify-content: center;
  font-family: Geneva, Tahoma, Verdana, sans-serif;
  font-size: 2rem;
  font-weight: bold;
  align-items: center;
  height: 4rem;
  margin: auto;
}

@keyframes shrinkText {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.overlayText {
  position: absolute;
  top: 10%;
  left: 10%;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 30px;
  color: red;
  text-shadow: 0cap 0 10px black;
  pointer-events: none; /* Ensure the text doesn't capture mouse events */
  transform: rotate(-45deg);
  user-select: none;
  animation: shrinkText 2s 1 linear inherit;
}
