@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');

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

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  height: 100vh;
  color: #333;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  position: relative;
  width: 100rem;
  height: 60rem;
  background-color: rgba(22, 167, 65, 0.651);
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25);
  border-radius: 100px;
  overflow: hidden;
  display: flex;
}

.player {
  flex: 50%;
  padding: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.75s;
}

.btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(0, 0, 0);
  border: none;
  font-family: inherit;
  font-size: 2.2rem;
  text-transform: uppercase;
  text-decoration: solid;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.2s;
  background-color: rgba(156, 154, 154, 0.6);
  padding: 0.7rem 2.5rem;
  border-radius: 50rem;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
}

.btn--chips {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(0, 0, 0);
  border: none;
  font-family: inherit;
  font-size: 2.2rem;
  text-transform: uppercase;
  text-decoration: solid;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.2s;
  background-color: rgba(156, 154, 154, 0.6);
  padding: 0.7rem 2.5rem;
  border-radius: 50rem;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
}

.btn--subChips {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(0, 0, 0);
  border: none;
  font-family: inherit;
  font-size: 2.2rem;
  text-transform: uppercase;
  text-decoration: solid;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.2s;
  background-color: rgba(156, 154, 154, 0.6);
  padding: 0.7rem 2.5rem;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
}

.rndcrnrs {
  border-radius: 10px;
}

.btn--deal {
  top: 25rem;
  left: 20%;
  width: 150px;
}
.btn--hit {
  top: 52rem;
  left: 30%;
  width: 150px;
}
.btn--stand {
  top: 52rem;
  left: 50%;
  width: 150px;
}
.btn--dbl {
  top: 52rem;
  left: 70%;
  width: 150px;
}
.btn--split {
  top: 52rem;
  left: 10%;
  width: 150px;
}

.btn--one {
  top: 15rem;
  left: 85%;
  width: 100px;
  background-color: rgb(255, 255, 255);
}

.btn--five {
  top: 25rem;
  left: 85%;
  width: 100px;
  background-color: rgb(255, 255, 255);
}

.btn--twentyFive {
  top: 35rem;
  left: 85%;
  width: 100px;
  background-color: rgb(255, 255, 255);
}

.btn--hundred {
  top: 45rem;
  left: 85%;
  width: 100px;
  background-color: rgb(255, 255, 255);
}

.btn--subOne {
  top: 15rem;
  left: 94%;
  width: 25px;
  background-color: rgb(255, 255, 255);
}

.btn--subFive {
  top: 25rem;
  left: 94%;
  width: 25px;
  background-color: rgb(255, 255, 255);
}

.btn--subTwentyFive {
  top: 35rem;
  left: 94%;
  width: 25px;
  background-color: rgb(255, 255, 255);
}

.btn--subHundred {
  top: 45rem;
  left: 94%;
  width: 25px;
  background-color: rgb(255, 255, 255);
}

