body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #00205B;
}

header {
  background-color: #00205B;
  color: white;
  text-align: center;
  padding: 20px 0;
}

.logo {
  height: 80px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #FDB927;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

main {
  padding: 20px;
  text-align: center;
}

.intro h2 {
  color: #FDB927;
}

footer {
  background-color: #00205B;
  color: white;
  text-align: center;
  padding: 10px;
  position: fixed;
  width: 100%;
  bottom: 0;
}

table.roster {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.roster th, .roster td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: center;
}

.roster th {
  background-color: #00205B;
  color: #FDB927;
}

.roster tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
  /* Stack navigation vertically on small screens */
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Reduce header text size for better fit */
  header h1 {
    font-size: 1.5em;
    margin: 10px 0;
  }

  /* Adjust logo size for small screens */
  .logo {
    max-width: 100px;
    height: auto;
  }

  /* Add some padding to main content for clarity on small screens */
  main {
    padding: 10px;
  }

  /* Resize headings inside sections if needed */
  section h2, section h3 {
    font-size: 1.2em;
  }

  /* Make iframe responsive if it isn't already */
  #background-frame {
    width: 100%;
    height: auto;
    min-height: 200px; /* optional: ensure some height */
  }

  /* Optional: Make footer more adaptable if needed */
  footer {
    position: static; /* so it doesn't stick to bottom on small screens */
    padding: 15px 10px;
  }

  /* Mobile-responsive table styling */
  table.roster {
    width: 100%;
    font-size: 14px;
    margin: 10px auto;
  }

  .roster th, .roster td {
    padding: 8px 4px;
    font-size: 12px;
    word-wrap: break-word;
  }

  /* Hide less important columns on very small screens */
  .roster th:nth-child(5), 
  .roster td:nth-child(5) {
    display: none;
  }

  /* Make tournament/section headers more prominent on mobile */
  .roster td b {
    font-size: 13px;
    color: #00205B;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
  /* Further reduce table font size */
  table.roster {
    font-size: 12px;
  }

  .roster th, .roster td {
    padding: 6px 3px;
    font-size: 11px;
  }

  /* Hide time column on very small screens to save space */
  .roster th:nth-child(3), 
  .roster td:nth-child(3) {
    display: none;
  }

  /* Stack navigation items with smaller gaps */
  nav ul {
    gap: 5px;
  }

  nav a {
    font-size: 14px;
  }

  /* Adjust header for very small screens */
  header h1 {
    font-size: 1.2em;
  }

  /* Make tournament headers wrap better */
  .roster td b {
    font-size: 12px;
    display: block;
    line-height: 1.2;
  }
}
