/* Reset + Body */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d0b1f;
  color: #fff;
  overflow-x: hidden;
}

/* Particle Background Layer */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  font-size: 1.1rem;
}
.navbar a {
  text-decoration: none;
  color: #00ffff;
  transition: color 0.3s ease;
}
.navbar a:hover {
  color: #ffcc00;
}

/* Game Container Box */
.game-box {
  max-width: 600px;
  margin: 2rem auto;
  background: #1a1830;
  border: 3px solid #FFD700;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Title */
.title {
  font-size: 2rem;
  color: #00ffff;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #00ffff;
}

/* Balance Display */
.balance {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #fff;
}

/* Bet Section */
.bet-section {
  margin-bottom: 1.5rem;
}
.bet-section input {
  padding: 0.5rem 1rem;
  width: 80px;
  margin-right: 0.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
}

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  margin: 0.2rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  background-color: #00ffff;
  color: #000;
  transition: transform 0.2s ease, background-color 0.3s ease;
}
.btn:hover {
  background-color: #ffcc00;
}
.btn:active {
  transform: scale(0.95);
}
#hit-btn, #stand-btn {
  background-color: #333;
  color: #fff;
}
#hit-btn:enabled:hover,
#stand-btn:enabled:hover {
  background-color: #00ccff;
}

/* Cards Display */
.card-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
}
.card-container div {
  width: 50px;
  height: 70px;
  border-radius: 8px;
  background-color: #fff;
  color: #000;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.card-container div:nth-child(odd) {
  transform: rotate(-5deg);
}
.card-container div:nth-child(even) {
  transform: rotate(5deg);
}

/* Status Message */
.status-message {
  font-size: 1.2rem;
  margin-top: 1rem;
  font-weight: bold;
}
