body {
  font-family: 'Poppins', sans-serif;
  background-color: #1A2526;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #E0E0E0;
}

.main-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

#card-selection-container {
  margin-bottom: 20px;
  text-align: center;
  padding: 20px;
  background-color: #002027;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 1600px;
}

#card-container {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 5px;
  padding: 5px;
  border: 5px solid #4682B4;
  background-color: #cedadfa1;
  border-radius: 18px;
  overflow-x: auto;
}

.card {
  width: 50px;
  height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid #4682B4;
  border-radius: 5px;
  background-color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card.selected {
  border: 2px solid #FFD700;
  box-shadow: 0 0 10px 5px rgba(255, 215, 0, 0.4);
}

.card.spade, .card.club {
  color: #000000;
}

.card.heart, .card.diamond {
  color: #ff0000;
}

#controls-container {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
}

#position-box, #action-box-wrapper {
  flex: 1;
  padding: 15px;
  background-color: #002027;
  border: 2px solid #4682B4;
  border-radius: 12px;
  margin-bottom: 20px;
}

#action-box-wrapper {
  text-align: center;
}

.action-box-header {
  display: block;
  color: #666699;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px;
}

#selected-cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

#selected-cards {
  font-size: 18px;
  background-color: #2C3E50;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: row;
  gap: 1px;
  min-width: 111px;
  margin-bottom: 10px;
}

#selected-cards .card {
  width: 90px;
  height: 115px;
  font-size: 32px;
}

#action-box {
  transition: background-color 2s ease;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  margin: 22px 0;
  text-transform: uppercase;
  font-size: 22px;
  min-width: 252px;
  box-shadow: 0 22px 22px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 2px solid #4682B4;
}

.action-3bet {
  background-color: #800080;
  color: white;
}

.action-call {
  background-color: #4682B4;
  color: white;
}

.action-fold {
  background-color: #708090;
  color: white;
}

.reset-btn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #D3D3D3;
  color: #1A2526;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.reset-btn:hover {
  background-color: #B0B0B0;
}

.radio-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background-color: #2C3E50;
  border-radius: 8px;
}

.radio-group label {
  margin-right: 0;
  display: flex;
  align-items: center;
  color: #E0E0E0;
}

.radio-group input[type="radio"] {
  margin-right: 8px;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #4682B4;
  border-radius: 50%;
}

.radio-group input[type="radio"]:checked {
  background-color: #4682B4;
}

#utg-facing-options,
#utg-3bet-by-options,
#mp-facing-options,
#mp-secondary-options {
  margin-top: 10px;
}

#scenario-position {
  font-size: 35px;
  font-weight: 600;
  color: #99c559;
  text-align: center;
  margin-bottom: 5px;
}

#scenario-action {
  font-size: 18px;
  font-weight: 600;
  color: #99c559;
  text-align: center;
  background-color: #2C3E50;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 11px 11px rgba(0, 0, 0, 0.2);
  display: inline-block;
  min-width: 111px;
  margin-bottom: 55px;
}

.hidden {
  display: none;
}

#action-box.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

#action-box.loading::before {
  content: '⌛';
  margin-right: 8px;
  font-size: 24px;
}

.header-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 10px 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#card-container, #controls-container, #selected-cards-container {
  animation: fadeIn 0.5s ease-in;
}
/* Flexible containers */
.js-container {
  width: 100%;
  max-width: 1200px; /* Optional max-width */
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Media queries for different screen sizes */
@media (max-width: 768px) {
  .js-powered-element {
    width: 100%;
    margin-bottom: 15px;
  }
  
  /* Adjust JavaScript-controlled animations/effects */
  .js-animated-item {
    transform: scale(0.9);
    transition: all 0.3s ease;
  }
}