* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #1a1a1a;
  color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 900px;
  padding: 20px;
  background-color: #333;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  text-align: center;
}

h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ff5733;  /* Changed from yellow to a vibrant orange-red */
}

.game-area {
  margin-bottom: 20px;
}

.dealer-area, .player-area, .split-area {
  margin: 20px 0;
}

h2 {
  font-size: 24px;
  color: #ffcc00;
}

.balance-area {
  margin: 20px 0;
  font-size: 18px;
}

.chip-area {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 10px;
}

.chip {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: black;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.chip.white { background-color: #f0f0f0; }
.chip.red { background-color: #e74c3c; }
.chip.green { background-color: #27ae60; }
.chip.black { background-color: #2c3e50; color: #f0f0f0; }
.chip.purple { background-color: #8e44ad; color: #f0f0f0; }

.chip:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
}

.action-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin: 5px;
  transition: background-color 0.3s;
}

.primary-btn {
  background-color: #ffcc00;
  color: #333;
}

.primary-btn:hover {
  background-color: #ffdd33;
}

.primary-btn:disabled {
  background-color: #555;
  cursor: not-allowed;
}

.game-action {
  background-color: #3498db;  /* Light Blue */
  color: #f0f0f0;
}

.game-action:hover {
  background-color: #5dade2;
}

.game-action:disabled {
  background-color: #555;
  cursor: not-allowed;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.card-container {
  width: 80px;
  height: 120px;
  position: relative;
  border-radius: 8px;
}

.card {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.message {
  margin-top: 20px;
  font-size: 20px;
  color: #ffcc00;
}

.total {
  font-size: 24px;
  margin-bottom: 10px;
}

.active-hand {
  border: 3px solid #ff5733;  /* Vibrant orange-red border */
  border-radius: 8px;
  padding: 10px;
  display: inline-flex;  /* Use inline-flex to keep cards side by side */
  box-sizing: border-box;
  justify-content: center;  /* Ensure cards are centered within the container */
}
