body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  margin: 0;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  font-size: 2.5em;
  color: #1c1e21;
}

.controls {
  text-align: center;
  margin-bottom: 20px;
}

#createGameBtn {
  background-color: #42b72a;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

#createGameBtn:hover {
  background-color: #36a420;
}

.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.game-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.game-title {
  font-weight: bold;
  font-size: 1.2em;
  flex-grow: 1;
}

.game-status {
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: 500;
}

.game-status.active {
  background-color: #e7f3ff;
  color: #1877f2;
}

.game-status.completed {
  background-color: #e8f5e9;
  color: #4caf50;
}

.game-details, .game-actions {
  font-size: 0.95em;
  color: #606770;
}

.game-details div, .game-actions button {
  margin-top: 8px;
}

.copy-prompt-btn {
  background-color: #1877f2;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
}

.copy-prompt-btn:hover {
  background-color: #166fe5;
}

/* Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 8px;
  text-align: center;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.slider-container {
  margin: 20px 0;
}

#difficultySlider {
  width: 100%;
}

#difficultyValue {
  font-weight: bold;
}
