body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #eef6f9, #ffffff);
}

header {
    background-color: rgb(29, 119, 155);
    color: white;
    padding: .1rem;
    text-align: center;
}

.header2 {
    background-color: rgb(29, 119, 155);
    color: white;
    padding: .1rem;
    text-align: center;
    width: 100%;
    position: fixed;
    transition: top 0.6s;
}

header h1 {
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 0.5px;
} 

nav ul {
    list-style: none;
    font-size: .90em; 
}

nav ul li {
    display: inline;
    margin-right: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: .5em
}

main {
    padding: 20px;
}

.mainpadding {
    padding: 3px;
}

.teams, .fixtures {
    margin-bottom: 30px;
}

footer {
    background-color: rgb(29, 119, 155);
    color: white;
    text-align: center;
    padding: .75rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.disclaimer {
    color: #a2b9a2;
}

/* Additional styles for teams page */
.teams {
    background-color: #fcf7f7;
    padding: 10px;
    border-radius: 40px;
}

/* Additional styles for pointss page */
.pointss {
    background-color: #d2edee;
    padding: 15px;
    border-radius: 40px;
    margin-bottom: 20px;
}

/* Additional styles for pointss2 page */
.pointss2 {
    background-color: #65939322;
    padding: 15px;
    border-radius: 40px;
    margin-bottom: 20px;
}




/* Additional styles for fixtures page */
.fixtures th[colspan] {
    background-color: #84c7db;
    padding: 10px;
    border-radius: 0px;
}

.fixtures ul {
    list-style: none;
    padding: 0;
}

.fixtures li {
    margin-bottom: 10px;
}

.fixtures h2 {
    text-align: center;
    background-color: #55b3ce;
    border-radius: 40px;
}

.fixtures table {
    text-align: center;
    background-color: #eef8fb;
}

.fixtures tr {
    text-align: center;
    background-color: #cbebf3;
}

/* Use class when on current week on the fixture.html file */
.current h2 {
    text-align: center;
    background-color: #1dc211;
    border-radius: 40px;
}

.currenttable th {
    text-align: center;
    background-color: #49d83e;
}

.currenttable tr {
    text-align: center;
    background-color: rgb(193, 235, 189);
}

/* Use class when on week is completed on the fixture.html file */
.done h2 {
    text-align: center;
    background-color: #e32323;
    border-radius: 40px;
}

.donetable th {
    text-align: center;
    background-color: #e55040;
}

.donetable tr {
    text-align: center;
    background-color: #d5cdcd;
}




/* Additional styles for points page */
.points {
    background-color: #fcf7f7;
    padding: 20px;
    border-radius: 40px;
    overflow-x: auto; /* Add horizontal scrollbar if needed */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 2px;
    text-align: center;
    border: 1.3px solid rgba(19, 16, 16, 0.914);
}

th {
    background-color: #f2f2f2e7;
}

/* Style the header cells differently if needed */
/* th:nth-child(1) { background-color: #ccc; } */


@media (max-width: 600px) {
    nav ul {
      flex-wrap: wrap;
      gap: 6px;
    }
  
    nav ul li a,
    nav select {
      font-size: 0.9em;
    }

    table {
        font-size: 0.8em;
      }
    
      th, td {
        padding: 6px;
      }
  }  

iframe {
    max-width: 100%;
}

/* Custom styles for the dropdown */
select {
    
    border: none;
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: rgb(29, 119, 155);
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: .5em
}

/* Style for the options */
select option {
    background-color: rgb(29, 119, 155); /* Set background color for options */
    color: #333; /* Set text color for options */
}

/* Style for the selected option */
select option:checked {
    background-color: rgb(29, 119, 155); /* Set background color for the selected option */
}

img {
    max-width: 100%;
    height: auto; /* This ensures the image maintains its aspect ratio */
}

.archive_div {
    background-color: rgb(226, 236, 246);
    padding: 10px;
    border-radius: 30px;
    margin-bottom: 5px;
}

.archive_ol {
    font-size: .9em
}



/* ============================= */
/* MODERN NAV OVERRIDES */
/* ============================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 12px;
  }
  
  nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
  }
  
  nav ul li {
    display: block; /* override inline */
    margin: 0;
  }
  
  nav ul li a {
    font-size: 0.85em; /* readable on mobile */
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
  }
  
  nav ul li a:hover,
  nav ul li a.active {
    background: rgba(255, 255, 255, 0.25);
  }
  
  /* Dropdown match nav style */
  nav select {
    font-size: 0.8em;
    padding: 6px 10px;
    border-radius: 8px;
  }
  
  .teams,
  .fixtures,
  .points,
  .pointss,
  .pointss2 {
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  }

  /* ============================= */
/* HAMBURGER MENU */
/* ============================= */

.menu-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 1.1em;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 12px;
    border-radius: 20px;
  }
  
  .menu-toggle span {
    font-size: 0.9em;
  }
  
  /* Mobile only */
  @media (max-width: 600px) {
    .menu-toggle {
      display: inline-flex;
    }
  
    nav {
      display: none;
    }
  
    nav.open {
      display: block;
    }
  
    nav ul {
      flex-direction: column;
      gap: 8px;
      background-color: rgb(29, 119, 155);
      padding: 10px;
      border-radius: 10px;
    }
  
    nav ul li a,
    nav select {
      width: 100%;
      text-align: center;
      font-size: 1em;
    }
  }
  
  select optgroup {
    font-weight: bold;
  }