body {
    font-family: 'Luckiest Guy', cursive;
    background-color: #1d1d1d;
    margin: 0;
    padding: 20px;
    text-align: center;
    font-weight: lighter;
}

h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.game-table-container {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

.table-background {
  width: 700px; /* or your desired size */
  height: 500px;
  background-image: url('/assets/table.avif');
  background-size: cover;      /* or 'contain' depending on your needs */
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 20px;         /* optional: for rounded corners like a table */
  border: 2px solid #743105; /* optional: for a border around the table */
}

.data-container,
.player-container {
    position: absolute;
    color: white;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 8px;
}

.dealer-container {
    position: absolute;
    width: 700px; /* Match your .table-background width */
    height: 80px; /* Adjust as needed */    
    top: 60px;
    transform: translateX(-3.5%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
}

.deck-image {
    position: absolute;
    right: 45px; 
    top: 70px; 
    z-index: 2; 
}

.player-container {
    display: flex;
    flex-direction: row;
    justify-content: center; /* center items horizontally */
    align-items: center; /* vertically center items */
    gap: 150px;           /* space between items */
    position: absolute;
    color: white;
    left: 55%;
    transform: translateX(-82%);
    padding: 8px 16px;
    border-radius: 8px;
    top: 390px;

}

.data-container   { top: 230px; }
.player-container { bottom: 0px; }

.controls {
    display: flex;
    justify-content: center;
    position: relative;
    top: 30px;
    right: -37vw;
}

.controls button {
    padding: 10px 20px;
    font-size: 1em;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #036418;
    color: white;
}

.controls button:hover {
    background-color: #3d2802;
}

#dealer-hand, #player-hand {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

#player-hand {
  left: 0px;
  position: relative;
}

.card {
    width: 50px;
    height: 75px;
    background-color: #ffffff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none !important;
}

.unavailable {
    opacity: 0.3;
    pointer-events: none;
}

.empty-title {
  color: transparent
}

h3, #message {
    color: #ffffff;
    font-size: 1.2em;
    margin: 10px 0;
}

h1, .hand-title, p {
    font-family: 'Luckiest Guy', cursive;
}

main {
 grid-area: main;
}

.bets-section-item {
 grid-area: bets;
 background-color: #036418;
 padding: 10px;
 border-radius: 10px;
 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
 text-align: center;
 align-items: center;
 width: 400px;
 right: 10vw;
 position: relative;
 transform: translateY(50%);
}

.my-money-item {
  grid-area: my-money;
  background-color: #036418;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  align-items: center;
  width: 400px;
  right: 10vw;
  position: relative;
  transform: translateY(40%);
}

#leave-the-casino-button {
 grid-area: leave;
 background-color: gold;
 color: black;
 text-align: center;
 align-items: center;
 padding: 5px;
 width: 150px;
 right: 3vw;
 transform: translateY(-200%);
 position: relative;
 font-weight: bold;
 border-radius: 5px;
}

#leave-the-casino-button:hover {
 cursor: pointer;
 background-color: rgb(224, 191, 0);

}

#allin-bet-button {
    padding: 5px 15px; 
    background-color: gold; 
    color:black
}

#allin-bet-button:hover {
  cursor: pointer;
  background-color: rgb(224, 191, 0);
}

.bets-section-item button {
    background-color: #85bb65;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.bets-section-item button:hover {
    background-color: #3d2802;
}

.bets-section-item h3, 
.bets-section-item p {
    color: white;
    font-size: 1.2em;
    margin-bottom: 10px;
    
}

.my-money-container h3,
.my-money-container p  {
    color: white;
    font-size: 1.2em;
    margin-bottom: 10px;
    
}

.big-container-game {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas: 
     "main main main bets"
     "main main main my-money"
     "main main main leave";
    align-items: center;
    justify-content: center;
    top: 10px;
    position: relative;
}

.bets-section-item button.disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