.btn:active {
  transform: translate(-50%, 3px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.btn:focus {
  outline: none;
}

.dlr1 {
  position: absolute;
  left: 40%;
  top: 5rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.cardback {
  position: absolute;
  left: 55%;
  top: 5rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.dlr2 {
  position: absolute;
  left: 55%;
  top: 5rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.dlr3 {
  position: absolute;
  left: 57.5%;
  top: 5rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.dlr4 {
  position: absolute;
  left: 60%;
  top: 5rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.dlr5 {
  position: absolute;
  left: 62.5%;
  top: 5rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.dlr6 {
  position: absolute;
  left: 65%;
  top: 5rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.plr1 {
  position: absolute;
  left: 40%;
  top: 28rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.plr2 {
  position: absolute;
  left: 55%;
  top: 28rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.plr3 {
  position: absolute;
  left: 57.5%;
  top: 28rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.plr4 {
  position: absolute;
  left: 60%;
  top: 28rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.plr5 {
  position: absolute;
  left: 62.5%;
  top: 28rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.plr6 {
  position: absolute;
  left: 65%;
  top: 28rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.plr7 {
  position: absolute;
  left: 60%;
  top: 28rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.plr8 {
  position: absolute;
  left: 62.5%;
  top: 28rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.plr9 {
  position: absolute;
  left: 67.5%;
  top: 28rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.plr10 {
  position: absolute;
  left: 70%;
  top: 28rem;
  transform: translateX(-50%);
  height: 20rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

/* Split mode - hand 1 (top hand) */
.split-mode .plr1,
.split-mode .plr2,
.split-mode .plr3,
.split-mode .plr7,
.split-mode .plr8 {
  top: 25rem !important;
}

/* Split mode - hand 2 (bottom hand) */
.split-mode .plr4,
.split-mode .plr5,
.split-mode .plr6,
.split-mode .plr9,
.split-mode .plr10 {
  top: 31rem !important;
}

.pscore-hand1 {
  position: absolute;
  left: 4%;
  top: 33rem;
  transform: translateX(-50%);
  height: 10rem;
  width: 10rem;
  text-transform: uppercase;
  color: #000000;
  text-align: center;
  font-size: 50px;
  opacity: 75%;
}

.pscore-hand2 {
  position: absolute;
  left: 4%;
  top: 39rem;
  transform: translateX(-50%);
  height: 10rem;
  width: 10rem;
  text-transform: uppercase;
  color: #000000;
  text-align: center;
  font-size: 50px;
  opacity: 75%;
}

.hand-label-1 {
  position: absolute;
  left: 4%;
  top: 28rem;
  transform: translateX(-50%);
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hand-label-2 {
  position: absolute;
  left: 4%;
  top: 34rem;
  transform: translateX(-50%);
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hidden {
  display: none;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  background-image: url("../Images/intro.jpg");
  background-position: center;
  background-repeat: no-repeat;
  height: 420px;
  width: 420px;
  padding: 6rem;
  border-radius: 15px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(177, 166, 166, 0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

.display {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  height: 15rem;
  width: 60rem;
  border-radius: 10px;
  background-color: rgb(74, 136, 136);
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  vertical-align: 20px;
  font-size: 35px;
  opacity: 75%;
}

.display-text {
  margin-top: 9%;
}

.bet {
  position: absolute;
  left: 20%;
  top: 7rem;
  transform: translateX(-50%);
  height: 15rem;
  width: 22rem;
  border-radius: 10px;
  background-color: rgb(74, 136, 136);
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  vertical-align: 20px;
  font-size: 35px;
  opacity: 75%;
}

.betamt {
  position: absolute;
  left: 18%;
  top: 12rem;
  transform: translateX(-50%);
  height: 15rem;
  width: 10rem;
  text-transform: uppercase;
  color: #000000;
  text-align: center;
  vertical-align: 20px;
  font-size: 65px;
  opacity: 75%;
}

.pscore {
  position: absolute;
  left: 4%;
  top: 36rem;
  transform: translateX(-50%);
  height: 10rem;
  width: 10rem;
  text-transform: uppercase;
  color: #000000;
  text-align: center;
  vertical-align: 150px;
  font-size: 50px;
  opacity: 75%;
}

.dscore {
  position: absolute;
  left: 4%;
  top: 11rem;
  transform: translateX(-50%);
  height: 10rem;
  width: 10rem;
  text-transform: uppercase;
  color: #000000;
  text-align: center;
  vertical-align: 150px;
  font-size: 50px;
  opacity: 75%;
}

.bankroll {
  position: absolute;
  left: 20%;
  top: 32.5rem;
  transform: translateX(-50%);
  height: 15rem;
  width: 22rem;
  border-radius: 10px;
  background-color: rgb(74, 136, 136);
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  vertical-align: 20px;
  font-size: 35px;
  opacity: 75%;
}

.bankroll2 {
  position: absolute;
  left: 18%;
  top: 37.5rem;
  transform: translateX(-50%);
  height: 15rem;
  width: 10rem;
  text-transform: uppercase;
  color: #000000;
  text-align: center;
  vertical-align: 20px;
  font-size: 65px;
  opacity: 75%;
}

.container {
  margin: 5px;
  padding: 5px;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
  /* Scale main game board to fit mobile screens */
  main {
    width: 98vw;
    height: 95vh;
    border-radius: 20px;
  }

  /* Card sizes for mobile - doubled */
  .dlr1, .dlr2, .dlr3, .dlr4, .dlr5, .dlr6,
  .plr1, .plr2, .plr3, .plr4, .plr5, .plr6,
  .plr7, .plr8, .plr9, .plr10,
  .cardback {
    height: 20rem !important;
  }

  /* Adjust dealer cards positioning - shifted right */
  .dlr1 { top: 2rem !important; left: 38% !important; }
  .cardback { top: 2rem !important; left: 50% !important; }
  .dlr2 { top: 2rem !important; left: 50% !important; }
  .dlr3 { top: 2rem !important; left: 55% !important; }
  .dlr4 { top: 2rem !important; left: 60% !important; }
  .dlr5 { top: 2rem !important; left: 65% !important; }
  .dlr6 { top: 2rem !important; left: 70% !important; }

  /* Adjust player cards positioning - shifted right */
  .plr1 { top: 45% !important; left: 38% !important; }
  .plr2 { top: 45% !important; left: 50% !important; }
  .plr3 { top: 45% !important; left: 55% !important; }
  .plr4 { top: 45% !important; left: 60% !important; }
  .plr5 { top: 45% !important; left: 65% !important; }
  .plr6 { top: 45% !important; left: 70% !important; }
  .plr7 { top: 45% !important; left: 43% !important; }
  .plr8 { top: 45% !important; left: 46% !important; }
  .plr9 { top: 45% !important; left: 75% !important; }
  .plr10 { top: 45% !important; left: 80% !important; }

  /* Split mode positioning for mobile */
  .split-mode .plr1,
  .split-mode .plr2,
  .split-mode .plr3,
  .split-mode .plr7,
  .split-mode .plr8 {
    top: 38% !important;
  }

  .split-mode .plr4,
  .split-mode .plr5,
  .split-mode .plr6,
  .split-mode .plr9,
  .split-mode .plr10 {
    top: 52% !important;
  }

  /* Action buttons - stack vertically at bottom */
  .btn--deal {
    top: auto !important;
    bottom: 18rem !important;
    left: 50% !important;
    width: 120px !important;
    font-size: 1.8rem !important;
    padding: 0.5rem 1.5rem !important;
  }

  .btn--hit {
    top: auto !important;
    bottom: 13rem !important;
    left: 20% !important;
    width: 100px !important;
    font-size: 1.6rem !important;
    padding: 0.5rem 1.5rem !important;
  }

  .btn--stand {
    top: auto !important;
    bottom: 13rem !important;
    left: 50% !important;
    width: 100px !important;
    font-size: 1.6rem !important;
    padding: 0.5rem 1.5rem !important;
  }

  .btn--dbl {
    top: auto !important;
    bottom: 13rem !important;
    left: 80% !important;
    width: 100px !important;
    font-size: 1.6rem !important;
    padding: 0.5rem 1.5rem !important;
  }

  .btn--split {
    top: auto !important;
    bottom: 8rem !important;
    left: 50% !important;
    width: 100px !important;
    font-size: 1.6rem !important;
    padding: 0.5rem 1.5rem !important;
  }

  /* Chip buttons - move to left side in vertical stack */
  .btn--one {
    top: 25% !important;
    left: 5% !important;
    width: 60px !important;
    font-size: 1.6rem !important;
    padding: 0.5rem 1rem !important;
  }

  .btn--five {
    top: 32% !important;
    left: 5% !important;
    width: 60px !important;
    font-size: 1.6rem !important;
    padding: 0.5rem 1rem !important;
  }

  .btn--twentyFive {
    top: 39% !important;
    left: 5% !important;
    width: 60px !important;
    font-size: 1.6rem !important;
    padding: 0.5rem 1rem !important;
  }

  .btn--hundred {
    top: 46% !important;
    left: 5% !important;
    width: 60px !important;
    font-size: 1.6rem !important;
    padding: 0.5rem 1rem !important;
  }

  /* Subtract chip buttons */
  .btn--subOne {
    top: 25% !important;
    left: 15% !important;
    width: 30px !important;
    font-size: 1.4rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  .btn--subFive {
    top: 32% !important;
    left: 15% !important;
    width: 30px !important;
    font-size: 1.4rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  .btn--subTwentyFive {
    top: 39% !important;
    left: 15% !important;
    width: 30px !important;
    font-size: 1.4rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  .btn--subHundred {
    top: 46% !important;
    left: 15% !important;
    width: 30px !important;
    font-size: 1.4rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  /* Display message */
  .display {
    top: 1rem !important;
    width: 90% !important;
    height: 8rem !important;
    font-size: 20px !important;
  }

  .display-text {
    margin-top: 5% !important;
  }

  /* Bet display */
  .bet {
    top: 12% !important;
    left: 75% !important;
    width: 12rem !important;
    height: 9rem !important;
    font-size: 18px !important;
  }

  .betamt {
    top: 15.5% !important;
    left: 75% !important;
    font-size: 32px !important;
  }

  /* Bankroll display */
  .bankroll {
    top: 25% !important;
    left: 75% !important;
    width: 12rem !important;
    height: 9rem !important;
    font-size: 18px !important;
  }

  .bankroll2 {
    top: 28.5% !important;
    left: 75% !important;
    font-size: 32px !important;
  }

  /* Score displays */
  .pscore {
    top: 38% !important;
    left: 90% !important;
    font-size: 35px !important;
  }

  .dscore {
    top: 8% !important;
    left: 90% !important;
    font-size: 35px !important;
  }

  /* Split hand scores */
  .pscore-hand1 {
    top: 35% !important;
    left: 90% !important;
    font-size: 30px !important;
  }

  .pscore-hand2 {
    top: 49% !important;
    left: 90% !important;
    font-size: 30px !important;
  }

  /* Split hand labels */
  .hand-label-1 {
    top: 32% !important;
    left: 90% !important;
    font-size: 14px !important;
  }

  .hand-label-2 {
    top: 46% !important;
    left: 90% !important;
    font-size: 14px !important;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  /* Card sizes for small phones - doubled */
  .dlr1, .dlr2, .dlr3, .dlr4, .dlr5, .dlr6,
  .plr1, .plr2, .plr3, .plr4, .plr5, .plr6,
  .plr7, .plr8, .plr9, .plr10,
  .cardback {
    height: 16rem !important;
  }

  /* Adjust button sizes */
  .btn--deal { width: 100px !important; font-size: 1.6rem !important; }
  .btn--hit, .btn--stand, .btn--dbl, .btn--split {
    width: 80px !important;
    font-size: 1.4rem !important;
  }

  /* Smaller chip buttons */
  .btn--one, .btn--five, .btn--twentyFive, .btn--hundred {
    width: 50px !important;
    font-size: 1.4rem !important;
  }

  /* Smaller score displays */
  .pscore, .dscore {
    font-size: 28px !important;
  }

  .betamt, .bankroll2 {
    font-size: 28px !important;
  }

  /* Adjust bet/bankroll for very small screens */
  .bet, .bankroll {
    width: 10rem !important;
    height: 8rem !important;
    font-size: 16px !important;
  }
}



/* are you able to update my code for me by adopting these best practices and listing it how I did with each filename called out then the code for each following that
 */
