body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f0f2f5;
  color: #333;
}

main {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

h1 {
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 2em;
}

.game-lobby .input-group {
  margin-bottom: 20px;
  text-align: left;
}

.game-lobby label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.game-lobby input[type="text"] {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

.game-lobby .button-group {
  margin-top: 25px;
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.game-lobby button {
  background-color: #3498db;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
  flex: 1;
}

.game-lobby button:hover {
  background-color: #2980b9;
}

.game-lobby .generated-code {
  margin-top: 30px;
  padding: 15px;
  background-color: #ecf0f1;
  border-radius: 8px;
  border: 1px dashed #bdc3c7;
}

.game-lobby .generated-code p {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  color: #34495e;
}

.game-lobby #displayGameCode {
  font-weight: bold;
  color: #e74c3c;
}

.game-lobby #copyCodeBtn {
  background-color: #2ecc71;
  width: auto;
  padding: 8px 15px;
  font-size: 0.9em;
}

.game-lobby #copyCodeBtn:hover {
  background-color: #27ae60;
}

/* Styles for Game Host Lobby */
#gameHostLobby {
  text-align: center;
}

#gameHostLobby h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.lobby-code {
  background-color: #e8f6f3;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.lobby-code p {
  margin: 0;
  font-size: 1.1em;
  color: #27ae60;
}

.lobby-code #hostGameCode {
  font-weight: bold;
  color: #e74c3c;
}

#copyHostCodeBtn {
  background-color: #2ecc71;
  padding: 8px 15px;
  font-size: 0.9em;
}

#copyHostCodeBtn:hover {
  background-color: #27ae60;
}

#playersList {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  border: 1px solid #eee;
  border-radius: 5px;
  max-height: 150px;
  overflow-y: auto;
}

#playersList li {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#playersList li:last-child {
  border-bottom: none;
}

#playersList li span {
  font-weight: bold;
  color: #34495e;
}

.customization-options {
  margin-top: 25px;
  padding: 15px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background-color: #fdfdfd;
}

.customization-options .input-group {
  margin-bottom: 15px;
  text-align: left;
}

.customization-options label {
  font-weight: bold;
  margin-bottom: 5px;
}

.customization-options select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  background-color: white;
}

.customization-options select:disabled,
#startGameBtn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  color: #666666;
}

#startGameBtn {
  margin-top: 30px;
  background-color: #e67e22;
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
}

#startGameBtn:hover {
  background-color: #d35400;
}


/* Responsive adjustments */
@media (max-width: 600px) {
  .game-lobby .button-group {
    flex-direction: column;
  }
}