#minesweeper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  border: 3px solid #000000;
  padding: 10px;
  margin: auto;
  width: auto;
  max-width: 90vh;
  height: auto;
  box-sizing: border-box;
  justify-content: center;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Edge */
}

.cell {
  font-size: min(2.5vw, 1rem);
  max-width: 10vw; 
  max-height: 10vh; 
  aspect-ratio: 1 / 1;
  background-color: #2d2b2b;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

@keyframes glowEffect {
  from {
    box-shadow: 0 0 80px 15px rgba(179, 100, 16, 1); /* Starting big and visible */
  }
  to {
    box-shadow: 0 0 0px 0px rgba(179, 100, 16, 0); /* Ending with no shadow */
  }
}

.revealed {
  background-color: #44984c !important;
}

.mine {
  background-color: #982e2e !important;
}

.flagged {
  background-color: rgba(179, 100, 16, 1);  
}

.flagged.glow {
  animation: glowEffect 0.8s forwards;
  z-index: 1;
}


.game-text {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%); /* Center the text horizontally */
  z-index: 10; /* Ensure the text appears above the grid */
  color: white; /* Adjust color as needed */
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 5px;
  display: none;
}

/* #game-text {
  display: none;
} */

.game-container {
  position: relative;
  width: 100%;
  margin: auto;
}

/* Styles for mobile devices */
@media (max-width: 768px) {
  #minesweeper {
    padding: 0px;
  }
}
