/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Include padding and border in element's width and height */
  font-family: "Archivo Black", sans-serif;
}

body,
html {
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-grow: 1;
}

/* Nav Styles */
header {
  width: 100%;
  box-shadow: 0 1px 8px #ddd;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}

.same-row {
  display: flex;
  align-items: center;
  margin: 10px;
}

nav {
  display: flex;
  gap: 10px;
  padding: 7px;
  justify-content: flex-end;
  width: 100%;
}

li {
  display: inline-block;
  border: 1px solid #555;
  border-radius: 3px;
  padding: 8px;
  font-size: 12px;
}

li:hover {
  color: #b2dfdb;
  border: 1px solid #b2dfdb;
  transition-duration: 0.2s;
}

li a {
  text-decoration: none;
  color: #555;
}

li a:hover {
  color: #b2dfdb;
  transition-duration: 0.2s;
}

.nav-title {
  font-size: 20px;
}

#menu-toggle {
  margin-left: auto;
  cursor: pointer;
}

.nav-title a {
  color: #000;
  text-decoration: none;
}

.nav-logo {
  width: 30px;
  height: 30px;
  margin-right: 7px;
}

.hidden {
  display: none;
}

/* Content Styles */

.content {
  margin-top: 10px;
  margin: 20px;
  padding: 5px;
  text-align: center;
  width: 100%;
}

.title {
  margin: 9px;
}

.separator {
  color: #555;
  margin: 20px auto;
  width: 80%;
}

/* Roster */
.team-conatainer {
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the entire team container */
  width: 100%; /* Ensure it takes the full width */
}

.team-conatainer h1 {
  margin: 15px;
}

.players-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  justify-content: center; /* Center the grid */
}

.player-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  color: #000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.player-card img {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
}

.player-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.player-card p {
  margin: 0;
  font-size: 16px;
  color: #555;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  width: 100%;
  background-color: #555;
  padding: 7px;
  color: #b2dfdb;
  text-align: center;
  font-size: 10px;
  margin-top: auto;
}

/* Media Queries */
@media screen and (min-width: 768px) {
  #menu-toggle {
    display: none;
  }

  .hidden {
    display: flex;
  }

  header {
    display: flex;
  }

  #nav {
    margin-left: auto;
  }

  /* Center players-container on larger screens */
  .players-container {
    justify-content: center; /* Center grid container */
    grid-template-columns: repeat(
      auto-fill,
      minmax(250px, 1fr)
    ); /* Adjust the min-width for better centering */
  }
}
