body {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 30px;
  font-family: 'Comic Sans MS', cursive;
}

.preview {
  max-width: 250px;
  border: 5px solid #a86c3d;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Miniaturas seleccionables */
.image-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.image-selector .preview {
  max-width: 100px;
  max-height: 100px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.image-selector .preview:hover {
  border-color: #e76f51;
}

.puzzle-container {
  width: 400px;
  height: 400px;
  display: flex;
  flex-wrap: wrap;
  border: 4px solid #a86c3d;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.piece {
  width: 100px;
  height: 100px;
  background-size: 400px 400px;
  box-sizing: border-box;
  border: 1px solid #fff;
  position: relative;
}

.buttons {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 20px;
}

button {
  background-color: #a86c3d;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

h1 {
  width: 100%;
  text-align: center;
  color: #a86c3d;
  margin-bottom: 10px;
}

#puzzleName {
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  color: #e76f51;
  margin-bottom: 20px;
  font-weight: bold;
}

.container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}