* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  color: #7f8c8d;
  margin: 0 auto;
}

.game-area {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.puzzle-container {
  width: 900px;
  height: 900px;
  border: 2px dashed #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  position: relative;
  border-radius: 8px;
}

.controls {
  flex: 1;
  padding: 20px;
  background-color: #fff;
}

.control-group {
  margin-bottom: 20px;
}

.group-box{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}

.group-box .control-group{
  margin-bottom: 0;
}

.pretip{
  margin-top: 15px;
  font-size: 14px;
  color: #6a6a6a;
}
.container label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.container select,
.container button {
  width: 100%;
  padding: 14px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

button {
  background-color: #3498db;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
}

button:hover {
  background-color: #2980b9;
}

.preview-image {
  max-width: 100%;
  max-height: 475px;
  display: none;
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.jqp-wrapper span{
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 6px;
  left: 6px;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  display: none;
  z-index: 1000;
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 15px;
}

.features {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;

  text-align: center;
}

.feature {
  flex: 1;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
}
.feature h3{
  margin-bottom: 15px;
  font-size: 18px;
}
.feature-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.original-image-btn {
  background-color: #27ae60;
}

.original-image-btn:hover {
  background-color: #219955;
}

.upload-btn {
  background-color: #9b59b6;
}

.upload-btn:hover {
  background-color: #8e44ad;
}

.generate-btn {
  background-color: #e67e22;
}

.generate-btn:hover {
  background-color: #d35400;
}
