/* Global scrollbar hiding */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

html {
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

html::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

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

body {
  font-family: Arial, sans-serif;
  background-color: #000000;
  color: #000000;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

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

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

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

.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;
}

#standings {
  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: auto;
}

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

.division-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
}

.division-table th,
.division-table td {
  padding: 0.75rem;
  text-align: center;
  border-bottom: 1px solid #444;
  color: white;
  vertical-align: middle; /* Ensure consistent vertical alignment */
}

.division-table th {
  background: #333;
  font-weight: bold;
  text-transform: uppercase;
}

.division-table tr:last-child td {
  border-bottom: none;
}

.team-name {
  text-align: left;
  padding-left: 1rem;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center; /* Align text and logo vertically */
  gap: 8px;
}

.team-name img {
  border-radius: 50%;
  vertical-align: middle; /* Ensure the logo aligns with the text */
}

.dropdown-link.active {
    background-color: #444;
    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;
}

.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);
}

.legend-container {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #333;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #444;
}

.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) {
  .division-table th,
  .division-table td {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .standings-section h2 {
    font-size: 1.8rem;
  }

  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .league-button .league-text {
    display: none;
  }

  .league-button .league-logo {
    display: inline;
  }
}