@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f5f7fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 1000px;
  /* padding: 20px; */
  margin: 0 auto;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.containerHeader {
  margin-bottom: 0px;
  margin-left: 0px;
  text-align: center;
  /* display: inline; */
}

.left-column h1.containerHeader {
  margin-top: -10px; /* Adjust this value as needed to position the header correctly */
}

h2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #333;
}

.footer {
  width: 100%;
  /* background-color: #e6ecf2; */
  text-align: center;
  padding: 15px 0;
  margin-top: 50px;
  /* box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); */
}

.footer p {
  margin: 0;
  color: #333;
  font-size: 14px;
}

.app-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.left-column,
.center-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.left-column {
  width: 55%;
  gap: 35px;
}

.center-column {
  width: 33%;
}

.right-column {
  flex: 0 1 auto;
  width: auto;
  gap: 11px;
}

.params-button {
  background-color: #c9b8ff;
  border: none;
  border-radius: 20px;
  padding: 12px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 300px;
}

.params-button:hover {
  background-color: #b9a3ff;
}

.hand-section,
.dealer-section,
.other-players-section {
  background-color: #e6ecf2;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 2px 2px 4px 0px #00000024;
  position: relative;
}

.hand-section {
  min-height: 252px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hand-section h2 {
  font-family: Poppins;
  font-weight: bold;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  margin-top: 20px;
}

.bottom-sections {
  display: flex;
  gap: 15px;
  position: relative;
  min-height: 280px;
}

.dealer-section,
.other-players-section {
  width: 50%;
  min-height: 150px;
}

.dealer-section {
  position: relative;
  z-index: 100;
  text-align: center;
}

.dealer-section h2 {
  font-family: Poppins;
  font-weight: bold;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -2%;
  text-align: center;
  vertical-align: middle;
}

.other-players-section {
  z-index: 1;
}
.other-players-section h2 {
  font-family: Poppins;
  font-weight: bold;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -2%;
  text-align: center;
  vertical-align: middle;
  margin-bottom: 20px;
}

.dealer-value {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.picker-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row; /* es vkeni */
  gap: 10px;
  margin-bottom: 10px;
}

.my-cards-container {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  padding: 10px;
  gap: 10px;
  margin-top: 20px;
}

.hand-value-display {
  position: absolute;
  top: -25px; 
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 16px;
  color: #000;
}

.my-cards-container-two {
  display: none;
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  padding: 10px;
  gap: 10px;
  margin-top: 20px;
}

.my-cards-container-three {
  display: none;
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  padding: 10px;
  gap: 10px;
  margin-top: 20px;
}

.my-cards-container-four {
  display: none;
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  padding: 10px;
  gap: 10px;
  margin-top: 20px;
}

.dealer-cards-container {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  /* padding: 10px; */
  gap: 10px;
}

.card-my {
  width: 70px;
  height: 100px;
  background-color: #ede9fe;
  border: 1px dashed #000;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.card-my.real-card {
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
}

/* second add my card */

.card-my-two {
  width: 70px;
  height: 100px;
  background-color: #ede9fe;
  border: 1px dashed #000;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.card-my-three {
  width: 70px;
  height: 100px;
  background-color: #ede9fe;
  border: 1px dashed #000;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.card-my-four {
  width: 70px;
  height: 100px;
  background-color: #ede9fe;
  border: 1px dashed #000;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.card-my-two.real-card {
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.card-my-three.real-card {
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.card-my-four.real-card {
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.card-my-two.real-card {
  border: none;
  background-color: transparent;
  padding: 0;
}

.card-my-three.real-card {
  border: none;
  background-color: transparent;
  padding: 0;
}

.card-my-four.real-card {
  border: none;
  background-color: transparent;
  padding: 0;
}

.card-dealer {
  width: 70px;
  height: 100px;
  background-color: #ede9fe;
  border: 1px dashed #000;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.card-dealer.real-card {
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.card-my.real-card {
  border: none;
  background-color: transparent;
  padding: 0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-my:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: #7c3aed;
}

.card-my-two:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: #7c3aed;
}

.card-my-three:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: #7c3aed;
}

.card-my-four:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: #7c3aed;
}

.plus-icon-my {
  width: 32px;
  height: 32px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
  font-weight: 300;
}

.card-my:hover .plus-icon-my {
  border-color: #7c3aed;
  color: #7c3aed;
}

.plus-icon-my-two {
  width: 32px;
  height: 32px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
  font-weight: 300;
}

.plus-icon-my-three {
  width: 32px;
  height: 32px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
  font-weight: 300;
}

.plus-icon-my-four {
  width: 32px;
  height: 32px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
  font-weight: 300;
}

.card-my-two:hover .plus-icon-my-two {
  border-color: #7c3aed;
  color: #7c3aed;
}

.card-my-three:hover .plus-icon-my-three {
  border-color: #7c3aed;
  color: #7c3aed;
}

.card-my-four:hover .plus-icon-my-four {
  border-color: #7c3aed;
  color: #7c3aed;
}

/* dealer card*/
.card-dealer:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: #7c3aed;
}

.plus-icon-dealer {
  width: 32px;
  height: 32px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
  font-weight: 300;
}

.card-dealer:hover .plus-icon-dealer {
  border-color: #7c3aed;
  color: #7c3aed;
}

.player-count-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.count-button {
  background-color: #dcecfc;
  border: none;
  border-radius: 12px;
  padding: 12px;
  color: #3c2b5e;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  box-shadow: 0.67px -0.27px 0.67px 0px #f0f0f026 inset;
  box-shadow: 4px 4px 13.07px 2px #00000040;
  font-family: Poppins;
  font-weight: 600;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  text-transform: capitalize;
}

.count-button:hover {
  background-color: #d8e3ed;
}

.count-button.active {
  background-color: #52a9ff;
  color: #fff;
}

.calculate-button {
  background-color: #ffd966;
  border: none;
  border-radius: 24px;
  padding: 12px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  width: 257px;
  height: 52px;
  font-weight: 400;
}

.calculate-button:hover {
  background-color: #ffac00;
}

.calcImage {
  /* filter: invert(1) brightness(0); */
  margin-top: 7px;
}

.actions-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.actionsHeader {
  margin-bottom: 0px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0%;
  line-height: 100%;
  margin-top: 15px;
  color: #4B4B4B;
}

/* .center-column h1 {
  width: 100%;
text-align: center;
} */

.center-column h1 {
  margin-left: 0;
}

.actions-main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.action-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.action-button {
  background-color: #e6ecf2;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  color: #333;
  /* cursor: pointer; */
  transition: all 0.2s ease;
  width: 257px;
  height: 40px;
  padding: 8px 16px 8px 16px;
  font-family: Poppins;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
}

/* .action-button:hover {
  background-color: #d8e6f6;
} */

.action-button.active {
  background-color: #29ff83;
}

.actions-title {
  margin-bottom: 0px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0%;
  line-height: 100%;
  color: #4B4B4B;
}

.special-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.special-action-button {
  background-color: transparent;
  border: none;
  border-radius: 24px;
  padding: 12px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  width: 257px;
  height: 52px;
  font-weight: 400;
}

.special-action-button:hover {
  background-color: #f0f3f8;
}

.revert-button {
  background-color: #e4ddfd;
}

.revert-button:hover {
  background-color: #bba9f8;
}

.new-hand-button {
  background-color: #ffd6cc;
}

.new-hand-button:hover {
  background-color: #ffa089;
}

.new-shoe-button {
  background-color: #c7f2f2;
}

.new-shoe-button:hover {
  background-color: #58dada;
}

.setting-section {
  padding: 15px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  height: 106px;
  width: 100%;
}

.minimum-bet {
  background-color: #66d2c2;
}

.budget {
  background-color: #c5f3c1;
}

.minimum-bet .value-display {
  background-color: #1e3d3a;
}

.value-display {
  background-color: #1f3b1f;
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  border-radius: 8px;
  color: white;
  /* margin-top: 5px; */
}

.value-icon {
  margin-right: 5px;
  font-size: 18px;
}

.value-input {
  font-size: 24px;
  font-weight: 600;
  width: 80px;
  background: transparent;
  border: none;
  color: white;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.value-input::-webkit-outer-spin-button,
.value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.value-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.info-section {
  background-color: #e6ecf2;
  padding: 15px;
  border-radius: 20px;
  text-align: center;
  height: 106px;
  width: 100%;
}

.info-value {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.count-section {
  background-color: #e6ecf2;
  padding: 15px;
  border-radius: 20px;
  height: 106px;
  width: 100%;
}

.count-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.count-row:last-child {
  margin-bottom: 0;
}

.count-value {
  font-size: 16px;
  font-weight: 600;
}

.negative {
  color: #ff4d4d;
}

.positive {
  color: #33cc33;
}

.inline-card-selector {
  position: absolute;
  background-color: #e6ecf2;
  border-radius: 20px;
  box-shadow: 2px 2px 4px 0px #00000024;
  padding: 15px;
  display: none;
  width: 400px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 15;
}

.inline-card-selector.visible {
  opacity: 1;
  transform: translateX(0);
  display: block;
  z-index: 10;
}

#my-card-selector {
  top: 0;
  left: calc(100% + 10px);
  z-index: 100;
}

#my-card-selector-two {
  top: 0;
  left: calc(100% + 10px);
  z-index: 100;
}
#my-card-selector-three {
  top: 0;
  left: calc(100% + 10px);
  z-index: 100;
}
#my-card-selector-four {
  top: 0;
  left: calc(100% + 10px);
  z-index: 100;
}

