
/* Style for score changes: red for negative, green for positive, and default color for zero */


button[data-hand-score-for-result]:not([data-hand-score-for-result=" "]) {
    border-style: none;
    background-color: #333333;
    width: 50px;          /* fixed size */
    height: 50px;         /* must equal width */
    padding: 0;           /* prevent content growth */
    font-weight: 600;
}

button[data-hand-score-for-result=" "] {
    border-color: darkgrey;
    border-width: 2px;
    width: 50px;          /* fixed size */
    height: 50px;         /* must equal width */
    background-color: lightgray;
    padding: 0;           /* prevent content growth */
}

button[data-hand-score-for-bid^="-"] {
    border-width: 2px;
    border-color: #dc3545 !important;
    width: 50px;          /* fixed size */
    height: 50px;         /* must equal width */
    border-radius: 50%;   /* makes it circular */
    padding: 0;           /* prevent content growth */
    font-weight: 600;
}

button[data-hand-score-for-bid]:not([data-hand-score-for-bid^="-"]):not([data-hand-score-for-bid=" "]) {
    border-width: 2px;
    border-color: #198754;
    width: 50px;          /* fixed size */
    height: 50px;         /* must equal width */
    border-radius: 50%;   /* makes it circular */
    padding: 0;           /* prevent content growth */
    font-weight: 600;
}

button[data-hand-score-for-bid=" "] {
    border-style: none;
    width: 50px;          /* fixed size */
    height: 50px;         /* must equal width */
    padding: 0;           /* prevent content growth */
    font-size: larger;
    font-weight: 600;
}

/* style for a blank button so that the blank row has same size as the rows with scores */
button.blank {
    border-style: none;
    width: 50px;          /* fixed size */
    height: 50px;         /* must equal width */
    padding: 0;           /* prevent content growth */
}



/* Column width for index column */

:root {
  --index-width: 5%;
}

@media (max-width: 767.98px) {
  :root {
    --index-width: 10%; /* tweak for mobile */
  }
}

/* Column width is enforced for header + body */
.col-index-col {
  width: var(--index-width);
}

/* Sticky header */
thead.sticky-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bs-body-bg);
}

/* Divider skipping the first column */
thead.sticky-top::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: var(--index-width);
  inset-inline-end: 0;
  height: 2px;
  background: #dee2e6;
}




  
/* "Us" and "Them" cells */
.split-header{
  position: relative;
  padding-bottom: 10px;      /* small: just enough room for the line */
  vertical-align: bottom;    /* keeps text sitting nicely above the line */
}

/* purple line */
.split-header::after{
  content:"";
  position:absolute;
  inset-inline-start:10%;
  inset-inline-end:10%;
  bottom:0;
  height:3px;
  background-color:darkorchid;
}

/* gap BELOW the purple line = space ABOVE row 2 */
thead tr:nth-child(2) th{
  padding-block-start: 25px;
}

/* remove default border under row 1 (fine to keep) */
thead tr:first-child th{
  border-bottom: 0 !important;
}


  /* one place to control button size + spacing */
  #launchBid .bid-grid{
    --btn-h: 50px;
    --gap: .6rem;   /* small space between buttons */
    --gap-y: .6rem;
  }

  #launchBid .bid-grid .btn{
    width: 100%;
    height: var(--btn-h);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

/* style the bid input fields when selected */
  .highlight-field-input {
    border: 3px solid var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
    outline: none;
    transition: all 0.15s ease-in-out;
}

/* style the bid input fields when not selected */
.bid-input {
    border: 1px solid #ced4da;
    transition: all 0.15s ease-in-out;
    font-size: larger;
    text-align: center;
    color: var(--bs-primary) !important;  
    font-weight: 600;
    height: 55px;
}



/* Remove bottom border from footer cells */
tfoot td {
    border-bottom: none !important;
}


/* Modal animation for mobile: slide up from bottom */
.modal-bottom .modal-dialog {
  position: fixed;
  bottom: 0;
  margin: 0;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.modal-bottom.show .modal-dialog {
  transform: translateY(0);
}

/* flipping image horizontally for RTL */
[dir="rtl"] .flip-horizontal {
    transform: scaleX(-1);
}