body {
  font-family: "Roboto", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
  background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.game-container {
  text-align: center;
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  width: 600px;
  height: 630px;
}

.title {
  font-family: "Orbitron", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #3742fa;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.how-to-play {
  margin-top: 20px;
  background-color: #a4b0be;
}

.subtitle {
  font-size: 24px;
  color: #2f3542;
  margin-bottom: 30px;
}

.board {
  width: 400px;
  height: 200px;
  background-color: #e0e0e0;
  border-radius: 200px 200px 0 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.target-area {
  width: 400px;
  height: 200px;
  border-radius: 200px 200px 0 0;
  position: absolute;
  overflow: hidden;
}

.needle-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  /* Increased width for larger click area */
  height: 180px;
  transform: translateX(-50%);
  cursor: pointer;
}

.needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 200px;
  background-color: #ff4757;
  transform-origin: bottom center;
  transition: transform 0.2s ease;
}

.clues-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  height: 60px;
  /* Adjust this value as needed */
}

.clue {
  flex: 1;
  font-size: 18px;
  font-weight: bold;
  color: #2f3542;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 10px;
}

.bidirectional-arrow {
  width: 100px;
  height: 2px;
  background-color: #3742fa;
  position: relative;
  margin: 0 20px;
  flex-shrink: 0;
}

.bidirectional-arrow::before,
.bidirectional-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #3742fa;
  border-right: 2px solid #3742fa;
}

.bidirectional-arrow::before {
  left: 0;
  transform: translateY(-50%) rotate(-135deg);
}

.bidirectional-arrow::after {
  right: 0;
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 768px) {
  .clues-container {
    flex-direction: row;
    height: auto;
    align-items: center;
    padding: 10px 0;
  }

  .clue {
    font-size: 14px;
    margin: 0;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 50px;
  }

  .bidirectional-arrow {
    width: 40px;
    margin: 0 10px;
  }
}

.controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #5352ed;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  flex: 1 0 auto;
  max-width: 150px;
}

button:hover {
  background-color: #3742fa;
}

#score,
#totalScore {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #2f3542;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.team-setup {
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.team-count {
  margin-bottom: 1rem;
}

.team-name-input {
  margin-bottom: 0.5rem;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.current-team {
  font-weight: bold;
  color: #3742fa;
}

#startGame {
  margin-top: 1rem;
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.3s ease-out;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal h2 {
  color: #3742fa;
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

.modal-body {
  color: #2f3542;
  font-size: 16px;
  line-height: 1.6;
}

.modal-body ol {
  padding-left: 20px;
}

.modal-body ul {
  padding-left: 30px;
  margin-top: 10px;
}

.score-5 {
  color: #3742fa;
  font-weight: bold;
}

.score-3 {
  color: #feca57;
  font-weight: bold;
}

.score-1 {
  color: #ff6b6b;
  font-weight: bold;
}

.score-0 {
  color: #a4b0be;
  font-weight: bold;
}

.close-button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #3742fa;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.close-button:hover {
  background-color: #2c3aef;
}

@media (max-width: 768px) {
  body {
    background-color: white;
  }

  .game-container {
    width: 100%;
    height: 100%;
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
  }

  .board {
    width: 300px;
    height: 150px;
    margin: 0 auto;
  }

  .target-area {
    width: 300px;
    height: 150px;
  }

  .needle {
    height: 130px;
    left: calc(50% - 4px);
  }

  .title {
    font-size: 36px;
  }

  .subtitle {
    font-size: 18px;
  }

  .clues {
    font-size: 18px;
  }

  button {
    font-size: 14px;
    padding: 8px 16px;
  }

  .modal-content {
    margin: 20% auto;
    padding: 20px;
  }

  .modal h2 {
    font-size: 24px;
  }

  .modal-body {
    font-size: 14px;
  }
}
