/* Body & container */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f6fb;
  margin: 0;
  padding: 40px;
}

#static-instruction {
  font-size: 18px;
  font-weight: 600;
  color: #555;
  margin-bottom: 20px;
  text-align: center;
}

.container {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

/* Heading */
h1 {
  margin-bottom: 20px;
}

/* Progress bar */
.progress-container {
  width: 100%;
  height: 10px;
  background: #e2e6f3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #4f7cff, #6aa0ff);
  transition: width 0.5s ease;
}

/* Question area */
.question-area {
  margin: 40px 0;
}

/* Draggable answer block */
.answer {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f7cff, #6aa0ff);
  color: white;
  padding: 20px;
  border-radius: 16px;
  cursor: grab;
  min-height: 80px;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  touch-action: none;
}

.answer.dragging {
  opacity: 0.6;
  transform: scale(1.05);
}

/* Prompt content */
#prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}

.quiz-image {
  max-width: 220px;
  border-radius: 8px;
}

audio {
  margin-top: 10px;
}

/* Categories container */
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

/* Dropzones */
.dropzone {
  padding: 20px;
  text-align: center;
  border: 2px dashed #cfd7e6;
  border-radius: 12px;
  font-weight: 600;
  background: white;
  transition: all 0.2s ease;
  min-width: 0;      /* allow shrinking */
  max-width: 160px;  /* optional, prevents over-stretching */
}

.dropzone:hover {
  border-color: #4f7cff;
  background-color: #e2e6f3;
  transform: scale(1.03);
}

.dropzone.dragover {
  border-color: #4f7cff;
  background-color: #d0d5f5;
  transform: scale(1.05);
}

.dropzone.correct {
  border-color: #28c76f;
  background: #eafff3;
}

.dropzone.incorrect {
  border-color: #ff4d4f;
  background: #ffecec;
}

/* Score display */
.score {
  margin-top: 30px;
  font-size: 20px;
  font-weight: 600;
}

/* Feedback */
#feedback {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s, transform 0.2s;
}

#feedback.show {
  opacity: 1;
  transform: scale(1.05);
}

/* Continue button */
#continue-btn {
  background: linear-gradient(135deg, #4f7cff, #6aa0ff);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s, transform 0.1s;
}

#continue-btn:hover {
  background-color: #3a5ecf;
  transform: scale(1.05);
}

#continue-btn:active {
  transform: scale(0.95);
}

/* Final screen */
#final-screen {
  margin-top: 40px;
  text-align: center;
}

#final-screen h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

#final-screen p {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

#retry-btn {
  background: linear-gradient(135deg, #4f7cff, #6aa0ff);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s, transform 0.1s;
}

#retry-btn:hover {
  background-color: #3a5ecf;
  transform: scale(1.05);
}

#retry-btn:active {
  transform: scale(0.95);
}

.image-instruction {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}