/* 🎰 Main Game Section Background */
.main-section#game {
  background-image: url('./images/julian-paefgen-uxU_jyu9e7U-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
    border-radius: 12px;
  display: flex;
  justify-content: center;
}

/* 📝 Registration Section */
.registration-section {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 60px 30px;
  border-radius: 20px;
  color: #f5f5f5;
  font-family: 'Orbitron', sans-serif;
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.registration-section input {
  padding: 12px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  margin-top: 15px;
  width: 70%;
  max-width: 350px;
}

.error-message {
  color: #ff4d4d;
  margin-top: 10px;
  font-size: 16px;
}

/* 🎲 Dice Game Section */
.dice-game-section {
  width: 90%;
  max-width: 1000px;
  margin: 80px auto;
  padding: 60px 40px;
  background-image: url("./images/dice-on-craps-table-2260559.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  color: #f5f5f5;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
}

/* 🎲 Dice Layout */
.dice-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin: 40px 0;
}

.die {
  font-size: 140px;
  transition: transform 0.3s ease;
}

/* 🎯 Roll Button */
.roll-button {
  padding: 20px 40px;
  font-size: 24px;
  background-color: #ff3c3c;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.roll-button:hover {
  background-color: #ff6b6b;
}

/* 📊 Score Display */
.score-display {
  font-size: 32px;
  margin-top: 30px;
}

/* 💬 Game Message */
.game-message {
  font-size: 24px;
  margin-top: 30px;
  color: #ffd700;
  font-weight: bold;
}

/* 🧑‍💼 Player Stats */
.player-stats {
  font-size: 20px;
  margin-top: 10px;
  color: #00ffcc;
  font-weight: bold;
}

/* 💵 Betting Panel */
.betting-panel {
  margin: 20px 0;
  font-size: 18px;
}

.betting-panel input {
  padding: 8px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  margin-left: 10px;
  width: 80px;
}

/* 🏆 Leaderboard */
.leaderboard {
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
}

.leaderboard h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.leaderboard ul {
  list-style: none;
  padding: 0;
  font-size: 18px;
}

/* 🎨 About Me Gallery */
.aboutme-gallery {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.aboutme-gallery img {
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* 🔁 Action Buttons */
.action-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* 🎉 Confetti Canvas */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.bet-history {
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 16px;
  text-align: left;
}

.bet-history ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.bet-history li {
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

/* 📜 Betting History Section */
.history-section {
  background-color: rgba(0, 0, 0, 0.85);
  color: #f5f5f5;
  font-family: 'Orbitron', sans-serif;
  padding: 40px;
  border-radius: 20px;
  max-width: 800px;
  margin: 60px auto;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  display: none;
}

.history-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ffd700;
}

.history-section ul {
  list-style: none;
  padding: 0;
  font-size: 18px;
  margin: 0 auto 30px;
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
}

.history-section li {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 6px;
  padding-top: 6px;
}

.history-section {
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.history-section.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}