body {
  margin: 0;
  min-height: 100vh; 
  background:
    /* top layer – semi-transparent gradient overlay 
    linear-gradient(to bottom right,
                    rgba(34, 74, 136, 0.70),
                    rgba(25, 45, 78, 0.70)),
    bottom, */
    url("racket_background_4.png") center / cover no-repeat fixed;
  /*background: #1A1A1E;*/
}

.top-bar{
  background:#1c1c1c;
  color:#ffffff;
  height:50px;                          
  font:400 12px/1 'Montserrat', sans-serif;
  display:flex;
  align-items:center;                   
}

.top-bar__inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;    
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.header {
    background-color: #1A1C1F;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 50px;
    color: white;
}

.header div {
    margin: 0px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;  
    letter-spacing: 0.20px; 
}

.main-nav {
  background-color: #F2F2F2;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-evenly;
  max-width: 1200px;
  margin: 0 auto;
}

/* style the links */
.main-nav a {
  display: block;
  padding: 1rem 0;             
  text-decoration: none;
  color: #000;                 
  font-family: 'Bebas Neue', sans-serif;  
  font-size: 1.1rem;          
  font-weight: 550;           
  text-transform: uppercase;
  letter-spacing: 0.05em; 
  transition: color 0.2s;
}

/* simple hover effect */
.main-nav a:hover {
  color: #353535;   
}

.logo_bar {
  display: flex;
  background-color: #F2F2F2;
  justify-content: center;
  height: 130px;
  box-shadow: 0 6px 12px -4px rgba(0,0,0,.4);
}

.logo_bar a {
  display: flex;
  justify-content: center; 
  align-items: center; 
}

.logo_bar img {
  max-height: 100%;  /* clamp to the 100px container height */
  width: auto;       /* preserve aspect ratio */
}

.standings-header {
  width: 400px;
  width: auto;
  margin-bottom: -40px;
}

/* --- contact block --- */
.contact span{
  margin-right:24px;
  display:inline-flex;
  align-items:center;
  white-space:nowrap;         
}
.contact i{
  margin-right:6px;
  color:#00761B;
}

.social a{
  margin-left:14px;
  color:#ffffff; 
  font-size:16px;
  display:inline-flex;
  width:20px; height:20px;
  align-items:center; justify-content:center;
  text-decoration:none;
  transition:opacity .2s ease-in-out,
             transform .2s ease-in-out,
             color .2s ease-in-out;
}

.social a:hover{
  opacity:.8;
  transform:translateY(-6px); 
  color:#1a8b4d; 
}

/* --- responsive tweak --- */
@media (max-width:600px){
  .top-bar__inner{justify-content:center;}
  .contact{margin-bottom:4px;}
}

.footer1 {
  margin-top: 50px;
  background-color: #1A1C1F;
  height: 80.75px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.footer1 img {
  height: 60px;
  width: auto;
}

.footer2 {
    background-color: #000;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer2 p {
    margin: 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;  
    letter-spacing: 0.20px; 
    text-transform: uppercase;
    text-align: center;
}


/* ------------------ STANDINGS TABLE GENERATION ------------------ */
/* ---------------------------------------------------------------- */

.main {
  overflow-x: auto;
  padding: 0 8px;
}

.standings-table {
  width: 90%;
  margin: 40px auto;
  font-family: 'Montserrat', sans-serif;
  background-color: rgba(255, 255, 255, 0);
  box-shadow: -2px 4px 10px rgba(0,0,0,0.25);
  overflow: hidden;
  border-collapse: collapse;  /* separate or collapse */
  border-radius: 8px;
  table-layout: fixed;
}
.standings-table th,
.standings-table td {
  padding: 12px 14px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #e0e0e0;
  width: calc(100% / 7);
}
.standings-table th {
  background-color: #1A1C1F;
  color: #ffffff;
  letter-spacing: .5px;
  font-weight: 400;
  text-transform: uppercase;
}

.standings-table tbody tr {
  background-color: rgba(184, 204, 210, 0.8);
}
.standings-table tbody tr:nth-child(even) {
  background-color: rgba(208, 221, 225, 0.8);
}
.standings-table tbody tr:hover {
  background-color: #f1f1f1;
}

.standings-table,
.standings-table td {
  color: #000000;
}
.standings-table tbody tr:last-child td {
  border-bottom: none;
}


/* ------------------ Win-Rate “loading bar” styling ------------------ */
/* -------------------------------------------------------------------- */

/* Container for the bar: light gray background, full cell-width */
.standings-table .win-rate-bar {
  background-color: #5e927a9d;
  border-radius: 4px;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: solid #2e634259 1px;
}

/* Inner “fill” portion: colored according to win_rate%, height fills container */
.standings-table .win-rate-fill {
  background-color: #55b98acb;;
  height: 100%;
  width: 0; /* overridden inline via style="width: XX%" in JS */
  transition: width 0.3s ease; /* smooth animation when redrawn */
  border-radius: 4px 0 0 4px;
}

.team-logo-cell {
  width: 40px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.rank-icon {
  display: inline-block;
  width: 30px;       /* tweak to taste */
  height: auto;
  margin-left: 6px;  /* space between number and icon */
  vertical-align: middle;
}



/* ------------------ Smartphone styling ------------------ */
/* -------------------------------------------------------- */

@media (max-width: 768px) {
  .contact span {
    font-size: 0.8em; /* or try 12px, 0.9rem, etc. */
    margin-right: 5px;
  }
  /* Header logo */
  .logo_bar img {
    max-width: 90%;
    height: auto;
  }

  .main-nav ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem; 
  }
  .main-nav li {
    flex: 0 0 auto;   /* don’t grow or shrink—each item keeps its width */
  }
  .main-nav a {
    font-size: 0.90rem;  
    padding: 0.75rem;     
  }

  /* Standings banner */
  .standings-header {
    width: 100%;
    height: auto;
    margin-bottom: -20px;
  }

  /* Table container */
  .main {
    overflow-x: auto;
    padding: 0 8px;
  }

  /* Make table fill the width, but keep a min width so columns don’t collapse too small */
  .standings-table {
    width: 100%;
    min-width: 600px;
    margin: 20px auto;
  }
  .standings-table th,
  .standings-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .footer2 p {
    font-size: 8px;
  }
}