#clear-bet-button {
    background-color: #cf1515;
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#clear-bet-button:hover {
    background-color: #a00;
}

footer {
    font-family: 'Courier New', Courier, monospace;
    position: fixed;
    background-color: #1d1d1d;
    text-align: right;
    padding: 0px;
    font-size: 12px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;   
    width: 100vw;
    left: 0;
    bottom: 0;
}

#developer-info {
    margin-right: 20px;
    font-family: 'Courier New', Courier, monospace;
}

footer a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.money-display-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0; /* Remove gap if you want tighter layout */
  position: relative;
  margin-bottom: 15px;
}

#money-lost-item,
#money-won-item {
  width: 200px; /* Reserve enough space for the text */
  min-height: 1em; /* Prevent collapse when empty */
  text-align: center;
  font-size: 1.2em;
}

#my-money-item {
  flex: 1 0 auto;
  text-align: center;
}

.money-display-container,
#my-money-item,
#money-lost-item,
#money-won-item,
#current-bet {
  font-family: 'Roboto Mono', monospace;
}

#modal-backdrop {    /*blur effect background when popup*/
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 120vw;
  height: 150vh;
  background: rgba(0,0,0,0.2); /* Optional: darken */
  backdrop-filter: blur(8px);
  z-index: 999; /* Below your modal */
  display: none; /* Hidden by default */
}

#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: auto;
  background: #036418;
  color: white;
  border: 1px solid #333;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

#closePopup {
    display: block;
    top: 10px;
    right: 10px;
    text-decoration: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    font-size: smaller;
    text-align: right;
}  

.showControlsList {
    text-decoration: none;
    list-style: none;
    font-size: 13px;
    justify-content: left;
    text-align: left;           /* Aligns text to the left */
    display: flex;
    flex-direction: column;
    align-items: flex-start;    /* Aligns items to the left */
    justify-content: center;
}

.showControlsList li {
  display: flex;
  align-items: center;        /* Vertically centers icon and text */
  margin-bottom: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
}   

.key-icon {      
  display: inline-block;
  min-width: 22px;
  padding: 2px 8px;
  margin-right: 8px;
  background: #eee;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: #333;
  text-align: center;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  vertical-align: middle;
  font-weight: bold;
}

.player-hand-split {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

#player-hand.split-style-left {
    position: absolute;
    left: -300px;
}

.split-style-right {
    position: absolute;
    left: 150px;
}

#modal-backdrop-leave {    /*blur effect background when popup*/
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 120vw;
  height: 150vh;
  background: rgba(0,0,0,0.2); /* Optional: darken */
  backdrop-filter: blur(8px);
  z-index: 999; /* Below your modal */
  display: none; /* Hidden by default */
}

#popup-leave {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: auto;
  background: #036418;
  color: white;
  border: 1px solid #333;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

#closePopup-leave {
    display: block;
    top: 10px;
    right: 10px;
    text-decoration: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    font-size: smaller;
    text-align: right;
}  

#popup-leave input {
  padding: 10px;
  margin: 10px;
}

#popup-leave button {
    padding: 10px 20px;
    font-size: 1em;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #85bb65;
    color: white;
}

#modal-backdrop-records {    /*blur effect background when popup*/
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 120vw;
  height: 150vh;
  background: rgba(0,0,0,0.2); /* Optional: darken */
  backdrop-filter: blur(8px);
  z-index: 999; /* Below your modal */
  display: none; /* Hidden by default */
}

#popup-records {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: auto;
  background: #036418;
  color: white;
  border: 1px solid #333;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

#closePopup-records {
    display: block;
    top: 10px;
    right: 10px;
    text-decoration: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    font-size: smaller;
    text-align: right;
} 

#highscores-list {
    font-family: 'Courier New', Courier, monospace;
    list-style: none;
    counter-reset: list-item;  
    text-align: left;
    font-weight: bold;
    right: 25px;
    position: relative;
}

