/* Configuration de base du style pour le site */
body {
  font-family: "Roboto", sans-serif;
  background-color: #2c246b;
  color: #000000;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  transition: background-color 0.3s ease-in-out;
}

.container {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 80%;
  max-width: 800px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

header h1 {
  font-size: 3em;
  color: #fcbc34;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

header p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #1a1a1a;
}

img {
  margin: 20px 0;
  width: 80px;
}

/* Boutons */
button {
  background-color: #2c246b;
  border: none;
  color: white;
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 10px 5px;
}

button:hover {
  background-color: #fcbc34;
  transform: translateY(-3px);
}

button:active {
  background-color: #fcbc34;
  transform: translateY(0);
}

/* Contenu caché au départ */
.hidden {
  display: none;
}

/* Puzzle */
/* Puzzle */
.puzzle-container {
  display: flex;
  justify-content: center;
  gap: 20px; /* Espace entre les slots */
  flex-direction: row; /* Assure l'alignement horizontal des slots */
}

#pieceOrigin {
  display: flex;
  flex-direction: row; /* Assure l'alignement horizontal des pièces */
  justify-content: space-around; /* Ajoute de l'espace autour des pièces */
  gap: 20px; /* Espace entre les pièces */
}

.puzzle-piece {
  width: 60px;
  height: 60px;
  background-color: #2c246b;
  color: white;
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: move;
  border: 2px solid #ddd;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.puzzle-piece:hover {
  transform: scale(1.05);
}

.drop-zone {
  display: flex;
  flex-direction: row; /* Assure l'alignement horizontal des slots */
  justify-content: space-around;
  gap: 20px; /* Espace entre les slots */
  margin: 20px 0;
}

.slot {
  width: 60px;
  height: 60px;
  border: 2px dashed #ddd;
  border-radius: 10px;
  background-color: #fcbc34;
}

/* Effet d'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pendu */
#pendu-container {
  margin: 20px 0;
}

#wordDisplay {
  font-size: 2em;
  letter-spacing: 0.5em;
  margin-bottom: 20px;
  color: #1a1a1a;
}

#guessInput {
  font-size: 1.5em;
  text-align: center;
  width: 50px;
  border-radius: 5px;
  border: 2px solid #ddd;
  padding: 5px;
}

#remainingGuesses {
  font-size: 1.2em;
  font-weight: bold;
  color: #fcbc34;
}

/* Conteneur de l'énigme de devinette */
.enigme-container {
  background-color: #ffffff;
  border: 2px solid #fcbc34;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.enigme-container p {
  font-size: 1.3em;
  color: #1a1a1a;
}

.enigme-container ul {
  list-style: none;
  padding-left: 0;
}

.enigme-container li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #1a1a1a;
}

/* Champ de saisie et bouton */
input[type="text"] {
  font-size: 1.2em;
  padding: 10px;
  width: 100%;
  max-width: 300px;
  margin-top: 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
}

#submitPassword {
  margin-top: 15px;
  background-color: #2c246b;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1.2em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#submitPassword:hover {
  background-color: #fcbc34;
}

#enigmeFeedback {
  margin-top: 15px;
  font-size: 1.2em;
  color: #ff6b6b;
}
/* Styles pour Puissance 4 */
#board {
  display: grid;
  grid-template-columns: repeat(7, 60px);
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 20px auto;
}

.cell {
  width: 60px;
  height: 60px;
  background-color: #2c246b;
  border: 2px solid #333;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cell.red {
  background-color: red;
}

.cell.yellow {
  background-color: yellow;
}

#playerTurn {
  font-size: 1.2em;
  margin-top: 15px;
}