#dealer-card-selector {
  top: 0;
  left: calc(100% + 10px);
  z-index: 200;
}

.card-selector-grid {
  /* display: flex;
  flex-wrap: wrap;
  width: 100%; */
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}

.card-button {
  background-color: transparent;
  border: none;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 100%;
  overflow: hidden;
}

.card-button img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-button:hover {
  transform: scale(1.05);
}

.card-button.active {
  background-color: #c9b8ff;
}

.cardButtonTwo {
  background-color: transparent;
  border: none;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 100%;
  overflow: hidden;
}

.cardButtonTwo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cardButtonTwo:hover {
  transform: scale(1.05);
}

.cardButtonTwo.active {
  background-color: #c9b8ff;
}

/* third button */
.cardButtonThree {
  background-color: transparent;
  border: none;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 100%;
  overflow: hidden;
}

.cardButtonThree img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cardButtonThree:hover {
  transform: scale(1.05);
}

.cardButtonThree.active {
  background-color: #c9b8ff;
}

/* fourth button */
.cardButtonFour {
  background-color: transparent;
  border: none;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 100%;
  overflow: hidden;
}

.cardButtonFour img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cardButtonFour:hover {
  transform: scale(1.05);
}

.cardButtonFour.active {
  background-color: #c9b8ff;
}