#modal-backdrop-lose {    /*blur effect background when popup*/
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 120vw;
  height: 150vh;
  background: rgba(0,0,0,0.2); /* Optional: darken */
  backdrop-filter: blur(8px);
  z-index: 999; /* Below your modal */
  display: none; /* Hidden by default */
}

#popup-lose {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: auto;
  background: #036418;
  color: white;
  border: 1px solid #333;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

#popup-lose button {
    padding: 10px 20px;
    font-size: 1em;
    margin: 20px 0 0 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #cf1515;
    color: white;
}

#popup-lose h3 {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.record-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  counter-increment: list-item;
  position: relative;
  padding-left: 2em; /* Space for the number */
}

.record-row::before {
  content: counter(list-item) ".";
  position: absolute;
  left: 0;
  width: 2em;
  text-align: right;
  font-family: inherit;
  color: inherit;
}

.no-records {
  counter-increment: none;
}

.record-money {
  position: relative;
  text-align: right;
  min-width: 5px; /* Adjust as needed */
  display: inline-block;
}

.img-popup {
    width: 400px;
}

.score-dots {
  flex: 1 1 auto;
  border-bottom: 2px dotted #fff;
  margin: 0 4px;
  height: 0.2em;
}

.loading-gif {
  display: block;
  margin: 20px auto;
  width: 40px;
  height: 40px;
}

@media (max-width: 600px) and (orientation: portrait) {                    /* modo portrait */
  h1 {
    font-size: 1.7em !important;
  }
  h3, p {
    font-size: 1em !important;
  }
 .big-container-game{
    display: block !important;
    width: 100vw !important;
  }
  .game-table-container {
    height: 620px !important;
  }
  .game-main-item {
    position: relative !important;
    height: 620px !important; 
    width: 90vw !important;
    right: 1vw !important;  
    transform: translateY(0%) !important;
    margin: 20px 0 0px 0 !important;
  }
  main, .game-table-container, .table-background {
    position: relative !important;
    width: 95vw !important;
    right: 4px !important;
  }
  .bets-section-item,
  .my-money-item,
  #leave-the-casino-button {
    position: relative !important;
    right: 0vw !important;
    transform: translateY(10%) !important;
    width: 90vw !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  .bets-section-item {
    margin: 20px 0 20px 0 !important;
    padding: 10px 10px 20px 10px !important;
  }
  .my-money-item {
    margin: 15px 0 15px 0 !important;
  }
  .controls {
    margin: 0 !important;
    font-size: 0.8em !important;
    position: relative !important;
    top: 0px !important;
    z-index: 100 !important;
    right: 4vw !important;
  }
  .controls button {
    margin: 0 5px !important;
    padding: 5px 15px !important;
  }
  .dealer-container {
    position: relative !important;
    right: 320px !important;
    top: -500px !important;
    transform: none !important;
  }
  #dealer-hand {
    position: relative !important;
    right: -35vw !important;
  }
  #player-hand {
    left: -5px !important;
  }
  .data-container {
    width: 85% !important;
  }
  .player-container {
    position: relative !important;
    transform: none !important;
    left: 0 !important;
    top: -190px !important;
  }
  .card {
    width: 40px !important;
    height: 60px !important;
  }
  .empty-card {
    width: 40px !important;
    height: 60px !important;
    background-color: transparent !important;
  }
  .player-hand-title {
    position: relative !important;
    bottom: 170px !important;
    left: 0vw !important;
  }
  footer {
    font-size: 0.6em !important;
  }
  #showControls {
    display: none !important;
  }
  .bet-button {
    padding: 8px 14px !important;
    font-size: 0.8em !important;
  }
  #leave-the-casino-button {
    margin: 30px 0 30px 0 !important;
    width: 200px !important;
    right: 4vw !important;
    top: -10px !important; 
  }
  #popup-leave, #popup-lose, #popup-records {
    width: 85vw !important;
    border-radius: 10px !important;
    left: 45vw !important;
    position: relative !important;
    top: 120vh !important;
  }
  #popup-lose, #popup-records {
    top: 100vh !important;
  }
  .img-popup {
    width: 80vw !important;
  }
  #player-hand.split-style-left {
    left: 10vw !important;
    gap: 0px !important;
    position: relative !important;
  }
  .split-style-right {
    position: relative !important;
    left: -10vw !important;
    gap: 0px !important;
  }
 .deck-image {
    right: 20px; 
    top: 60px; 
 }
 .record-row {
    font-size: 0.8em !important;
  } 
  #highscores-list {
    right: 30px !important;   
    width: 80vw !important;
  }
  #restart-button {
    padding: 6px 12px !important;
    font-size: 0.9em !important;
  }
}

