/* Basic styles */
body {
  font-family: Arial, sans-serif;
  background-color: #eef;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Overlay style for start, game over screens */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  flex-direction: column;
}

.hidden {
  display: none;
}

/* Start screen container */
.start-container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.start-container h1 {
  margin-bottom: 20px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  margin: 10px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #555;
  color: white;
}

button:hover {
  background-color: #777;
}

/* Game Over container */
.gameover-container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}
/* Overlay styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}
.hidden {
  display: none;
}
.end-game-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}
.slide-buttons {
  position: fixed;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 1000;
}
.slide-buttons button {
  font-size: 24px;
  padding: 10px 20px;
  border-radius: 50%;
  cursor: pointer;
}
/* Modal overlay background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 999; /* On top of other content */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent background */
}

/* Show modal when class 'show' is added */
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Close button style */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
}

.close:hover {
  color: #000;
}