:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --accent-color: #fdcb6e;
  --background-color: #dfe6e9;
  --text-color: #2d3436;
}

body {
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  min-height: 100vh;
  color: var(--text-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

.view-section {
  display: none; /* Controlled by JS */
  animation: fadeIn 0.5s ease-in-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Card Styles */
.card {
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  background-color: transparent;
  border-bottom: 2px solid #f1f2f6;
  font-weight: bold;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border: none;
  box-shadow: 0 4px 6px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  background-color: #5849c4;
}

.btn-success {
  background-color: #00b894;
  border: none;
}

.btn-warning {
  background-color: var(--accent-color);
  border: none;
  color: #2d3436;
}

/* Game Interface */
#gameContainer {
  min-height: 400px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 30px;
  position: relative;
}

.draggable-item {
  cursor: grab;
  background-color: #ffffff;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 15px;
  margin: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.2s;
  user-select: none;
}

.draggable-item:active {
  cursor: grabbing;
  transform: scale(1.05);
}

.drop-zone {
  border: 2px dashed #b2bec3;
  border-radius: 10px;
  padding: 20px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f2f6;
  transition: background-color 0.3s;
}

.drop-zone.drag-over {
  background-color: #dfe6e9;
  border-color: var(--primary-color);
}

/* Quiz Styles */
.quiz-option {
  display: block;
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  background-color: #f1f2f6;
  border: 2px solid transparent;
  border-radius: 10px;
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 1.1rem;
}

.quiz-option:hover {
  background-color: #e6e6e6;
  border-color: #b2bec3;
}

.quiz-option.selected {
  border-color: var(--primary-color);
  background-color: #e3dcfd;
}

.quiz-option.correct {
  border-color: #00b894;
  background-color: #d1f7ea;
}

.quiz-option.wrong {
  border-color: #d63031;
  background-color: #fab1a0;
}

/* Fill Blank Styles */
.fill-blank-sentence {
  font-size: 1.5rem;
  line-height: 2;
}

.fill-blank-input {
  border: none;
  border-bottom: 2px solid var(--primary-color);
  background: transparent;
  text-align: center;
  font-weight: bold;
  font-size: 1.5rem;
  width: 150px;
  color: var(--primary-color);
}

.fill-blank-input:focus {
  outline: none;
  border-bottom-color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-body {
    padding: 20px;
  }

  h2 {
    font-size: 1.8rem;
  }
}
