body {
  font-family: sans-serif;
  text-align: center;
  background-color: #88C999; /* Vert doux et lumineux */
}

#imageInput, #pauseButton, #resumeButton, #cutButton  {
  margin: 10px;
  padding: 8px 12px;
  font-size: 16px;
  background-color: #FFD166; /* Jaune chaud */
  border: none;
  border-radius: 5px;
  color: #333;
}

.piece {
  cursor: grab;
  z-index: 1;
}

#win-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background-color: #FFF9F0; /* Beige clair */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

#win-popup.hidden {
  display: none;
}

#win-button {
  margin-top: 20px;
  padding: 5px 20px;
  font-size: 18px;
  cursor: pointer;
  background-color: #06D6A0; /* Vert turquoise */
  color: white;
  border: none;
  border-radius: 5px;
}
 
#cancel-button, #error-ok-button {
  margin-top: 20px;
  padding: 5px 20px;
  font-size: 18px;
  cursor: pointer;
  background-color: #EF476F; /* Rose/rouge vif */
  color: white;
  border: none;
  border-radius: 5px;
}

#controls {
  padding: 10px;
  background: #FAF3DD; /* Crème douce */
  border-bottom: 2px solid #E2C275;
}

#game-area {
  position: relative;
  width: 100%;
  height: calc(100vh - 100px);
  background: #5e5c56; /* Gris marron */
  overflow: hidden;
}

#pauseOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.hidden {
  display: none !important;
}

.pause-content {
  text-align: center;
}

.timer-container {
  margin-top: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px; /* espace entre timer et bouton */
  justify-content: center;
}

#error-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#error-popup .popup-content {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}