body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #f0f0f0, #dcdcdc);
  font-family: Arial, sans-serif;
}

#puzzle {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 5px;
  background: #333;
  padding: 5px;
  border-radius: 10px;
}

#message {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  color: green;
  text-align: center;
}

.tile {
  width: 100px;
  height: 100px;
  background-image: url("puzzle.jpg"); 
  background-size: 300px 300px;
  border-radius: 8px;
  cursor: pointer;
}

.tile:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.empty {
  background: none;
  background-image: none;
  border: 1px dashed #aaa;
  cursor: default;
}

.controls {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

button {
  padding: 10px 15px; 
  font-size: 1rem; 
  border: none;
  border-radius: 5px; 
  background: #6c63ff; 
  color: white; 
  cursor: pointer; 
}

button:hover {
  background: #5548c8; 
}

.title {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  text-align: center;
}
