body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
  overflow: hidden;
  position: relative;
}

.game-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.game-dialog.hidden {
  opacity: 0;
  pointer-events: none;
}

.game-dialog h2 {
  color: white;
  margin-bottom: 30px;
  font-size: 32px;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.dialog-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  min-width: 280px;
}

.dialog-content label {
  font-size: 18px;
  color: #333;
  font-weight: bold;
}

.dialog-content select {
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #4CAF50;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
  width: 100%;
}

.dialog-content button {
  padding: 12px 30px;
  font-size: 18px;
  background: linear-gradient(145deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  width: 100%;
}

.dialog-content button:hover {
  background: linear-gradient(145deg, #5CBF60, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.dialog-content button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.instructions {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  backdrop-filter: blur(5px);
}

.instructions p {
  margin: 8px 0;
  font-size: 14px;
  color: #fff;
}

#gameCanvas {
  border: 2px solid #000;
  max-width: 95vw;
  max-height: 70vh;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

@media (max-width: 768px) {
  .game-dialog h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .dialog-content {
    padding: 20px;
    min-width: 250px;
  }
  
  .dialog-content label {
    font-size: 16px;
  }
  
  .dialog-content select,
  .dialog-content button {
    font-size: 16px;
    padding: 10px 20px;
  }
  
  .instructions p {
    font-size: 12px;
  }
  
  #gameCanvas {
    max-width: 90vw;
    max-height: 60vh;
  }
}
