body {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
    background-color: black;
    background-image: url('https://static.vecteezy.com/system/resources/previews/004/607/790/original/american-football-field-background-nfl-football-field-yard-super-bowl-illustration-vector.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  }
  
  .container {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 10px;
    border: 3px solid #1493FF;
    box-shadow: 0 0 20px rgba(20, 147, 255, 0.5);
  }
  
  h1 {
    color: #1493FF;
    font-size: 2.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: rgba(10, 24, 61, 0.8);
    border: 2px solid #1493FF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  
  th, td {
    padding: 8px;
    border: 1px solid #1493FF;
    text-align: center;
    vertical-align: middle;
    font-size: 1em;
  }
  
  th {
    background-color: #0A183D;
    color: #1493FF;
    text-transform: uppercase;
    font-size: 0.95em;
  }
  
  .team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background-color: white;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 0 5px rgba(20, 147, 255, 0.7);
  }
  
  button {
    padding: 10px 12px;
    cursor: pointer;
    min-width: 80px;
    background-color: #1493FF;
    color: #0A183D;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
  }
  
  button:hover {
    background-color: #ffffff;
    color: #0A183D;
    transform: scale(1.05);
  }
  
  .current-team {
    margin: 15px 0;
    padding: 10px;
    border: 2px solid #1493FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(10, 24, 61, 0.8);
    box-shadow: 0 0 10px rgba(20, 147, 255, 0.5);
  }
  
  .reset-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #1493FF;
    color: white;
    border: 2px solid #1493FF;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase;
    transition: all 0.3s;
  }
  
  .reset-btn:hover {
    background-color: #0A7AE0;
    transform: scale(1.05);
  }
  
  .total-row {
    font-weight: bold;
    background-color: #08142F;
    color: #FFFFFF;
  }

.instructions {
  margin: 15px 0;
  padding: 10px;
  border: 2px solid #FFA500; /* Orange border for contrast */
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.75); /* Slightly different background */
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}
.instructions h2 {
  color: #FFA500; /* Orange color for the heading */
  font-size: 1.2em;
  margin-bottom: 5px;
}
.instructions p {
  font-size: 0.9em;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .container {
    padding: 5px;
  }
  h1 {
    font-size: 1.8em;
  }
  th, td {
    font-size: 0.85em;
    padding: 6px;
  }
  .team-logo {
    width: 30px;
    height: 30px;
  }
  button {
    padding: 8px 10px;
    font-size: 0.9em;
  }
  .current-team h2 {
    font-size: 1.1em;
  }
  .instructions h2 {
    font-size: 1.1em;
  }
  .instructions p {
    font-size: 0.8em;
  }
}

.rank-display {
  font-size: 0.8em;
  color: #cccccc; /* Light gray color for the rank */
  display: block; /* Make it appear on a new line or adjust as needed */
  margin-top: 2px;
}

/* Adjust media query for rank display if necessary */
@media (max-width: 600px) {
  .rank-display {
    font-size: 0.75em;
  }
}

#leaderboardList li {
  padding: 5px 0;
  border-bottom: 1px dashed #00AAAA;
  text-align: left; /* Align text to the left for better readability */
  margin-left: auto;
  margin-right: auto;
  width: 80%; /* Or a fixed width */
}
#leaderboardList li:last-child {
  border-bottom: none;
}
#leaderboardList .score-name {
  font-weight: bold;
  color: #FFFFFF;
}
#leaderboardList .score-points {
  float: right;
  color: #FFA500;
}
.leaderboard-btn { /* Style for new buttons */
  padding: 8px 12px;
  cursor: pointer;
  background-color: #00FFFF;
  color: #0A183D;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
  margin: 5px;
}
.leaderboard-btn:hover {
  background-color: #00AAAA;
  color: #FFFFFF;
  transform: scale(1.05);
}
/* Adjust media query for leaderboard if necessary */
@media (max-width: 600px) {
  #leaderboardList li {
    width: 95%;
  }
  #playerNameInput {
    width: 60%;
  }
}