 /* Base styles */
 html, body {
  margin: 0;
  padding: 0;
  height: 90%;
}    
 
    body {
      font-family: "Open Sans", sans-serif;
      font-weight: bold;
      margin: 0;
      padding: 0;
      background-color: #4e4949;
      color: #C7C7C6;
      text-shadow: 
        -0.75px -0.75px 0 #20201e,  
         0.75px -0.75px 0 #20201e,
        -0.75px  0.75px 0 #20201e,
         0.75px  0.75px 0 #20201e;
      background-image: url('https://scramblecode.github.io/stats/assets/img/mb1.png');
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center center;
      background-attachment: fixed;
      background-size: cover;
      transition: background 1.5s ease-in-out;
    }
    h1, p {
      text-align: center;
      margin-top: 10px; 
      margin-bottom: 10px; 
      padding: 10px;
    }

    .outside-text {
      font-size: 2.5em; 
      font-weight: "bold";
      text-shadow: 
        -1.2px -1.2px 0 #000,  
         1.2px -1.2px 0 #000,
        -1.2px  1.2px 0 #000,
         1.2px  1.2px 0 #000;
      
      color: white;
    }
    .subtext {
      font-size: 2.5em; 
      font-weight: "bold";
      margin-bottom: 25px; 
      
      color: white;
    }
    /* The overall content box */
#content {
  width: 95%;
  margin: 20px auto;
  padding: 0px;
  border: 2.5px solid #E7E7C6;
  border-radius: 10px;
    /* background-color: #292525; */
    background-color: rgba(32, 32, 32, 0.75);
    box-sizing: border-box;
    position: relative;
    height: calc(100vh - 160px);
    overflow: hidden; 
}

.selectable:hover {
  background-color: #f0f0f021; /* Highlight on hover */
}
#subcontent {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 20px;
  border-radius: 10px;
    box-sizing: border-box;
    position: relative;
    height: calc(100% - 200px);
    overflow: hidden; 
}
/* Hide scrollbar for Chrome, Safari and Opera */
#content::-webkit-scrollbar {
  display: none;
}
.tabs-container {
    position: absolute; /* Ensures `.tabs` stays anchored inside */
    width: 100%; /* Ensures it spans full width */
    top: -5px;
    left: -2px;
}
.subtabs-container {
    position: absolute; /* Ensures `.tabs` stays anchored inside */
    width: 100%; /* Ensures it spans full width */
    height: 100%; /* Ensures it spans full width */
    top: -5px;
    left: -2px;
}
      /* Landing page tabs */
      .tabs {
        display: flex;
        overflow-x: auto;
        position: relative;
        white-space: nowrap;
        /* Centering the tabs horizontally */
        justify-content: left;
        scrollbar-width: none; 
        -ms-overflow-style: none;
      }
      .tabs::-webkit-scrollbar {
        display: none; /* Hides scrollbar on Chrome/Safari */
      }
      .tab {
        padding: 8px 16px;
        margin-right: 2px;
        border: 2px solid #ccc;
        border-radius: 5px 5px 0 0;
        cursor: pointer;
      }
      .tab.active {
        /* Remove bottom border for the active tab */
        border: none;
      }
      .tab.sactive {
        /* Remove bottom border for the active tab */
        border: none;
      }
      /* Container for tab-specific content */
      #tab-content {
        height: calc(100vh - 200px);
        padding: 10px;
        overflow: hidden;
        overflow-y: auto;
        overflow-x: auto;
        box-sizing: border-box;
        /* Hide scrollbar for IE, Edge */
        -ms-overflow-style: none; 
        /* Hide scrollbar for Firefox */
        scrollbar-width: none; 
      }
      #subtab-content {
        position: absolute;
        height: 93%;
        width: 100%;
        padding: 10px;
        overflow: hidden;
        overflow-y: auto;
        overflow-x: auto;
        box-sizing: border-box;
        /* Hide scrollbar for IE, Edge */
        -ms-overflow-style: none; 
        /* Hide scrollbar for Firefox */
        scrollbar-width: none; 
      }

@keyframes spinDice {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(960deg);
  }
}

.dice {
  cursor: pointer;
  transition: transform 1s ease-in-out;
}

