.header {
  position: relative;
  width: 100%;
  display: inline-block;
}

.header img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

.header h1 {
  margin-top: 10px;
}

.nav {
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  transform: translateY(-50%);

  display: flex;
  justify-content: right;
  align-items: center;
  gap: 15px;

  z-index: 10;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;

  /* makes text readable on any image */
}

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

.heading {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  background: #f2f2f2;
}

.blank-row td {
  height: 20px;
}

#scoreboard {
  border-collapse: collapse;
  width: max-content;
}

/* base cell styling */
#scoreboard td {
  padding: 6px 10px;
  white-space: nowrap;
}

/* add controlled horizontal spacing AFTER specific columns */
#scoreboard td:nth-child(2),
#scoreboard td:nth-child(4),
#scoreboard td:nth-child(6) {
  padding-left: 25px;
}

/* Section header and toggle button */
.section-header {
  margin-top: 20px;
  margin-bottom: 10px;
}

.toggle-btn {
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.toggle-btn:hover {
  background-color: #e0e0e0;
}

.toggle-btn:active {
  background-color: #d0d0d0;
}

/* Individual stats table gridlines */
#individual-stats table {
  border-collapse: collapse;
  width: 100%;
}

#individual-stats table th,
#individual-stats table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

#individual-stats table thead th {
  background-color: #f2f2f2;
  font-weight: bold;
}

#individual-stats table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Team stats table gridlines */
#team-stats table {
  border-collapse: collapse;
  width: 100%;
}

#team-stats table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

#team-stats table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Rosters table styling */
#rosters table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
  font-family: Arial, sans-serif;
}

#rosters th,
#rosters td {
  border: 1px solid #333;
  padding: 8px 12px;
  text-align: left;
}

#rosters th {
  background-color: #f0f0f0;
  font-weight: bold;
}

#rosters tr:nth-child(even) {
  background-color: #f9f9f9;
}
