/* Outer section or container */
#leagueType1 {
  padding: 24px;
  overflow-y: auto;
}

#leagueType2 {
  padding: 24px;
  overflow-y: auto;
}

/* League name row (horizontal layout) */
.league-names-row {
  display: flex;
  gap: 16px;
  margin: 30px auto;
  padding-left: 0px;
  padding-right: 0px;
  margin-top: 120px;
  flex-wrap: wrap;
}

/* Each league box */
.league-name-box {
  padding: 12px 12px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  min-width: 250px;
  max-width: 280px;
}

.league-name-box:hover {
  background: rgba(7, 7, 7, 0.805);
  transform: translateY(-2px);
  color: white;
}

.league-name-box:active {
  transform: scale(0.96);
}

.league-names-row-item {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.league-edit-icon,
.league-delete-icon {
  font-size: 1.1rem;
}

.league-edit-icon {
  margin-left: 12px;
  height: 22px;
}

.league-delete-icon {
  margin-left: 4px;
  height: 28px;
}

.icon-disabled {
  opacity: 0.4;
  pointer-events: auto;
}

#noLeaguedata {
  display: flex;
  justify-content: center;
  padding-left: 0px;
  padding-right: 0px;
  margin-top: 100px;
  font-size: 18px;

}

/* Mobile */
@media (max-width: 480px) {

  /* Outer section or container */
  #leagueType1 {
    padding: 8px;
    overflow-x: auto;
  }

  #leagueType2 {
    padding: 8px;
    overflow-x: auto;
  }


  /* League name row (horizontal layout) */
  .league-names-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 30 auto;
    padding-left: 0px;
    padding-right: 0px;
    text-align: center;
    margin-top: 95px;
  }

  /* Each league box */
  .league-name-box {
    padding: 6px 14px;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
  }

  .league-names-row-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    margin-right: 1;
  }

  .league-edit-icon,
  .league-delete-icon {
    font-size: 1.1rem;
  }

  .league-edit-icon {
    height: 18px;
    margin-left: 12px;
  }

  .league-delete-icon {
    margin-left: 4px;
    height: 24px;
  }

  .mobile-tooltip {
    position: absolute;
    background: #222;
    color: #fff;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10000;
    max-width: 220px;
    white-space: nowrap;
  }

  .mobile-tooltip.show {
    opacity: 1;
  }

  #noLeaguedata {
    display: flex;
    justify-content: center;
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 100px;
    font-size: 14px;

  }
}