body {
  font-family: "Nunito", sans-serif;
  color: #4a4a4a;
  background-color: #ffe4ec;
  background-image:
    radial-gradient(circle, #ffb7c5 8%, transparent 8%),
    radial-gradient(circle, #ffb7c5 8%, transparent 8%);
  background-size: 40px 40px;
  background-position:
    0 0,
    20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-size: 18px;
}

.container {
  border: 3px solid #ff6b8a;
  box-shadow:
    0 8px 32px rgba(255, 107, 138, 0.3),
    inset 0 0 0 2px #fff;
  padding: 25px;
  border-radius: 20px;
  max-width: 48rem;
  width: 90%;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fff5f7 100%);
}

/* Decorative bow at top */
.container::before {
  content: "🎀";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

h1 {
  color: #ff6b8a;
  text-shadow: 2px 2px 0 #ffccd5;
  font-size: 2.5rem;
  margin-right: 1rem;
  font-weight: 700;
}

#question {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #555;
}

/* Sentence display styling */
.sentence-display {
  background-color: #fff;
  border: 2px solid #ffccd5;
  padding: 15px 20px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  line-height: 1.6;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 138, 0.1);
}

.sentence-display .subject {
  text-decoration: underline;
  text-decoration-color: #ff6b8a;
  text-decoration-thickness: 3px;
  text-decoration-style: wavy;
}

.sentence-display .predicate {
  text-decoration: underline;
  text-decoration-color: #ff9eb5;
  text-decoration-thickness: 3px;
  text-decoration-style: wavy;
}

select,
button,
.option-button {
  font-family: "Nunito", sans-serif;
  border: 2px solid #ffccd5;
  color: #4a4a4a;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

select:hover,
button:hover {
  background-color: #ffe4ec;
  border-color: #ff6b8a;
}

.option-button {
  border: 2px solid #ffccd5;
  padding: 12px 18px;
  margin-bottom: 0;
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 12px;
}

.option-button:hover {
  background-color: #fff0f3;
  border-color: #ff6b8a;
  transform: translateX(5px);
}

.option-button:last-child {
  margin-bottom: 0;
}

#score {
  background: linear-gradient(135deg, #ff6b8a 0%, #ff9eb5 100%);
  border: none;
  padding: 12px;
  margin-top: 20px;
  font-size: 1.3rem;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
}

.hidden {
  display: none;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

.w-192 {
  width: 48rem;
}

@media screen and (max-width: 600px) {
  .container {
    margin-left: 5px;
    margin-right: 5px;
  }
}

#show-hint-button,
.show-hint-button {
  margin-top: 15px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ff9eb5 0%, #ffb7c5 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
}

#show-hint-button:hover,
.show-hint-button:hover {
  background: linear-gradient(135deg, #ff6b8a 0%, #ff9eb5 100%);
}

#quiz-selector {
  font-size: 0.9rem;
  padding: 8px 12px;
  width: auto;
  flex-shrink: 0;
  background: #fff;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media screen and (max-width: 600px) {
  .container > div:first-child {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    margin-bottom: 0.5rem;
  }

  #quiz-selector {
    width: 100%;
  }
}

/* Color coding legend */
.legend {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 1rem;
  opacity: 0.9;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-color {
  width: 20px;
  height: 4px;
  border-radius: 2px;
}

.legend-color.subject {
  background-color: #ff6b8a;
}

.legend-color.predicate {
  background-color: #ff9eb5;
}

/* Cute heart decorations */
.container::after {
  content: "💖";
  position: absolute;
  bottom: -10px;
  right: 20px;
  font-size: 1.5rem;
}

/* Correct answer styling */
.option-button.bg-green-500 {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
  border-color: #22c55e !important;
  color: #fff !important;
  transform: scale(1.02);
}

.container.bg-green-800 {
  background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%) !important;
  border-color: #4ade80 !important;
}

/* Incorrect answer styling */
.option-button.bg-red-500 {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}
