body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.centered-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.centered-container h1 {
    text-align: center;
}

.centered-container h2 {
  color: #ff6600;
  text-align: center;
}

.centered-container h4 {
  color: #4caf50;
  text-align: center;
}

.centered-container button {
    display: block;
    margin: 0 auto;
}

.centered-container li {
  font-size: 1.5rem;
}

#code-screen, #hint-screen {
  max-width: 400px;
  margin: 80px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  font-weight: 600;
  color: #555;
  margin-bottom: 30px;
}

input[type="text"] {
  font-family: inherit;
  font-size: 18px;
  padding: 10px 15px;
  width: 100%;
  border: 2px solid #ddd;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 5px;
  box-sizing: border-box;
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #3e8e41;
}

#hint-screen {
  display: none;
  text-align: center;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 800px; /* Set a maximum width if needed */
  margin: 0 auto; /* Center the container horizontally */
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  text-align: center;
  box-sizing: border-box;
}

.audio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.audio-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.basic-text {
  color: #ff6600;;
}

.final-text {
  color: #4caf50;
}

.final-hint-text {
  color: #333;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-interface {
  display: flex;
  justify-content: space-between;
}

.element {
  display: flex;
  width: 200px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timer, .code, .stage {
  padding: 10px;
  border: 1px solid #ccc;
  margin: 5px; /* Add margin for spacing between elements */
}

#scoreboard {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#players {
  margin-top: 20px;
}

.player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.player-name {
  font-weight: bold;
}

.player-score {
  font-size: 20px;
  color: #007bff;
}

.crown {
    font-size: 24px;
    color: gold;
}

#scoreDisplay {
  text-align: center;
  margin-top: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
}

#canvas-container {
  width: 600px;
  height: 440px;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 0;
  right: 0;
}

#canvas-container canvas {
  border: 2px solid black;
}

/* Media queries for responsiveness */
@media (max-width: 480px) {
  #code-screen, #hint-screen {
    padding: 20px;
    margin: 40px 20px;
  }

  input[type="text"] {
    font-size: 16px;
  }

  button {
    font-size: 14px;
    padding: 8px 16px;
  }
}

