body {
  font-family: "Press Start 2P", cursive;
  width: 100vw;
  height: 100vh;
  margin: 0;
  background-image: url("./imgs/fonds/decors-jeu-combat-106.gif");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  position: relative; /* Ajouté pour permettre le positionnement absolu des enfants */
}

/* Style de la modal */
#avatar-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: black;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 24px;
}

/* Style de la liste d'avatars */
.avatar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.avatar-item {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.avatar-item:hover {
  border-color: #007bff;
}

.avatar-option {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid #e05301;
  border-radius: 10px;
  box-shadow: 0px 0px 20px 5px #ff4000;
  padding: 20px;
  margin: 15px;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 30px 10px #ff5c33;
}

.hero-info {
  color: white;
  margin-bottom: 10px;
  font-size: 14px;
}

.hero-card button {
  font-family: "Press Start 2P", cursive;
  font-size: 12px;
  padding: 8px 15px;
  border: 2px solid #ff4400;
  border-radius: 5px;
  color: white;
  background: #333;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-card button:hover {
  background: #ff4d00;
  color: black;
  transform: scale(1.1);
}

#list-card {
  display: flex;
  justify-content: center;
}

h1 {
  text-align: center;
  color: orangered;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

header form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border: 3px solid #e05301;
  border-radius: 10px;
  box-shadow: 0px 0px 20px 5px #ff4000;
  width: 300px;
}

header form input,
header form button {
  font-family: "Press Start 2P", cursive;
  font-size: 14px;
  padding: 10px;
  border: 2px solid #ff4400;
  border-radius: 5px;
  color: white;
  background: #333;
  text-align: center;
  transition: all 0.3s ease;
}

header form button:hover {
  background-color: #ff4d00;
  color: black;
  transform: scale(1.1);
  cursor: pointer;
}

.replay {
  font-family: "Press Start 2P", cursive;
  font-size: 20px;
  padding: 20px 35px;
  border: 2px solid #ff4400;
  border-radius: 5px;
  color: white;
  background: #333;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  justify-self: center;
}

.replay:hover {
  background: #ff4d00;
  color: black;
  transform: scale(1.1);
}

.comments {
  margin: 100px;
}

/* Correction pour le placement du h3 */
.consigne {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  text-align: center;
  color: black; /* Ajouté pour une meilleure visibilité */
  z-index: 1000; /* Assure que le texte est au-dessus des autres éléments */
}