.nav:not(.nav-pills) .nav-link:hover,
.nav:not(.nav-pills) .nav-link:focus {
  color: var(--bs-primary);
  color: white;
}

.competition-selector {
  width: 100%;
  max-width: 500px;
}

.ts-wrapper {
  width: 400px;
}
.ts-wrapper img {
  aspect-ratio: 1;
  object-fit: contain;
}
.league-list a {
  text-decoration: none !important;
  color: black;
  font-weight: bold;
}

.ratio-1x1 img {
  aspect-ratio: 1;
  object-fit: contain;
}

.btn-group.w-100 > label {
  width: 100%;
  flex-grow: 1;
  font-size: 12px;
}

.team-card-link {
  display: flex;
  align-content: center;
  align-items: center;
  text-decoration: none !important;
}

.nav-tabs {
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  border-bottom-color: #dee2e6;
  color: #495057;
}

.nav-tabs .nav-link.active {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
  background-color: transparent;
}

@media (max-width: 768px) {
  table.table-teams,
  table.table-teams tbody,
  table.table-teams tr {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  table.table-teams tr {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
  }

  table.table-teams tr td {
    border: none;
  }

  table.table-teams thead {
    display: none;
  }

  table.table-teams .team-td {
    width: 45%;
    padding: 5px;

    text-align: center;
  }

  table.table-teams .team-td > div {
    justify-content: center;
  }
  table.table-teams .vs-td {
    width: 10%;
    text-align: center;
  }

  table.table-teams .odds-td {
    order: 4;
    width: 100%;
    padding: 10px;
  }

  table.table-teams .odds-td .btn-group {
    display: flex;
    flex-direction: column;
  }

  .nav-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

.content-wrap li.nav-item {
  margin-top: 0px;
}

.min-vh-100 {
  min-height: 100vh;
}

.card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15) !important;
}

.btn-primary {
  background-color: #5e72e4;
  border-color: #5e72e4;
}

.btn-primary:hover {
  background-color: #4c63d2;
  border-color: #4c63d2;
}

.btn-outline-primary {
  color: #5e72e4;
  border-color: #5e72e4;
}

.btn-outline-primary:hover {
  background-color: #5e72e4;
  border-color: #5e72e4;
}

@media only screen and (max-width: 800px) {
  /* Force table to not be like tables anymore */
  .responsive-table table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table th,
  .responsive-table td,
  .responsive-table tr {
    display: block;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  .responsive-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .responsive-table tr {
    border: 1px solid #ccc;
    margin-bottom: 10px;
  }

  .responsive-table td {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding: 5px;
    padding-left: 50%;
    white-space: normal;
    text-align: left;
  }

  .responsive-table td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }

  /*
	Label the data
	*/
  .responsive-table td:before {
    content: attr(data-title);
  }
}

.hero-competition {
  position: relative !important;
  overflow: hidden;
  width: 100%;
  min-height: 1000px !important;
  background-size: 100% 560px !important;
  background-position: top center !important;
}

.hero-competition > .container {
  padding: 48px !important;
  margin-top: 336px;
  background-color: #1072b2 !important;
  color: white !important;
  width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 48px !important;
  margin-bottom: 64px;
  border-radius: 16px !important;
  box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.08) !important;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content > h5 {
  color: #fff !important;
  margin-top: 0px !important;
  font-size: 20px;
  font-weight: 500;
}

.competition-title {
  margin: 0;
  color: white !important;
  margin-bottom: 40px !important;
  font-size: 30px !important;
  font-weight: 400 !important;
}

.competition-description {
  font-size: 18px;
  margin: 0;
  max-width: 600px;
}

.competition-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 600px;
}

.stat-item {
  padding-left: 10px;
  border-left: 1px solid;
}

.stat-number {
  font-size: 20px;
  font-weight: 400;
  margin-right: 5px;
}

.stat-label {
  font-size: 20px;
}

.btn-join-competition {
  background: white;
  color: #667eea;
  border: none;
  padding: 15px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-join-competition:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
}

.btn-join-competition:active {
  transform: translateY(-1px);
}

.ca-ranking-container {
}

.ca-ranking-container > th {
  font-weight: 500;
}
.competition-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1rem;
  margin: 20px 0;
}

.info-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .hero-competition {
    padding: 60px 20px;
  }

  .competition-description {
    font-size: 1.1rem;
  }

  .competition-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
  }
}

.ts-wrapper {
  width: 400px;
}
.ts-wrapper img {
  aspect-ratio: 1;
  object-fit: contain;
}
.league-list a {
  text-decoration: none !important;
  color: black;
  font-weight: bold;
}

.ratio-1x1 img {
  aspect-ratio: 1;
  object-fit: contain;
}
