body {
  font-family: "Arial", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Changed from center to flex-start */
  height: 100vh;
  margin: 0;
  padding-top: 80px; /* Added padding to leave more gap at the top */
  background-color: #f4f4f4;
}

.container {
  text-align: center;
  width: 80%;
  max-width: 1200px;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

h1 {
  color: #333;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.word-display {
  margin-bottom: 20px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.word-display p {
  margin: 10px 0;
  font-size: 1.2em;
  color: #333;
}

canvas {
  border: 2px solid #007bff;
  border-radius: 10px;
  background-color: #fff;
  width: 100%;
  max-width: 800px;
  height: 600px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.controls button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.controls button:hover {
  background-color: #0056b3;
}

.player-input {
  text-align: left;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.player-input h2 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 10px;
}

.player-input input {
  padding: 10px;
  margin-right: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  width: calc(100% - 115px);
}

.player-input button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #28a745;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.player-input button:hover {
  background-color: #218838;
}

#player-list {
  list-style-type: none;
  padding: 0;
  margin-top: 10px;
}

#player-list li {
  padding: 5px 0;
  font-size: 1.1em;
  color: #333;
}
