#categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  align-items: stretch;
}

.category-card {
  border: 2px dashed #6c757d;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.card-header {
  text-align: center;
  font-weight: bold;
  background-color: #007bff;
  color: white;
}

.dropzone {
  min-height: 150px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-grow: 1;
  transition: all 0.3s ease, transform 0.2s ease;
  background-color: #fdfdfd;
}

.dropzoneR {
  border: 2px dashed #6c757d;
  border-radius: 0.5rem;
  padding: 10px;
  background-color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 100px;
  transition: all 0.3s ease;
}

.dropzone.over { border-color: #007bff; background-color: #e9f5ff; }

.word {
  margin: 5px;
  cursor: grab;
  border-radius: 20px;
  padding: 5px 12px;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.2s, background-color 0.3s;
  user-select: none;
}
.word:hover { transform: scale(1.05); }

.word.correct-light { background-color: #d4edda !important; color: #155724 !important; border-color: #c3e6cb !important; }
.word.incorrect-light { background-color: #f8d7da !important; color: #721c24 !important; border-color: #f5c6cb !important; }
.word.correct-strong { background-color: #218838 !important; color: #fff !important; border-color: #1e7e34 !important; }
.word.incorrect-strong { background-color: #c82333 !important; color: #fff !important; border-color: #bd2130 !important; }
