body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
  color: #222;
}

header {
  background: #2d3e50;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

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

main {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

h1,
h2 {
  color: #2d3e50;
}

footer {
  text-align: center;
  padding: 1rem 0;
  background: #2d3e50;
  color: #fff;
  position: fixed;
  width: 100%;
  bottom: 0;
}

#matchups-list {
  margin-top: 1rem;
}

/* Matchup box styles: side-by-side teams with a visual card */
.matchup-box {
  border: 1px solid rgba(45, 62, 80, 0.12);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.matchup-box h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #2d3e50;
}

.teams {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.team {
  flex: 1 1 0;
  padding: 0.6rem;
  border-radius: 6px;
  background: #fbfcfd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.team strong {
  display: block;
  margin-bottom: 0.25rem;
}

.vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  color: #777;
  font-weight: bold;
}

/* Responsive: stack teams on narrow screens */
@media (max-width: 640px) {
  .teams {
    flex-direction: column;
  }
  .vs {
    display: none;
  }
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.challenges-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 2rem 0;
}

.challenges-table th,
.challenges-table td {
  border: 1px solid #e1e1e1;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.challenges-table thead th {
  background: #2d3e50;
  color: #fff;
}

.challenges-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* Challenges card grid */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.challenge-box {
  border: 1px solid rgba(45, 62, 80, 0.08);
  background: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.challenge-box h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.challenge-desc {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.challenge-winner {
  margin: 0;
  color: #1a6f3a; /* green for winner text */
}

.winner-name {
  color: #2d3e50;
}

/* Vertical boxed list for challenges */
.challenge-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.challenge-item {
  border: 1px solid rgba(45, 62, 80, 0.08);
  background: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.challenge-item h3 {
  margin: 0 0 0.25rem 0;
}

.challenge-item .challenge-desc {
  margin: 0 0 0.5rem 0;
}
