body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000;
  color: #fff;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #111;
  border-bottom: 2px solid #444;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f1c40f;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links li a {
  color: #f1f1f1;
  font-weight: 500;
  text-decoration: none;
}

.main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-section {
  max-width: 700px;
  text-align: center;
  margin-bottom: 2rem;
}

.game-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.game-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.game-table {
  background: url('../images/table-bg.webp') center center/contain no-repeat;
  height: 400px;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: relative;
}

.hand {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  width: 60px;
  height: 90px;
  background-color: white;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.chip-area {
  text-align: center;
}

.chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.5rem 0;
}

.chip {
  padding: 0.5rem 1rem;
  border-radius: 50%;
  border: none;
  background-color: #f39c12;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.chip:hover {
  transform: scale(1.1);
}

.bet-display,
.bankroll-display {
  margin-top: 0.5rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn--action {
  background-color: #27ae60;
  color: white;
}

.btn--info {
  background-color: #2980b9;
  color: white;
}

.message {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-top: 1rem;
  min-height: 1.5rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #222;
  margin: 5% auto;
  padding: 2rem;
  border: 1px solid #888;
  width: 90%;
  max-width: 800px;
  color: #fff;
}

.close-modal {
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.tab {
  padding: 0.5rem 1rem;
  border: none;
  background: #444;
  color: white;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

.tab.active {
  background-color: #e67e22;
}

.strategy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.strategy-table th,
.strategy-table td {
  border: 1px solid #555;
  padding: 0.5rem;
  text-align: center;
  color: #fff;
}

.strategy-table th {
  background-color: #111;
  color: #f39c12;
}

/* Centered message styles */
.centered-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 10;
  text-align: center;
  min-width: 300px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hand value displays */
.hand-value {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin: 0.5rem 0;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.3rem;
  border-radius: 4px;
}

/* Strategy tip panel */
.tip-panel {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  max-width: 200px;
  border: 1px solid #f1c40f;
}

.tip-panel strong {
  color: #f1c40f;
}

/* Adjust game table layout */
.game-table {
  background: url('../images/table-bg.webp') center center/contain no-repeat;
  height: 400px;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: relative;
  margin-bottom: 1rem;
}

.tip-panel {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1.2rem;
  border-radius: 8px;
  max-width: 260px;
  min-width: 200px;
  font-size: 0.95rem;
  line-height: 1.4;
  border: 1px solid #f1c40f;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
  z-index: 10;
}

@media (max-width: 768px) {
  .tip-panel {
    position: static;
    transform: none;
    margin: 1rem auto;
    max-width: 90%;
    width: auto;
    box-shadow: none;
    text-align: center;
  }
}