@media (max-width: 1200px) and (max-height: 500px) {                    /* modo landscape */
  h1 {
    font-size: 1.6em !important;
    margin-bottom: 50px !important;
  }
  h3, p {
    font-size: 0.8em !important;
  }
  #showControls {
    display: none !important;
  }
  .card {
    width: 40px !important;
    height: 60px !important;
  }
 .big-container-game{
    margin: 10px auto !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr 1fr !important;
    grid-template-areas:
     "main bets"
     "main my-money"
     "main leave";
    width: 90vw !important;
    height: 90vh !important;
  }
  .game-main-item, .game-table-container, .table-background {
    height: 80vh !important; 
    width: 40vw !important;
    right: 1vw !important;  
  }
  .game-main-item {
    bottom: 30vh !important;
    position: relative !important;
  }
  .card {
    width: 30px !important;
    height: 40px !important;
  }
  .empty-card {
    width: 30px !important;
    height: 40px !important;
    background-color: transparent !important;
  }
  .bets-section-item,
  .my-money-item,
  #leave-the-casino-button {
    position: relative !important;
    right: 0vw !important;
    width: 40vw !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  .bets-section-item {
    margin: 20px 0 20px 0 !important;
    transform: translateY(-20%) !important;
  }
  .my-money-item {
    margin: 0 !important;
    padding: 10px 0 10px 0 !important;
    transform: translateY(-30%) !important;
  }
  .money-display-container {
    font-size: 1.2em !important;
  }
  #leave-the-casino-button {
    margin: 30px 0 30px 0 !important;
    font-size: 0.7em !important;
    transform: translateY(-200%) !important;
  }
  .controls {
    margin: 20px 0 20px 0 !important;
    font-size: 0.75em !important;
    position: relative !important;
    top: -70px !important;
    right: -20vw !important;
  }
  .controls button {
    margin: 0 5px !important;
    padding: 5px 15px !important;
    width: auto !important;
  }
  .bet-button, #allin-bet-button, #clear-bet-button {
    padding: 8px 12px !important;
    font-size: 0.7em !important;
  }
  .dealer-container {
    position: relative !important;
    transform: none !important;
    left: 0 !important;
    top: -79vh !important;
    right: 0 !important;
    width: auto !important;
    height: auto !important;
  }
  #dealer-hand {
    position: relative !important;
    right: 0px !important;
  }
  #player-hand {
    left: -5px !important;
  }
  .data-container {
    width: 85% !important;
    top: 150px !important;
  }
  .player-container {
    position: relative !important;
    transform: none !important;
    left: 0 !important;
    top: -120px !important;
  }
  .player-hand-title {
    position: relative !important;
    bottom: 110px !important;
    left: 0vw !important;
  }
  footer {
    font-size: 0.6em !important;
  }
  #developer-info {
    margin-right: 60px !important;
  }
  #popup-leave, #popup-lose, #popup-records {
    width: 40vw !important;
    border-radius: 10px !important;
    left: 45vw !important;
    position: relative !important;
    top: -300px !important;
    font-size: 1em !important;
  }
  #player-hand.split-style-left {
    top: 0px !important;
    left: 3vw !important;
    gap: 0px !important;
    position: relative !important;
  }
  .split-style-right {
    top: 0px !important;
    position: relative !important;
    left: -4vw !important;
    gap: 0px !important;
  }
 .deck-image {
    right: 15px; 
    top: 52px; 
 }
 .record-row {
    font-size: 0.8em !important;
  }
  .img-popup {
    width: 35vw !important;
  }
  #recordButton {
    font-size: 0.8em !important;
    padding: 5px 15px !important;
  }
  #namePlayer {
    font-size: 0.8em !important;
    padding: 5px !important;
  }
}

