body
 {
    background-image: url('../img/bg-gbt-2025-lq.jpg');
    /*background-image: url('../img/bg-body-lq.jpg');*/
    background-color: #000;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 1.5rem 0.3rem;
    overflow-y: scroll;
    
}

#wrapper, .container {
    z-index: 10;
}

table {
}

.table-hover > tbody > tr:hover > * {
    --bs-table-hover-bg: #16645c;
}
.inner-table.table-hover > tbody > tr:hover > * {
    color: #fff;
}

.table > :not(caption) > * > * {
    padding: 0.2rem 0.5rem;
}
thead.very-dark tr {
    --bs-table-bg: #000;
}
th, td {
  /*min-width: 65px;*/
}
#ranking td {
  text-align: right;
  padding-right: 20px !important;
}
#ranking th.asc, #ranking th.desc {
    background-color: #16645c;
}
#ranking th, #ranking td {
  width: 100px;
}
#ranking th.rank-col, #ranking td.rank-col {
  width: 65px;
}
#ranking th.team_name-col, #ranking td.team_name-col {
  min-width: 230px;
  text-align: left;
}
tbody tr:hover {

}

@media (min-width: 768px) {
    #results button.btn-toggle {
        position: absolute;
        left: calc(var(--bs-gutter-x) * .5);
        top: 40px;
    }
}

@media (max-width: 768px) {
    #results .outer-table {
      width: 720px !important;
    }
}

/*
// sticky header
#results .table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

#results .outer-table th {
    position: sticky;
    top: 0;
}
*/


tr.toggle-header {
    cursor: pointer;
}
tr.toggle-header[aria-expanded="true"] td {
    --bs-table-bg: #16645c !important;
}

tr.player-section td {
    background-color: #666;
}

tr.result-section td {
    background-color: #BBB;
    color: black;
}
tr.player-section td:nth-of-type(1),
tr.result-section td:nth-of-type(1) {
    padding-left: 1.5rem;
}

#results thead th:nth-of-type(1),
#results table.inner-table td:nth-of-type(1) {
    width: 22%;
}
#results thead th:nth-of-type(2),
#results table.inner-table td:nth-of-type(2) {
    width: 9%;
    text-align: center;
}
#results thead th:nth-of-type(3),
#results table.inner-table td:nth-of-type(3) {
    width: 17%;
    text-align: center;
}
#results thead th:nth-of-type(4),
#results table.inner-table td:nth-of-type(4) {
    width: 17%;
}
#results thead th:nth-of-type(5),
#results table.inner-table td:nth-of-type(5) {
    width: 17%;
}
#results thead th:nth-of-type(6),
#results table.inner-table td:nth-of-type(6) {
    width: 9%;
    text-align: center;
}
#results thead th:nth-of-type(7),
#results table.inner-table td:nth-of-type(7) {
    width: 9%;
    text-align: center;
}

#ranking .table,
#results .table {
    margin-bottom:  0;
}
#ranking .table-responsive,
#results .table-responsive {
    margin-bottom:  1rem;
}


/*
* Head-to-Head
*/
#h2h .alert-warning {
  --bs-alert-color: #664d03;
  --bs-alert-bg: #fff3cd;
  --bs-alert-border-color: #ffe69c;
  --bs-alert-link-color: #664d03;
}

#h2h .alert-warning a,
#h2h .alert-secondary a {
  color: black;
}
#h2h .alert-warning a:hover,
#h2h .alert-secondary a:hover {
  color: red;
}

#h2h .alert-secondary {
  --bs-alert-color: #2b2f32;
  --bs-alert-bg: #e2e3e5;
  --bs-alert-border-color: #c4c8cb;
  --bs-alert-link-color: #2b2f32;
}

@media (max-width: 768px) {
    #h2h .col-md-6 {
      padding-top: 1rem;
      border-top: 2px solid white;
    }
}
@media (max-width: 768px) {
    #h2h .col-md-6.men {
      margin-top: 1rem;
    }
}

/*
.alert-warning {
  --bs-alert-color: var(--bs-warning-text-emphasis);
  --bs-alert-bg: var(--bs-warning-bg-subtle);
  --bs-alert-border-color: var(--bs-warning-border-subtle);
  --bs-alert-link-color: var(--bs-warning-text-emphasis);
*/

/*
thead {

    position: sticky; 
    top: 0;
    z-index: 5;

}
    tbody {
      display: block;
      max-height: 1000px; /* Controls scrollable area *
      overflow-y: auto;
    }

    thead, tbody tr {
      display: table;
      width: 100%;
      table-layout: fixed;
    }
*/

th.sortable {
  cursor: pointer;
}
.sort-icon {
  margin-left: 5px;
}


.navbar {
    float: right;
}

/* Fixed hamburger button */
.hamburger-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1051;
  border: none;
  background: transparent;
}
.navbar-toggler {
    box-shadow: 0 0 0 var(--bs-navbar-toggler-focus-width);
}

/* Slide-in menu container */
.slide-menu {
  position: fixed;
  top: 0;
  right: -350px; /* move it out of viewport*/
  width: 300px;
  height: 100%;
  background-color: #212529;
  color: white;
  padding: 4.5rem 1rem 2rem 1rem;
  transition: right 0.3s ease-in-out;
  z-index: 1050;
}

.slide-menu.open {
  right: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1049;
  display: none;
}

.overlay.show {
  display: block;
}
    
.slide-menu a {
  color: white;
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
  padding: 0.5rem;
  border-radius: 0.25rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.slide-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.slide-menu .single a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-left: 1.4rem;
}

.slide-menu ul {
  padding-left: 1rem;
}

.slide-menu li {
  list-style-type: disclosure-closed;
  clear: both;
  margin-bottom: 1rem;
  margin-right: 0.5rem;
}

.slide-menu li li {
  list-style-type: none;
  float: left;
  width: 86px;
  text-align: center;
  clear: none;
}

.slide-menu li.group {
  padding-left: 0.5rem;
}

.slide-menu li.group li {
  margin-bottom: 0.5rem;
}

/* attribution */
.attribution {
    display: none;
    text-align: right;
}
.attribution a {
    color: #0f2d2b;
}
