body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  text-align: center;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

body.dragging {
  overflow: hidden;
  touch-action: none;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  font-size: 2.5rem;
  color: #0965f0;
  margin-bottom: 10px;
}

.tip {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

.word-bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.draggable-word {
  background-color: #bcae9d;
  border: 2px solid #080000;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 1rem;
  max-width: 100%;
  word-wrap: break-word;
  cursor: grab;
  transition: all 0.3s ease;
}

.draggable-word:hover {
  background-color: #eef;
  border-color: #88f;
}

.draggable-word.touch-dragging {
  position: absolute;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.9;
  transform: scale(1.1);
}

.drop-zones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.drop-zone {
  background-color: #fff;
  border: 4px solid #888; /* ✅ Solid border instead of dashed */
  border-radius: 16px;
  width: 45%;
  min-width: 300px;
  min-height: 180px;
  padding: 20px;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow */
}

.drop-zone h2 {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 10px;
}

.drop-zone.over {
  background-color: #f0f8ff;
  border-color: #00f;
}

.correct {
  background-color: #a5d6a7 !important;
  border-color: #2e7d32 !important;
  color: #fff !important;
}

.incorrect {
  background-color: #ef9a9a !important;
  border-color: #c62828 !important;
  color: #fff !important;
}

#submit-btn {
  background-color: #ff9800;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#submit-btn:hover {
  background-color: #fb8c00;
}

#feedback-message {
  font-size: 1.2rem;
  margin-top: 20px;
  color: #333;
}

.back-button {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #2196f3;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.grammar-image img {
  margin-top: 30px;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#try-again-btn {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 15px;
}

#try-again-btn:hover {
  background-color: #43a047;
  transform: scale(1.05);
}

#try-again-btn:active {
  background-color: #388e3c;
  transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
  .drop-zone {
    width: 100%;
  }
}
