/* Menu Buttons */
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.menu-btn {
  background: linear-gradient(45deg, #FCAD72, #736FA3);
  border: none;
  color: white;
  padding: 15px 40px;
  font-size: 1.5em;
  font-family: 'CustomFont', Arial, sans-serif;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.menu-btn:nth-child(1) { animation-delay: 0.2s; }
.menu-btn:nth-child(2) { animation-delay: 0.4s; }
.menu-btn:nth-child(3) { animation-delay: 0.6s; }

.menu-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #736FA3, #FCAD72);
}

.menu-btn:active {
  transform: translateY(0);
}

.menu-btn.secondary {
  background: linear-gradient(45deg, #666, #888);
}

.menu-btn.secondary:hover {
  background: linear-gradient(45deg, #888, #666);
}

/* Input Container */
.input-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.input-container h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: white;
}

#player-name {
  padding: 15px 20px;
  font-size: 1.2em;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  color: #333;
  min-width: 250px;
  text-align: center;
  font-family: 'CustomFont', Arial, sans-serif;
}

#player-name:focus {
  outline: 3px solid #FCAD72;
  background: white;
}

/* Lobby Container */
.lobby-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  max-width: 600px;
  width: 100%;
}

.lobby-container h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: white;
}

#lobby-status {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 10px;
  min-width: 300px;
  font-size: 1.1em;
}

#lobby-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
}

.lobby-item {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lobby-item:hover {
  background: rgba(255,255,255,0.2);
}

/* Leaderboard Container */
.leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  max-width: 600px;
  width: 100%;
}

.leaderboard-container h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: white;
}

#leaderboard-list {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
}

.leaderboard-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 1.1em;
}

.leaderboard-entry:last-child {
  border-bottom: none;
}

.leaderboard-rank {
  font-weight: bold;
  color: #FCAD72;
  min-width: 50px;
}

.leaderboard-name {
  flex: 1;
  text-align: left;
  margin-left: 20px;
}

.leaderboard-score {
  font-weight: bold;
  color: #FCAD72;
}

.leaderboard-date {
  font-size: 0.8em;
  color: rgba(255,255,255,0.7);
  margin-left: 20px;
}

/* Lobby Actions */
.lobby-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin: 20px 0;
}

.join-lobby-section {
  display: flex;
  gap: 10px;
  align-items: center;
}

#lobby-id-input {
  padding: 15px 20px;
  font-size: 1.2em;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  color: #333;
  min-width: 150px;
  text-align: center;
  font-family: 'CustomFont', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#lobby-id-input:focus {
  outline: 3px solid #FCAD72;
  background: white;
}

#lobby-id-input::placeholder {
  color: #666;
  text-transform: none;
  letter-spacing: normal;
}

/* Countdown Styling */
#countdown {
  font-size: 4em;
  font-weight: bold;
  color: #FCAD72;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: pulse 1s ease-in-out infinite;
  margin: 20px 0;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Error messages */
.error-message {
  background: rgba(255, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  margin: 10px 0;
  font-weight: bold;
}

/* Lobby ID Display */
.lobby-id-display {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 1.2em;
}

.copy-btn {
  background: #FCAD72;
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.3s ease;
}

.copy-btn:hover {
  background: #FF8C42;
}

/* Player List in Lobby */
.player-list {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  min-height: 60px;
}

.player-in-lobby {
  background: rgba(255,255,255,0.1);
  padding: 8px 15px;
  border-radius: 5px;
  margin: 5px 0;
  display: flex;
  align-items: center;
  font-size: 1.1em;
}
