/* Main Styling */
#pregame {
  padding: 1.5rem;
  background-color: #1f2937;
  color: white;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Header Styling */
h1 {
  background-color: black;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

/* Room ID Styling */
.roomid {
  color: black;
  background-color: white;
  padding: 10px 20px;
  font-size: 2rem;
  border: 2px solid white;
  border-radius: 8px;
  display: inline-block;
}

/* Player Counter */
#players {
  font-size: 2em;
  font-weight: 900;
}

/* Buttons */
button {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* Start Button */
#start_button {
  background-color: #3b82f6;
  color: white;
}

#start_button:hover {
  background-color: #2563eb;
}

/* Next Round Button */
#next_round {
  background-color: #10b981;
  color: white;
}

#next_round:hover {
  background-color: #059669;
}

@media (max-width: 1024px) {
  #scoreboard {
    position: relative; /* Change to relative for mobile */
    top: auto; /* Reset the top position */
    right: auto; /* Reset the right position */
    margin-top: 20px; /* Space the scoreboard below the cards */
    width: auto; /* Make the width more flexible */
    max-width: 100%; /* Ensure it does not overflow the screen */
  }
}

@media (min-width: 1024px) {
  #scoreboard {
    background-color: #1f2937;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.1);
  }
}

/* Black Card Styling */
#black_card {
  padding: 1.5rem;
  background-color: black;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.1);
}

.card-pack-pill {
  padding: 8px;
  background-color: #2d3748;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.card-pack-pill:hover {
  background-color: #4a5568;
}