@media (min-height: 768px) and (max-width: 1366px) and (orientation: landscape) {          /* modo ipad */
  h1 {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
  }
  h3, p {
    font-size: 0.8em !important;
  }
  #showControls {
    display: none !important;
  }
  .card {
    width: 40px !important;
    height: 60px !important;
  }
 .big-container-game{
    margin: 10px auto !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr 1fr !important;
    grid-template-areas:
     "main bets"
     "main my-money"
     "main leave";
    width: 90vw !important;
    height: 90vh !important;
  }
  .game-main-item, .game-table-container, .table-background {
    height: 400px !important; 
    width: 400px !important;
    right: 1vw !important;  
  }
  .game-main-item {
    bottom: 15vh !important;
    left: 5vw !important;
    position: relative !important;
  }
  .card {
    width: 30px !important;
    height: 40px !important;
  }
  .empty-card {
    width: 30px !important;
    height: 40px !important;
    background-color: transparent !important;
  }
  .bets-section-item,
  .my-money-item,
  #leave-the-casino-button {
    position: relative !important;
    right: 0vw !important;
    width: 450px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  .bets-section-item {
    margin: 20px 0 20px 0 !important;
    transform: translateY(30%) !important;
  }
  .my-money-item {
    margin: 0 !important;
    padding: 10px 0 10px 0 !important;
    transform: translateY(-20%) !important;
  }
  .money-display-container {
    font-size: 1.2em !important;
  }
  #leave-the-casino-button {
    margin: 30px 0 30px 0 !important;
    font-size: 0.7em !important;
    transform: translateY(-580%) !important;
  }
  .controls {
    margin: 20px 0 20px 0 !important;
    font-size: 0.75em !important;
    position: relative !important;
    top: -150px !important;
    right: -20vw !important;
  }
  .controls button {
    margin: 0 5px !important;
    padding: 5px 15px !important;
    width: auto !important;
  }
  .bet-button, #allin-bet-button, #clear-bet-button {
    padding: 9px 25px !important;
    font-size: 0.8em !important;
  }
  .dealer-container {
    position: relative !important;
    transform: none !important;
    left: 0 !important;
    top: -395px !important;
    right: 0 !important;
    width: auto !important;
    height: auto !important;
  }
  #dealer-hand {
    position: relative !important;
    right: 0px !important;
  }
  #player-hand {
    left: -5px !important;
  }
  .data-container {
    width: 85% !important;
    top: 200px !important;
  }
  .player-container {
    position: relative !important;
    transform: none !important;
    left: 0 !important;
    top: -120px !important;
  }
  .player-hand-title {
    position: relative !important;
    bottom: 110px !important;
    left: 0vw !important;
  }
  footer {
    font-size: 0.6em !important;
  }
  #developer-info {
    margin-right: 60px !important;
  }
  #popup-leave, #popup-lose, #popup-records {
    width: 40vw !important;
    border-radius: 10px !important;
    left: 45vw !important;
    position: relative !important;
    top: -300px !important;
    font-size: 1em !important;
  }
  #player-hand.split-style-left {
    top: 0px !important;
    left: 3vw !important;
    gap: 0px !important;
    position: relative !important;
  }
  .split-style-right {
    top: 0px !important;
    position: relative !important;
    left: -4vw !important;
    gap: 0px !important;
  }
 .deck-image {
    right: 15px; 
    top: 52px; 
 }
 .record-row {
    font-size: 0.8em !important;
  }
  .img-popup {
    width: 35vw !important;
  }
  #recordButton {
    font-size: 0.8em !important;
    padding: 5px 15px !important;
  }
  #namePlayer {
    font-size: 0.8em !important;
    padding: 5px !important;
  }
}

