.moneyBoard {
  position: absolute;
  top: 9%;
  left: 3%;
  background: linear-gradient(to bottom, #228B22, #006400); 
  color: #FFD700;
  font-weight: bold;
  padding: 10px 10px;
  border: 2px solid #FFD700;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  font-size: 15px;
  z-index: 1000;
}

.betting-table, .result {
  background-color: rgba(255, 255, 255, 0.05);
  font-family: 'Brush Script MT', cursive;
  border: 2px dashed #FFD700;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 10px 0;
  text-align: left;
  color: #fff;
}

.bet {
  color: #09ff00; /* Light cyan for a clickable feel */
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.bet:hover {
  color: #FFD700; /* Gold on hover */
}

.bet-options {
  display: none;
  position: absolute;
  top: 100%; /* show below */
  left: -40%;
  background: none; /* semi-transparent white */
  backdrop-filter: blur(2px); /* blur background behind */
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* softer border */
  margin-top: 5px;
  white-space: nowrap;
  z-index: 999;
  display: none;
  gap: 15px;
}

.bet.open .bet-options {
  display: flex;
}

.add-bet {
  color: #09ff00;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.add-bet:hover {
  background-color: rgba(255, 215, 0, 0.2);
}
.output-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 500px;
  margin: 20px auto;
  gap: 10px;
}

.output {
  flex: 1;
  text-align: left;
}

#output2 {
  text-align: right;
}

.betting-table {
  min-width: 120px;
  text-align: center;
}

/* 📱 Mobile Styles for Betting UI */
@media (max-width: 768px) {
  .moneyBoard {
    position: static; /* remove absolute for stacking */
    margin: 10px auto;
    display: block;
    text-align: center;
    font-size: 14px;
    padding: 8px 12px;
    width: fit-content;
  }

  .betting-table, .result {
    font-size: 1rem;
    padding: 10px;
    margin: 8px auto;
    text-align: center;
    width: 90%;
  }

  .output-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: center;
  }

  #output2 {
    text-align: center;
  }

  .bet-options {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    left: 0;
    margin-top: 5px;
    padding: 5px;
  }

  .bet {
    font-size: 0.95rem;
  }

  .add-bet {
    font-size: 0.9rem;
    padding: 4px 8px;
  }
}

/* 📱 Extra Small Screens */
@media (max-width: 480px) {
  .moneyBoard {
    font-size: 13px;
    padding: 6px 10px;
  }

  .betting-table, .result {
    font-size: 0.95rem;
    padding: 8px;
  }

  .bet {
    font-size: 0.9rem;
  }

  .add-bet {
    font-size: 0.85rem;
  }
}
.result {
  font-size: 1.3rem;
  text-align: center;
  font-weight: bold;
  color: #FFD700;
}