.dice.spin {
  animation: spinDice 1s ease-in-out forwards;
}

      /* Hide default heading margin in landing view */
      #content.landing h2 {
        text-align: left;
        margin: 10px 0;
      }
    /* When in match detail mode, force the content box to fill the screen height */
    #content.match-detail {
      margin: auto;
      overflow-y: auto;
      padding-bottom: 20px;  /* Extra padding at the bottom */
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }

    /* Landing page match list styling */
    #content.landing p.match-title {
        text-align: left;
        margin: 8px 0;
        cursor: pointer;
        color: blue;
        text-decoration: underline;
      }
      #content.landing p.match-title:hover {
        color: darkblue;
      }
      #players-container {
        padding: 0px;
        height: 100%;
        width: 100%;
        min-height: 0;
        /* overflow-y: auto; */
        box-sizing: border-box;
        /* Hide scrollbar for IE, Edge */
        -ms-overflow-style: none; 
        /* Hide scrollbar for Firefox */
        scrollbar-width: none; 
      }
      .active-filter {
        outline: 5px solid #4caf50; /* Green outline */
        border-radius: 5px; /* Optional: Make it look nicer */
        padding: 5px; /* Ensure the outline fits around the filter nicely */
        box-shadow: 0px 0px 5px rgba(76, 175, 80, 0.5); /* Optional: Add a glow effect */
    }

      /* Hide scrollbar for Chrome, Safari and Opera */
      #players-container::-webkit-scrollbar {
        display: none;
    }
    #players-container thead {
      /* position: sticky; */
      top: 0px; 
      z-index: 10;
      }
      
    #players-container tbody {
      padding-top: 10px;
      top: 10px; 
      }
      
    #players-container li {
      padding: 5px;  /* Padding inside each UL */
      list-style: none; /* Remove default bullet */
      }
      /* Bracket box styles */
      .bracket-box {
        border: 1px solid #999;
        border-radius: 5px;
        padding: 8px;
        margin: 8px;
        display: inline-block;
        width: calc(20% - 16px); /* 5 boxes per row (adjust as needed) */
        vertical-align: top;
        box-sizing: border-box;
        color: #afafaf;
      }
      /* Added for vertical centering of bracket boxes */
      .bracket {
          padding: 50px;
          height: 100%;
          width: 100%;
          min-height: 0;
          overflow-y: auto;
          box-sizing: border-box;
          /* Hide scrollbar for IE, Edge */
          -ms-overflow-style: none; 
          /* Hide scrollbar for Firefox */
          scrollbar-width: none; 
          display: flex;
          flex-wrap: wrap;
          align-items: center;      /* Vertical centering */
          justify-content: center;  /* Horizontal centering */
      }
      .bracket-row {
        display: flex;
        justify-content: space-between;
      }
      .team-name {
        text-align: left;
      }
      .team-score {
        text-align: right;
      }
      .bracket-divider {
        border: 0;
        border-top: 1px solid #ccc;
        margin: 4px 0;
      }
      @media screen and (max-width: 768px) {
        .round-container {
            flex-wrap: wrap;
            flex-direction: column; /* Stack rounds vertically */
            align-items: center; /* Center brackets */
        }
    
        .bracket-box {
            width: 100%; /* Full-width brackets for smaller screens */
            max-width: 200px; /* Limit width to prevent excessive stretching */
        }
    }

      .stats-container {
        margin: 10px;
      }
    /* Stats table styles */
    @media (max-width: 960px) {
    .stats-container {
      margin: 0 auto;
    }

    }
    #tables-container {
      display: flex;
      gap: 150px; /* Add spacing between tables */
      justify-content: center;
      align-items: flex-start; /* Default: side-by-side alignment */
  }
    .table-wrapper {
      display: flex;
      gap: 150px;  /* Space between the two team tables */
      height: 100%;
      align-items: flex-start; /* Default: side-by-side alignment */
    }
    .stats-container div {
      flex: 1;  /* Equal size for both tables */
      min-width: 0;
    }
    .stats-container table {
      width: 100%;
      border-collapse: collapse;
    }
    .stats-container th {
      text-align: center;
      border-bottom: 2px solid #ddd;
      padding: 5px;
    }
    .stats-container td {
      padding: 5px;
    }
    /* All cells center-aligned by default */
    .stats-container td {
      text-align: center;
    }
 
    /* Faction name + Score header styling */
    .team-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 50px;  /* Extra padding below the header */
    }
    
    .stat-value {
      display: inline-block;
      text-align: center;
      width: 80px; /* Adjust width as needed to fit the largest possible value */
    }


.current-tournament {
  padding: 20px;
  text-align: center; /* Center text */
  width: 100%; /* Full width */
  cursor: pointer;
}

h1 {
  font-size: 32px; /* Make the title prominent */
  margin-bottom: 10px;
}

.tournament-info {
  font-size: 16px;
}

.previous-tournaments {
  padding: 20px;
  text-align: center;
  width: 100%; /* Expand to full width */
}

.completed-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  border-top: 1px solid #ddd;
  padding: 10px 0;
}

.previous-tournaments ul {
  list-style: none;
  border-top: 1px solid #ddd;
  padding: 0;
  margin-top: 20px;
}

.previous-tournaments li {
  padding: 8px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  cursor: pointer; /* Pointer for clickable elements */
  text-align: center; /* Center text */
}

.previous-tournaments li:hover {
  background-color: #f0f0f021; /* Highlight on hover */
}