main {
  margin: 0 auto;
  text-align: center;
  max-width: auto;
}
body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
}
header {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #ecd597;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
header img {
  height: auto;
  max-width: 75px;
}
/* Search form start */
#search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

#search-input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
}

#search-input::placeholder {
  color: #ccc;
}

#search-button {
  padding: 10px;
  border: none;
  background-color: #007aff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#search-button:hover {
  background-color: #0053ba;
}

.fa-search {
  font-size: 20px;
}

/* Search form end */
/* Nav Start */
nav .nav-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  color: #000000;
  font-size: 16px;
}

nav .nav-container a {
  color: #555;
  text-decoration: none;
  margin: 0 15px;
  transition: opacity 0.3s ease;
}

nav .nav-container a:hover {
  opacity: 0.6;
}
/* Nav end */

/* Center the user card */
/* Set the main container to be a flexbox with column direction */
.user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  margin-top: 150px;
}

.username {
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
}

.user-avatar {
  margin-right: 10px;
}

.user-avatar img {
  border-radius: 50%;
  vertical-align: middle;
}

/* Center the trophy and miscellaneous stats text */
.psntrophy, .psnmisc {
  margin-top: 20px;
  text-align: center;
}

/* Add some margin to the top and bottom of each trophy and stat item */
.psntrophy p, .psnmisc p {
  margin: 5px 0;
}

/* Style the trophy level text with a larger font size and bold weight */
#trophylevel {
  font-size: 20px;
  font-weight: bold;
}

/* Style the total trophy count text with a smaller font size */
#totaltrophy {
  font-size: 14px;
}

/* Style the platinum trophy badge with a gray background */
#platinum {
  color: #e5e4e2;
  background-color: #3d3d3d;
  padding: 5px;
  border-radius: 5px;
  display: inline-block;
  margin: 0 5px;
}

/* Style the gold trophy badge with a yellow background */
#gold {
  color: #f3c300;
  background-color: #333;
  padding: 5px;
  border-radius: 5px;
  display: inline-block;
  margin: 0 5px;
}

/* Style the silver trophy badge with a light gray background */
#silver {
  color: #9ea7a6;
  background-color: #333;
  padding: 5px;
  position:center;
  border-radius: 5px;
  display: inline-block;
  margin: 0 5px;
}

/* Style the bronze trophy badge with a brown background */
#bronze {
  color: #cd7f32;
  background-color: #333;
  padding: 5px;
  position:center;
  border-radius: 5px;
  display: inline-block;
  margin: 0 5px;
}

/* Style the games played, games completed, and average completion text with bold weight and a smaller font size */
#gamesplayed, #gamescomp, #avgcomp {
  position: left;
  font-weight: bold;
  font-size: 15px;
}



/* Footer start */
@media screen and (max-width: 768px) {
  .header-nav-container {
      padding: 5px;
 }
  .header-nav-container span {
      font-size: 0.8rem;
      margin-left: 5px;
 }
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: right;
  padding: 10px;
  background-color: #333;
  color: #ffffff;
}
