body {
  text-align: center;
  font-family: Arial, sans-serif;
  background-image: url("4749822_45347.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  image-rendering: pixelated;
}

h1 {
  font-family: "Press Start 2P", cursive;
  font-size: 32px;
  color: #ffcc00;
  text-shadow: 4px 4px 0px #000, 6px 6px 10px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  margin-bottom: 20px;
}

#currentPlayer {
  font-family: "Press Start 2P", cursive;
  font-size: 16px;
  color: #000;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

/* Plateau de jeu */
#gameBoard {
  display: grid;
  gap: 5px;
  width: fit-content;
  margin: auto;
  padding: 10px;
  background-color: blue;
  border-radius: 10px;
  position: relative; 
  border: 4px solid black;
  overflow: visible; 
}

/* Cases de la grille */
.cell {
  width: 60px;
  height: 60px;
  background-color: lightgray;
  border-radius: 50%;
  border: 3px solid black;
  position: relative;
  transition: background-color 0.2s ease-in-out;
  box-shadow: inset 2px 2px 0px black;
  box-sizing: border-box; 
}

/*chute pour les jetons*/
.falling {
  position: absolute;
  border-radius: 50%;
  border: 3px solid black;
  box-shadow: inset 2px 2px 0px black;
  box-sizing: border-box; 
  z-index: 10; 
  transition: top 0.4s ease-in-out;
}

/* Scoreboard */
#scoreboard {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}

#scoreboard p {
  padding: 10px 20px;
  border-radius: 10px;
  background-color: #f0f0f0;
  border: 2px solid #ccc;
}

#scoreRouge {
  color: red;
}

#scoreJaune {
  color: goldenrod;
}

/* Boutons */
button {
  font-size: 16px;
  padding: 10px 15px;
  background-color: #ffcc00;
  color: black;
  font-family: "Press Start 2P", cursive;
  text-transform: uppercase;
  border: 4px solid black;
  box-shadow: 4px 4px 0px black;
  cursor: pointer;
  transition: all 0.1s;
  margin: 10px;
}

button:hover {
  background-color: #ffdd44;
}

button:active {
  box-shadow: 2px 2px 0px black;
  transform: translate(2px, 2px);
}

#undoMove {
  display: none;
  background-color: #ff4444;
  color: white;
  font-size: 16px;
  padding: 10px 15px;
  font-family: "Press Start 2P", cursive;
  text-transform: uppercase;
  border: 4px solid black;
  box-shadow: 4px 4px 0px black;
  cursor: pointer;
  transition: all 0.1s;
  margin: 10px;
}

#undoMove:hover {
  background-color: #ff6666;
}

#undoMove:active {
  box-shadow: 2px 2px 0px black;
  transform: translate(2px, 2px);
}

/* Style du popup */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

/* Masquer les popups au début */
#sizeModal, #nameModal {
  display: none;
}