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

.scoreboard-container {
  max-width: 1000px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.header select,
.header input {
  padding: 0.5rem;
  font-size: 1rem;
  flex: 1;
  min-width: 150px;
}

.teams {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin-bottom: 1rem;
}

.teams input {
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0.5rem;
  width: 40%;
}

.scores {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.scores .team {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40%;
}

.scores .team h1 {
  font-size: 3.5rem;
  margin: 0;
}

.buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.buttons button {
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.buttons button:hover {
  background-color: #e0e0e0;
}

.icon {
  font-size: 2.5rem;
}

.rounds {
  overflow-x: auto;
}

.rounds table,
.football-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.rounds th,
.rounds td,
.football-table th,
.football-table td {
  border: 1px solid #ddd;
  padding: 0.6rem;
}

.rounds input[type="text"],
.rounds input[type="number"],
.football-table input[type="number"] {
  width: 60px;
  padding: 0.3rem;
  text-align: center;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.rounds input.total,
.rounds input.games-won,
.rounds input.sets-won,
.football-table input.football-total {
  background-color: #f5f5f5;
  font-weight: bold;
}

.update-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.update-btn:hover {
  background-color: #3367d6;
}

#reset-btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: #ff5252;
  color: white;
  border: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

#reset-btn:hover {
  background-color: #ff0000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header select,
  .header input {
    flex: 1 1 100%;
  }

  .scores {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .scores .team {
    width: 40%;
  }

  .icon {
    margin: 0 1rem;
  }

  .rounds table,
  .football-table {
    font-size: 0.85rem;
  }

  .rounds th,
  .rounds td,
  .football-table th,
  .football-table td {
    padding: 0.35rem;
  }

  .rounds input[type="text"],
  .rounds input[type="number"],
  .football-table input[type="number"] {
    width: 40px;
    padding: 0.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .scoreboard-container {
    padding: 1rem;
  }

  .rounds input[type="text"],
  .rounds input[type="number"],
  .football-table input[type="number"] {
    width: 30px;
    padding: 0.1rem;
    font-size: 0.8rem;
  }

  .buttons button {
    padding: 0.3rem 0.8rem;
    font-size: 1.2rem;
  }
}