@media (min-width: 768px) and (max-height: 1366px) and (orientation: portrait) {   /*modo ipad */
  h1 {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
  }
  h3, p {
    font-size: 0.8em !important;
  }
  #showControls {
    display: none !important;
  }
  .card {
    width: 40px !important;
    height: 60px !important;
  }
 .big-container-game{
    margin: 10px auto !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr 1fr !important;
    grid-template-areas:
     "main bets"
     "main my-money"
     "main leave";
    width: 90vw !important;
    height: 90vh !important;
  }
  .game-main-item, .game-table-container, .table-background {
    height: 400px !important; 
    width: 400px !important;
    right: 1vw !important;  
  }
  .game-main-item {
    bottom: 15vh !important;
    position: relative !important;
  }
  .card {
    width: 30px !important;
    height: 40px !important;
  }
  .empty-card {
    width: 30px !important;
    height: 40px !important;
    background-color: transparent !important;
  }
  .bets-section-item,
  .my-money-item,
  #leave-the-casino-button {
    position: relative !important;
    right: 0vw !important;
    width: 350px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  .bets-section-item {
    margin: 20px 0 20px 0 !important;
    transform: translateY(70%) !important;
  }
  .my-money-item {
    margin: 0 !important;
    padding: 10px 0 10px 0 !important;
    transform: translateY(-50%) !important;
  }
  .money-display-container {
    font-size: 1.2em !important;
  }
  #leave-the-casino-button {
    margin: 30px 0 30px 0 !important;
    font-size: 0.7em !important;
    transform: translateY(-1150%) !important;
  }
  .controls {
    margin: 20px 0 20px 0 !important;
    font-size: 0.75em !important;
    position: relative !important;
    top: -380px !important;
    right: -20vw !important;
  }
  .controls button {
    margin: 0 5px !important;
    padding: 5px 15px !important;
    width: auto !important;
  }
  .bet-button, #allin-bet-button, #clear-bet-button {
    padding: 9px 15px !important;
    font-size: 0.8em !important;
  }
  .dealer-container {
    position: relative !important;
    transform: none !important;
    left: 0 !important;
    top: -395px !important;
    right: 0 !important;
    width: auto !important;
    height: auto !important;
  }
  #dealer-hand {
    position: relative !important;
    right: 0px !important;
  }
  #player-hand {
    left: -5px !important;
  }
  .data-container {
    width: 85% !important;
    top: 200px !important;
  }
  .player-container {
    position: relative !important;
    transform: none !important;
    left: 0 !important;
    top: -120px !important;
  }
  .player-hand-title {
    position: relative !important;
    bottom: 110px !important;
    left: 0vw !important;
  }
  footer {
    font-size: 0.6em !important;
  }
  #developer-info {
    margin-right: 60px !important;
  }
  #popup-leave, #popup-lose, #popup-records {
    width: 40vw !important;
    border-radius: 10px !important;
    left: 45vw !important;
    position: relative !important;
    top: -300px !important;
    font-size: 1em !important;
  }
  #player-hand.split-style-left {
    top: 0px !important;
    left: 3vw !important;
    gap: 0px !important;
    position: relative !important;
  }
  .split-style-right {
    top: 0px !important;
    position: relative !important;
    left: -4vw !important;
    gap: 0px !important;
  }
 .deck-image {
    right: 15px; 
    top: 52px; 
 }
 .record-row {
    font-size: 0.8em !important;
  }
  .img-popup {
    width: 35vw !important;
  }
  #recordButton {
    font-size: 0.8em !important;
    padding: 5px 15px !important;
  }
  #namePlayer {
    font-size: 0.8em !important;
    padding: 5px !important;
  }
}