#game-overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

#game-overlay .popup-container {
  background: #31313d;
  max-width: 300px;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  color: white;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px;
  border-radius: 8px;
  font-family: "Arial";
}

#game-overlay .title {
  font-size: 24px;
}

#game-overlay .msg {
  font-size: 16px;
  white-space: pre-wrap;
}

#game-overlay .btn-group {
  gap: 16px;
  display: flex;
  justify-content: center;
}

#game-overlay button {
  background: #ffcc5b;
  width: 100px;
  height: 40px;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 16px;
}

#game-overlay button:hover {
  cursor: pointer;
}
