html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Disable scroll bar */
}

#scoreboard {
    background: #ebebeb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 1px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex-grow: 1;
    overflow-y: scroll; /* Enable scrolling without showing the scroll bar */
    scrollbar-width: none; /* For Firefox */
}

.footer-separator {
  margin: 0 10px;
  color: #888;
}

.footer-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: -2.5px;
}

#scoreboard::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Edge */
}

.navbar {
  background-color: #000;
  color: white;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-content {
  width: 100%;
  max-width: 100vw;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-right {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
}

.nav-link.active {
  color: #888;
  font-weight: bold;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle .bars {
  width: 25px;
  height: 3px;
  background-color: white;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.dropdown-menu.active {
  display: flex;
}

.dropdown-link {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  text-align: center;
}

.dropdown-link:hover {
  background-color: #333;
}

.dropdown-link.active {
    background-color: #444;
    font-weight: bold;
}

#teamsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.team-card {
  margin-bottom: 40px;
  border: 2px solid #444;
  border-radius: 15px;
  padding: 20px;
  width: 340px;
  background-color: #000000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(255, 255, 255, 0.5);
}

.team-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
  color: white;
}

.team-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.team-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.league-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 5px;
  margin-bottom: 15px;
}

.league-button {
  background-color: #444;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.league-button img.league-logo {
  width: 30px;
  height: 30px;
  display: none; /* Default to hidden unless on small screens */
}

.league-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.5);
}

.league-button:active {
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.league-button.active {
  background-color: #888;
  font-weight: bold;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.5);
}

.game-card {
  background-color: #000000;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 16px 20px;
  width: 300px;
  font-family: Arial, sans-serif;
  color: white;
  text-align: center;
  position: relative;
  box-shadow: 0 0 10px rgb(255, 255, 255);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(255, 255, 255);
}

.matchup {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.team {
  display: flex;
  align-items: center;
  gap: 10px; /* Add spacing between logo and score */
}

.card-team-logo {
  width: 50px;
  height: 50px;
}

.card-team-score {
  font-size: 1.5rem;
  font-weight: bold;
}

.team-names {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.card-team-name {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  flex: 1;
}

.game-info {
  text-align: center;
}

.game-status {
  font-size: 1rem;
  font-weight: bold;
}

.game-time {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 5px;
}

.no-game-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  text-align: center;
  font-size: 1.2rem;
  color: grey;
  font-weight: bold;
  margin-top: 0px; /* Optional: Add spacing from the top */
}

.scheduled-game-card .game-time,
.final-game-card .game-status,
.live-game-card .game-status {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 10px;
}

.scheduled-games-container,
.finished-games-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.finished-games-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.scheduled-games-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.day-header {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(0, 0, 0);
  margin-top: 20px;
  text-align: center;
}

.day-header:first-of-type {
  margin-top: 0px; /* Reduce top margin for the first day header */
}

.games-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.game-card div[style*="color: black;"] {
  color: black !important; /* Ensure date text is black */
}

.live-game-block {
  flex: 1 1 calc(33.33% - 2rem);
  max-width: 350px;
  min-height: 200px;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.live-game-block:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.no-games {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  font-family: Arial, sans-serif;
  text-align: center;
  font-size: 1rem;
  color: #555;
  font-weight: bold;
}

.live-game-block img {
  width: 120px;
  height: 80px;
  object-fit: contain;
}

.live-game-block .team-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 8px;
  color: black;
}

.live-game-block .team-score {
  font-size: 3.5rem;
  font-weight: normal;
  color: black;
}

.live-game-block .team-score.bold {
  font-weight: bold;
}

.live-game-block .game-status {
  font-size: 1.75rem;
  font-weight: bold;
  color: black;
  text-align: center;
}

.live-game-block .game-period {
  font-size: 1rem;
  color: grey;
  text-align: center;
  margin-top: 15px;
}

.teams-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

.team-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #000;
  color: #fff;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 10px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.team-container {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.game-cards-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
}

.stage-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  min-width: 300px; /* Ensure columns have a consistent width */
}

.stage-header {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
}

.footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 1rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-link {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

.footer-link:hover {
  color: #888;
}

@media (max-width: 525px) {
  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .dropdown-menu.active {
    display: flex;
  }

  .division-table th:nth-child(5),
  .division-table th:nth-child(6),
  .division-table td:nth-child(5),
  .division-table td:nth-child(6) {
    display: none; /* Hide "Goals For" and "Goals Against" columns */
  }
}