.hidden {
  display: none !important;
}

#params-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(60, 43, 94, 0.95) 0%,
    rgba(60, 43, 94, 0.85) 25%,
    rgba(60, 43, 94, 0.75) 50%,
    rgba(60, 43, 94, 0.85) 75%,
    rgba(60, 43, 94, 0.95) 100%
  );
  backdrop-filter: blur(130px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.params-modal {
  position: relative;
  background-color: #dbd1ff;
  border-radius: 48px;
  padding: 40px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

.params-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; /* Add this to position the X button */
}

.params-modal-content h2 {
  color: #3c2b5e;
  font-size: 24px;
  margin-bottom: 30px;
}

.params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  margin-bottom: 30px;
  position: relative;
}

.params-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
}

.param-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.param-label {
  color: #3c2b5e;
  font-size: 14px;
  font-weight: 500;
}

.param-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 180px;
}

.arrow-btn {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.arrow-btn.left {
  color: #7c3aed66;
  margin-left: auto;
}

.arrow-btn.right {
  color: #7c3aed;
}

.arrow-btn.left[disabled] {
  color: #7c3aed66;
  cursor: not-allowed;
}

.arrow-btn.right[disabled] {
  color: #7c3aed66;
  cursor: not-allowed;
}

.param-value {
  color: #3c2b5e;
  font-size: 14px;
  width: 120px;
  text-align: center;
}

.set-calculator-btn {
  background-color: #3c2b5e;
  color: #dbd2ff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calculator-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.set-calculator-btn:hover {
  background-color: #3d1096;
}


@media (max-width: 950px) {
  .app-container {
    flex-direction: column;
  }



  .calcImage {
    margin-top: 0px;
  }

  .container h1 {
    margin-left: 0px;
  }

  .hand-section h2 {
    font-family: Poppins;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
  }

  .dealer-section h2 {
    font-family: Poppins;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
  }

  .other-players-section h2 {
    font-family: Poppins;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
  }

  .calculate-button {
    font-family: Poppins;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    margin: 0;
  }

  .container h1 {
    text-align: center;
  }

  .left-column {
    gap: 12px;
  }

  .left-column,
  .center-column,
  .right-column {
    width: 100%;
  }

  .inline-card-selector {
    position: static;
    width: 100%;
    margin-top: 10px;
    transform: none;
    z-index: 5;
    box-shadow: none;
    border-radius: 20px;
  }

  .inline-card-selector.visible {
    transform: none;
  }

  #my-card-selector {
    order: 2;
  }

  #dealer-card-selector {
    order: 5;
  }

  .dealer-section .card-selector-grid {
    position: absolute;
    background-color: #e6ecf2;
    padding: 15px;
    top: 100%;
    left: 120%;
    transform: translate(-70%, -0%);
    width: 180%;
    border-radius: 20px;
  }

  .bottom-sections {
    flex-direction: column;
    flex-direction: row;
    gap: 10px;
  }

  .dealer-section,
  .other-players-section {
    width: 100%;
  }

  .count-button {
    font-family: Poppins;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    text-transform: capitalize;
  }

  .actions-container {
    /* display: grid;
    grid-template-columns: repeat(3, 1fr); */
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

  .actions-main-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
  }

  .action-buttons-container {
    width: 100%;
  }

  .action-button {
    width: 100%;
    height: 36px;
    font-size: 14px;
    background-color: #e6ecf2;
    border-radius: 12px;
    font-family: Poppins;
    font-weight: 400;
    font-size: 10px;
    line-height: 10.93px;
    letter-spacing: 0%;
    text-transform: capitalize;
  }

  .actions-title {
    /* grid-column: 1 / -1; */
    margin: 10px 0;
    /* font-size: 16px; */
  }

  .special-action-button {
    width: 100%;
    height: 40px;
    font-size: 14px;
    border-radius: 12px;
  }

  .special-buttons-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .revert-button {
    /* grid-column: 1 / -1; */
    /* grid-template-columns: repeat(1, 1fr); */
    width: 100%;
    font-family: Poppins;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    border-radius: 16px;
    /* border-radius: 16px; */
    padding: 8px 12px 8px 4px;
  }

  .new-hand-button {
    /* grid-column: 1 / 3; */
    width: 100%;
    padding: 8px 12px 8px 4px;
    border-radius: 16px;
    font-family: Poppins;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
  }
  .new-shoe-button {
    /* grid-column: 3 / 4; */
    border-radius: 16px;
    width: 100%;
    font-family: Poppins;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    padding: 8px 12px 8px 4px;
  }

  .right-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  /* Make the params-button take full width */
  .params-button {
    grid-column: 1 / -1; /* Span all columns */
    width: 100%;
  }

  .setting-section {
    height: auto;
    width: auto;
    padding: 10px;
    border-radius: 20px;
  }

  .info-section {
    height: auto;
    width: auto;
    padding: 10px;
    border-radius: 20px;
  }

  .count-section {
    grid-column: 1 / -1;
  }

  .setting-section,
  .info-section,
  .count-section {
    width: 100%;
  }

  .params-modal {
    width: 95%;
    padding: 20px;
    margin: 10px;
    border-radius: 24px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .params-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .params-grid::after {
    display: none;
  }

  .params-modal-content h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .param-row {
    flex-direction: column;
    padding: 12px 5px;
    border-bottom: 1px solid rgba(60, 43, 94, 0.1);
    text-align: center;
  }

  .param-label {
    font-size: 14px;
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
  }

  .param-control {
    width: 100%;
    gap: 20px;
    justify-content: center;
    align-items: center;
  }

  .param-value {
    /* width: auto; */
    min-width: 120px;
    font-size: 14px;
    text-align: center;
    order: 2;
  }

  .arrow-btn {
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .arrow-btn.left {
    margin-left: 0;
    order: 1;
  }

  .arrow-btn.right {
    order: 3;
  }

  .set-calculator-btn {
    width: 100%;
    margin-top: 15px;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
  }

  .hand-section,
  .dealer-section {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .picker-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .inline-card-selector {
    padding: 10px;
  }

  .card-selector-grid {
    gap: 5px;
    /* grid-template-columns: repeat(5, 1fr); */
  }

  .params-modal {
    padding: 15px;
    border-radius: 20px;
  }

  .params-modal-content h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .param-row {
    padding: 10px 2px;
  }

  .param-label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .param-value {
    font-size: 13px;
  }

  .arrow-btn {
    font-size: 12px;
  }

  .set-calculator-btn {
    margin-top: 10px;
    padding: 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .actions-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 450px) {
  .actions-main-container {
    gap: 10px;
  }
  .dealer-section .card-selector-grid {
    gap: 0px;
    padding: 10px;
  }

  .hand-section .inline-card-selector .card-button {
    height: 40px;
    padding: 0px;
  }
  .hand-section .inline-card-selector {
    padding: 0px;
  }
}

@media (max-width: 400px) {
  .actions-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 385px) {
  .actions-main-container {
    gap: 10px;
  }
  .hand-section .inline-card-selector .card-button {
    padding: 5px;
  }
}

@media (max-width: 370px) {
  .right-column {
    grid-template-columns: repeat(1, 1fr);
  }
}

.close-modal-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #8f8f8f;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 16px; /* Match top-right corner with modal */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.close-modal-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

.split-suggestion-button {
  position: relative;
  padding: 8px 12px;
  font-weight: 400;
  font-size: 0.9rem; /* text-lg */
  color: white;
  border-radius: 0.6rem; /* rounded-lg */
  background: linear-gradient(to right, #22c55e, #15803d); /* from-green-500 to-green-700 */
  box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.3); /* shadow-green-500/30 */
  transition: all 0.3s ease-out;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
  position: absolute;
  left: 67%;
  top: 5%;
  display: none;
}

.split-suggestion-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -10;
  border-radius: 0.5rem;
  background: linear-gradient(to right, #22c55e, #15803d); /* from-green-500 to-green-700 */
  animation: pulse 2s infinite;
  filter: blur(12px); /* blur-xl */
  opacity: 0.7;
}

.split-suggestion-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.5); /* hover:shadow-green-500/50 */
  background: linear-gradient(to right, #16a34a, #166534);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.4;
  }
}

.card-selector-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.card-selector-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
