body {
  font-family: Poppins, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
  overflow: hidden;
}

h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: #ff758c;
  margin-bottom: 10px;
}

#game {
  text-align: center;
  padding: 10px;
}

#guide {
  margin-bottom: 10px;
  text-align: center;
}

#guide-img {
  width: 150px;
  opacity: 0.8;
  border: 2px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, opacity 0.3s;
}

#guide-img:hover {
  transform: scale(1.1);
  opacity: 1;
}

#puzzle {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-gap: 5px;
  margin: 20px auto;
  width: 100%;
  max-width: 310px;
  height: 310px;
  min-width: 300px;
  min-height: 300px;
  background-color: #ddd;
  position: relative;
  overflow: hidden;
  transition: opacity 0.5s ease-out;
}

.piece {
  width: 100px;
  height: 100px;
  cursor: pointer;
  border: 1px solid #fff;
  box-sizing: border-box;
  user-select: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.piece:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.piece:active {
  transform: scale(1.1);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

#message {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1.5;
  text-align: center;
  padding: 20px;
  animation: zoomIn 1s ease-in-out forwards;
  opacity: 0;
}

#message h1 span {
  display: block;
  color: white;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}