body {
    text-align: center;
    background-color: green;
}

#dealer-cards img,
#your-cards img {
    height: 175px;
    width: 125px;
    margin: 5px; /* add spacing between cards */
    border-radius: 6px; /* optional: soften corners */
}

#hit, #stay, #retry {
    width: 100px;
    height: 50px;
    font-size: 20px;
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;       /* NO wrapping, always one row */
  gap: 10px;
  max-width: 100%;         /* full width container */
  margin: 0 auto;
  overflow-x: auto;        /* allow horizontal scroll if needed */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

.button-row button {
  flex: 1 1 auto;          /* allow shrinking */
  min-width: 100px;        /* buttons won’t get smaller than 100px */
  max-width: 300px;        /* optional max width */
  height: 60px;
  font-size: 18px;
  box-sizing: border-box;
  white-space: nowrap;     /* prevent button text wrapping */
}

@media screen and (max-width: 800px) {
  .button-row {
    max-width: 100%;
  }
}

.card-flip {
    display: inline-block;
    perspective: 800px;
    width: 125px;
    height: 175px;
    margin: 5px;
}

.card-face {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    transform: rotateY(180deg);
    animation: flipIn 0.5s forwards ease-in;
}

@keyframes flipIn {
    0% {
        transform: rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

