.quiz-header {
  background: linear-gradient(135deg, #42a5f5, #66bb6a);
  color: white;
  text-align: center;
  padding: 25px 15px 35px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
      display:flex;
    flex-direction:column;
    align-items:center;
}

.quiz-header h1 {
  font-size: 42px;
  margin: 10px 0;
}

.quiz-header p {
  font-size: 20px;
}

.back-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
}

.quiz-wrapper {
  width: 92%;
  max-width: 1100px;
  margin: 35px auto;
}

.quiz-card {
  background: white;
  border-radius: 35px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  text-align: center;
}

.quiz-top {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quiz-badge {
  background: #fff3cd;
  color: #8a5a00;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: bold;
}

.quiz-badge.blue {
  background: #e3f2fd;
  color: #1976d2;
}

.quiz-scene {
  font-size: 90px;
  margin: 20px 0;
  animation: float 2s infinite ease-in-out;
}

.texture-scene {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 74px;
}

.texture-sample {
  width: 64px;
  height: 64px;
  border: 4px solid #2f2f2f;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(47, 47, 47, 0.14);
}

.texture-sample-rough {
  background:
    radial-gradient(circle at 18px 18px, #80543a 0 5px, transparent 6px),
    radial-gradient(circle at 42px 24px, #5d3d2c 0 4px, transparent 5px),
    radial-gradient(circle at 28px 46px, #a8754d 0 6px, transparent 7px),
    linear-gradient(135deg, #b98255, #71482f);
}

.texture-sample-smooth {
  background: linear-gradient(135deg, #f8fbff 0%, #b9d5ec 48%, #ffffff 50%, #7aaed2 100%);
}

.rough-surface-scene {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 92px;
}

.rough-surface-sample,
.smooth-surface-sample {
  position: relative;
  width: 82px;
  height: 82px;
  border: 5px solid #2f2f2f;
  box-shadow: 0 10px 18px rgba(31, 41, 55, 0.16);
}

.rough-surface-sample {
  border-radius: 22px 18px 26px 20px;
  background:
    radial-gradient(circle at 18px 18px, #573826 0 7px, transparent 8px),
    radial-gradient(circle at 54px 20px, #8f6545 0 8px, transparent 9px),
    radial-gradient(circle at 30px 54px, #4e3324 0 6px, transparent 7px),
    radial-gradient(circle at 62px 58px, #b48961 0 7px, transparent 8px),
    linear-gradient(135deg, #a87651, #6d4a36);
}

.smooth-surface-sample {
  border-radius: 18px;
  background: linear-gradient(135deg, #eaf7ff 0%, #b7dcf3 46%, #ffffff 48%, #75afd2 100%);
}

.texture-answer-icon {
  position: relative;
  display: block;
  width: 104px;
  height: 104px;
  margin: 4px auto 2px;
}

.stone-icon {
  border: 5px solid #20242a;
  border-radius: 44% 56% 48% 52% / 54% 44% 56% 46%;
  background:
    radial-gradient(circle at 25px 30px, #5c4030 0 8px, transparent 9px),
    radial-gradient(circle at 70px 32px, #9a765d 0 9px, transparent 10px),
    radial-gradient(circle at 48px 68px, #4b3328 0 7px, transparent 8px),
    linear-gradient(145deg, #92705b, #5c463b);
  box-shadow: inset -12px -14px 0 rgba(0,0,0,.12), 0 8px 12px rgba(31,41,55,.18);
}

.stone-icon span {
  position: absolute;
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: rgba(32, 36, 42, .48);
}

.stone-icon span:nth-child(1) {
  left: 18px;
  top: 52px;
  transform: rotate(-18deg);
}

.stone-icon span:nth-child(2) {
  right: 18px;
  top: 58px;
  transform: rotate(18deg);
}

.stone-icon span:nth-child(3) {
  left: 42px;
  top: 25px;
  transform: rotate(28deg);
}

.mirror-icon {
  width: 86px;
  height: 108px;
}

.mirror-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 2px;
  width: 66px;
  height: 76px;
  border: 5px solid #17202a;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #f7fbff 0 38%, #90caf9 39% 48%, #ffffff 49% 55%, #64b5f6 56% 100%);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.42);
}

.mirror-icon::after {
  content: "";
  position: absolute;
  left: 35px;
  bottom: 2px;
  width: 16px;
  height: 32px;
  border-radius: 999px;
  background: #17202a;
}

.mirror-icon span {
  position: absolute;
  left: 21px;
  bottom: 0;
  width: 44px;
  height: 9px;
  border-radius: 999px;
  background: #17202a;
}

.water-drop-icon {
  width: 82px;
  height: 104px;
  border: 5px solid #051923;
  border-radius: 56% 56% 58% 58% / 70% 70% 40% 40%;
  background: linear-gradient(155deg, #72ddf7 0%, #19b5e5 45%, #0288d1 100%);
  transform: rotate(45deg);
  box-shadow: inset -10px -14px 0 rgba(0, 67, 112, .18), 0 8px 12px rgba(31,41,55,.14);
}

.water-drop-icon::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 18px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
}

.primary-question-scene {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 82px;
}

.primary-question-scene span {
  position: relative;
  width: 64px;
  height: 64px;
  border: 5px solid #111;
  border-radius: 50%;
  background:
    repeating-linear-gradient(135deg, #f7f7f7 0 8px, #e2e9f3 8px 16px);
  box-shadow: 0 8px 16px rgba(17, 17, 17, 0.12);
}

.primary-question-scene span::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #2d5f91;
  font-size: 32px;
  font-weight: 800;
}

.color-mix-question-scene {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 82px;
}

.color-mix-question-scene span,
.color-mix-question-scene em {
  width: 58px;
  height: 58px;
  border: 5px solid #111;
  border-radius: 50%;
  background:
    repeating-linear-gradient(135deg, #fbfbfb 0 8px, #e6edf6 8px 16px);
  box-shadow: 0 8px 16px rgba(17, 17, 17, 0.12);
}

.color-mix-question-scene b {
  color: #26384d;
  font-size: 34px;
  line-height: 1;
}

.color-mix-question-scene em {
  display: grid;
  place-items: center;
  color: #2d5f91;
  font-size: 32px;
  font-style: normal;
  font-weight: 800;
}

.shape-question-mix-scene {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 26px);
  min-height: 112px;
}

.shape-question-mix-scene span,
.shape-question-mix-scene strong {
  position: relative;
  display: block;
  flex: 0 0 auto;
}

.shape-question-mix-scene strong {
  width: 74px;
  height: 74px;
  border: 5px solid #17202a;
  border-radius: 50%;
  background: #ffca28;
  color: #17202a;
  font-size: 54px;
  line-height: 68px;
  font-weight: 900;
  box-shadow: 0 8px 14px rgba(23, 32, 42, .14);
}

.mix-house {
  width: 92px;
  height: 78px;
  border: 5px solid #17202a;
  border-top: 0;
  background: #fffdf7;
  margin-top: 24px;
}

.mix-house::before {
  content: "";
  position: absolute;
  left: 13px;
  top: -36px;
  width: 58px;
  height: 58px;
  border-left: 5px solid #17202a;
  border-top: 5px solid #17202a;
  background: #ff7043;
  transform: rotate(45deg);
}

.mix-house b {
  position: absolute;
  left: 14px;
  bottom: 0;
  width: 22px;
  height: 36px;
  background: #ef5350;
}

.mix-house i {
  position: absolute;
  right: 14px;
  top: 24px;
  width: 16px;
  height: 16px;
  background: #29b6f6;
  box-shadow: -26px 0 0 #29b6f6;
}

.mix-tree {
  width: 76px;
  height: 96px;
}

.mix-tree::before {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 0;
  width: 20px;
  height: 38px;
  border: 5px solid #17202a;
  background: #8d5524;
}

.mix-tree b {
  position: absolute;
  left: 3px;
  top: 5px;
  width: 70px;
  height: 58px;
  border: 5px solid #17202a;
  border-radius: 46% 54% 48% 52%;
  background: #49b848;
}

.mix-tree i {
  position: absolute;
  left: 18px;
  top: 31px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #278a2f;
  box-shadow: 20px -8px 0 #278a2f, 29px 12px 0 #278a2f;
}

.mix-pencil {
  width: 98px;
  height: 24px;
  border: 5px solid #17202a;
  border-radius: 999px 10px 10px 999px;
  background: #ffca28;
  transform: rotate(-32deg);
}

.mix-pencil::before {
  content: "";
  position: absolute;
  right: -24px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 24px solid #ffe0b2;
}

.mix-pencil::after {
  content: "";
  position: absolute;
  left: -14px;
  top: -5px;
  width: 18px;
  height: 24px;
  border: 5px solid #17202a;
  border-radius: 999px 0 0 999px;
  background: #ef5350;
}

.four-equal-lines-scene {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 100px;
}

.four-equal-lines-scene span {
  display: block;
  width: 58px;
  height: 10px;
  border: 4px solid #17202a;
  border-radius: 999px;
  background: #ffca28;
  box-shadow: 0 6px 10px rgba(23, 32, 42, .14);
}

.four-equal-lines-scene span:nth-child(2) {
  transform: rotate(90deg);
}

.four-equal-lines-scene span:nth-child(3) {
  transform: rotate(-18deg);
}

.four-equal-lines-scene span:nth-child(4) {
  transform: rotate(18deg);
}

.four-equal-lines-scene strong {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-left: 8px;
  border: 5px solid #17202a;
  border-radius: 50%;
  background: #fff3cd;
  color: #17202a;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 14px rgba(23, 32, 42, .14);
}

.symmetry-question-scene {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 90px;
}

.symmetry-question-scene span {
  width: 52px;
  height: 72px;
  border: 5px solid #111;
  background:
    radial-gradient(circle at 26px 18px, #7bc7ff 0 7px, transparent 8px),
    radial-gradient(circle at 26px 52px, #ffb84d 0 8px, transparent 9px),
    linear-gradient(135deg, #f8fbff, #e2edf8);
  box-shadow: 0 8px 16px rgba(17, 17, 17, 0.12);
}

.symmetry-question-scene span:first-child {
  border-radius: 34px 10px 10px 34px;
}

.symmetry-question-scene span:last-child {
  border-radius: 10px 34px 34px 10px;
  transform: scaleX(-1);
}

.symmetry-question-scene i {
  width: 5px;
  height: 88px;
  border-radius: 999px;
  background: repeating-linear-gradient(to bottom, #2d5f91 0 10px, transparent 10px 17px);
}

.symmetry-explainer-scene {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 112px;
}

.symmetry-explainer-scene i {
  width: 6px;
  height: 108px;
  border-radius: 999px;
  background: repeating-linear-gradient(to bottom, #1d5fa8 0 10px, transparent 10px 17px);
  box-shadow: 0 0 0 4px rgba(29, 95, 168, .08);
}

.symmetry-side {
  position: relative;
  display: block;
  width: 78px;
  height: 96px;
  border: 5px solid #17202a;
  background:
    radial-gradient(circle at 36px 24px, #73c5ff 0 8px, transparent 9px),
    radial-gradient(circle at 35px 67px, #ffb84d 0 9px, transparent 10px),
    linear-gradient(145deg, #fffdf6, #e7f4ff);
  box-shadow: 0 10px 18px rgba(23, 32, 42, .16);
}

.symmetry-left {
  border-radius: 48px 14px 14px 48px;
}

.symmetry-right {
  border-radius: 14px 48px 48px 14px;
}

.symmetry-side b,
.symmetry-side em {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(23, 32, 42, .2);
}

.symmetry-side b {
  width: 26px;
  height: 6px;
  left: 31px;
  top: 45px;
}

.symmetry-side em {
  width: 18px;
  height: 6px;
  left: 35px;
  top: 80px;
  transform: rotate(-18deg);
}

.symmetry-right b {
  left: 16px;
}

.symmetry-right em {
  left: 20px;
  transform: rotate(18deg);
}

.dirty-tooth-scene {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.dirty-tooth-scene .tooth-dirt {
  position: absolute;
  width: .18em;
  height: .18em;
  border-radius: 50%;
  background: #8d6e63;
  box-shadow: 0 0 0 3px rgba(141,110,99,.12);
}

.dirty-tooth-scene .dirt-one {
  left: 42%;
  top: 35%;
}

.dirty-tooth-scene .dirt-two {
  left: 56%;
  top: 48%;
}

.dirty-tooth-scene .dirt-three {
  left: 47%;
  top: 62%;
}

.answer-dirty-tooth {
  font-size: 1em;
}

.answer-wood-icon {
  position: relative;
  display: inline-block;
  width: 1.18em;
  height: .72em;
  border: .09em solid #6d4c41;
  border-radius: .18em .36em .36em .18em;
  background: linear-gradient(90deg, #8d6e63 0 18%, #c68642 18% 100%);
  box-shadow: inset 0 -.08em 0 rgba(77, 46, 33, .18);
  transform: rotate(-8deg);
}

.answer-wood-icon .wood-ring {
  position: absolute;
  left: .08em;
  top: .13em;
  width: .34em;
  height: .34em;
  border: .06em solid #5d4037;
  border-radius: 50%;
  background: #d7a15d;
}

.answer-wood-icon .wood-line {
  position: absolute;
  left: .52em;
  width: .46em;
  height: .06em;
  border-radius: 999px;
  background: rgba(93, 64, 55, .55);
}

.answer-wood-icon .wood-line-one {
  top: .24em;
}

.answer-wood-icon .wood-line-two {
  top: .43em;
}

.no-brush-scene {
  position: relative;
  display: inline-block;
  width: 1.5em;
  height: 1.15em;
}

.no-brush-scene .brush-handle {
  position: absolute;
  left: .1em;
  top: .58em;
  width: 1.02em;
  height: .18em;
  border-radius: .12em;
  background: #64b5f6;
  transform: rotate(-18deg);
  box-shadow: inset 0 -3px 0 rgba(25,118,210,.25);
}

.no-brush-scene .brush-head {
  position: absolute;
  left: .94em;
  top: .42em;
  width: .38em;
  height: .28em;
  border-radius: .08em;
  background: #1976d2;
  transform: rotate(-18deg);
}

.no-brush-scene .brush-head span {
  position: absolute;
  top: -.18em;
  width: .055em;
  height: .2em;
  border-radius: .05em;
  background: #90caf9;
}

.no-brush-scene .brush-head span:nth-child(1) {
  left: .08em;
}

.no-brush-scene .brush-head span:nth-child(2) {
  left: .17em;
}

.no-brush-scene .brush-head span:nth-child(3) {
  left: .26em;
}

.no-brush-scene .no-brush-slash {
  position: absolute;
  left: .08em;
  top: .52em;
  width: 1.35em;
  height: .16em;
  border-radius: .16em;
  background: #e53935;
  transform: rotate(-42deg);
  box-shadow: 0 0 0 .04em white;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.quiz-question {
  font-size: 34px;
  color: #2e7d32;
  margin: 20px 0;
}

.quiz-instruction {
  display: none;
  max-width: 760px;
  margin: -5px auto 20px;
  color: #5f6b7a;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.45;
}

.quiz-instruction.story-before-question {
  margin: 8px auto 14px;
}

.quiz-question.after-story-question {
  margin: 12px auto 24px;
}

.answer-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-top: 25px;
}

.answer-card {
  background: #f1f8ff;
  border: 5px solid transparent;
  border-radius: 30px;
  padding: 22px;
  cursor: pointer;
  transition: .25s;
}

.answer-card:hover {
  transform: scale(1.05);
  border-color: #29b6f6;
}

.answer-letter {
  width: 55px;
  height: 55px;
  line-height: 55px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ffca28;
  color: #4e342e;
  font-size: 30px;
  font-weight: bold;
}

.answer-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 10px auto;
  display: block;
}

.answer-emoji {
  font-size: 90px;
}

.solid-circle-icon {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border: 5px solid #111;
  border-radius: 50%;
  background: #ff3d1f;
  box-shadow: inset -10px -12px 0 rgba(0, 0, 0, .12), 0 8px 14px rgba(17, 17, 17, .14);
}

.solid-circle-scene {
  width: 104px;
  height: 104px;
}

.inline-shape-icon {
  display: inline-block;
  width: 82px;
  height: 82px;
  margin: 0 4px;
  vertical-align: middle;
}

.tiny-cat-icon {
  position: relative;
  display: block;
  width: 78px;
  height: 70px;
  margin: 12px auto 6px;
}

.tiny-cat-icon .cat-body {
  position: absolute;
  left: 24px;
  bottom: 8px;
  width: 34px;
  height: 28px;
  border: 4px solid #111;
  border-radius: 18px 18px 14px 14px;
  background: #bdbdbd;
}

.tiny-cat-icon .cat-head {
  position: absolute;
  left: 12px;
  top: 7px;
  width: 38px;
  height: 34px;
  border: 4px solid #111;
  border-radius: 46% 46% 50% 50%;
  background: #d9d9d9;
  z-index: 2;
}

.tiny-cat-icon .cat-head::before,
.tiny-cat-icon .cat-head::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid #111;
}

.tiny-cat-icon .cat-head::before {
  left: -2px;
  transform: rotate(-18deg);
}

.tiny-cat-icon .cat-head::after {
  right: -2px;
  transform: rotate(18deg);
}

.tiny-cat-icon .cat-head i,
.tiny-cat-icon .cat-head b {
  position: absolute;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
}

.tiny-cat-icon .cat-head i {
  left: 9px;
}

.tiny-cat-icon .cat-head b {
  right: 9px;
}

.tiny-cat-icon .cat-tail {
  position: absolute;
  right: 6px;
  bottom: 16px;
  width: 28px;
  height: 22px;
  border: 5px solid #111;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 22px 0 0;
  transform: rotate(16deg);
}

.bedtime-riddle-scene {
  position: relative;
  display: inline-block;
  width: 160px;
  height: 110px;
  vertical-align: middle;
}

.bedtime-question {
  position: absolute;
  left: 8px;
  top: 14px;
  width: 64px;
  height: 72px;
  display: grid;
  place-items: center;
  color: #17202a;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    -4px -4px 0 #fff,
    4px -4px 0 #fff,
    -4px 4px 0 #fff,
    4px 4px 0 #fff,
    0 6px 0 rgba(23, 32, 42, .16);
}

.bedtime-moon {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 66px;
  height: 66px;
  border: 5px solid #17202a;
  border-radius: 50%;
  background: #ffdf5d;
  box-shadow: 0 8px 14px rgba(23, 32, 42, .14);
}

.bedtime-moon::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -6px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
}

.bedtime-star {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #ffca28;
  clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%);
}

.bedtime-star-one {
  right: 4px;
  top: 8px;
}

.bedtime-star-two {
  right: 76px;
  bottom: 12px;
  transform: scale(.75);
}

.animal-answer-svg {
  width: 104px;
  height: 104px;
  display: block;
  margin: 0 auto;
}

.answer-text {
  margin-top: 8px;
  color: #1f2937;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.answer-card p {
  font-size: 26px;
  font-weight: bold;
  margin-top: 10px;
}

.feedback-box {
  display: none;
  margin-top: 30px;
  padding: 25px;
  border-radius: 30px;
  font-size: 23px;
  line-height: 1.5;
}

.feedback-correct {
  background: #d9fdd3;
  border: 4px solid #66bb6a;
}

.feedback-wrong {
  background: #fff3cd;
  border: 4px solid #ffb300;
}

.feedback-emoji {
  font-size: 80px;
  margin-bottom: 10px;
}

.next-question-btn {
  display: none;
  border: none;
  border-radius: 35px;
  padding: 16px 38px;
  font-size: 25px;
  font-weight: bold;
  background: #7e57c2;
  color: white;
  cursor: pointer;
}

.start-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 248, 220, .95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 20px;
}

.start-card {
  background: white;
  border-radius: 35px;
  padding: 40px;
  text-align: center;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.start-emoji {
  font-size: 75px;
}

.start-card h2 {
  font-size: 38px;
  color: #5a36d6;
}

.start-card p {
  font-size: 22px;
  margin: 18px 0;
}

.start-card button {
  border: none;
  border-radius: 35px;
  padding: 16px 35px;
  font-size: 24px;
  font-weight: bold;
  background: #ff7043;
  color: white;
  cursor: pointer;
}

@media(max-width: 700px) {
  .quiz-question {
    font-size: 27px;
  }

  .answer-image {
    width: 120px;
    height: 120px;
  }

  .answer-card p {
    font-size: 22px;
  }
  
}

/* TACAN ODGOVOR */

.feedback-correct{
    background:#d9fdd3;
    border:4px solid #4caf50;
}

.feedback-correct .feedback-emoji{
    animation:successJump 0.6s infinite alternate;
}

/* POGRESAN ODGOVOR */

.feedback-wrong{
    background:#fff3cd;
    border:4px solid #ff9800;
}

.feedback-wrong .feedback-emoji{
    animation:shake 0.6s;
}

/* ANIMACIJE */

@keyframes successJump{
    from{
        transform:translateY(0);
    }

    to{
        transform:translateY(-12px);
    }
}

@keyframes shake{

    0%{
        transform:translateX(0);
    }

    20%{
        transform:translateX(-8px);
    }

    40%{
        transform:translateX(8px);
    }

    60%{
        transform:translateX(-8px);
    }

    80%{
        transform:translateX(8px);
    }

    100%{
        transform:translateX(0);
    }
}
.quiz-actions{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:25px;
}

.retry-question-btn,
.next-question-btn {

    min-width: 280px;
    height: 55px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;

    background: white;

    border: 2px dashed #9c7b6b;
    border-radius: 10px;

    font-size: 22px;
    font-weight: 700;

    color: #333;

    cursor: pointer;
}

.retry-question-btn:hover{
    background:#fff8e1;
    transform:translateY(-2px);
}

.next-question-btn:hover{
    background:#e8f5e9;
    transform:translateY(-2px);
}

.answer-card {
    transition: 0.45s ease;
}
/* LEPSI BLOK ZA OBJASNJENJE */

.feedback-box {
    max-width: 1100px;
    margin: 35px auto 25px auto;
    padding: 38px 45px;

    background: linear-gradient(180deg, #fff8d9, #fff1b8);

    border: 5px solid #ff9800;
    border-radius: 32px;

    box-shadow:
        0 12px 28px rgba(255, 152, 0, 0.18),
        inset 0 0 18px rgba(255, 255, 255, 0.7);

    text-align: center;
}

.feedback-emoji {
    font-size: 74px;
    margin-bottom: 20px;
    display: block;
}

.feedback-box p,
#feedbackText {
    font-size: 32px;
    line-height: 1.55;
    font-weight: 600;
    color: #2f2f2f;

    font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
}

/* DUGMAD ISPOD OBJASNJENJA */

.quiz-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.retry-question-btn,
.next-question-btn {
    display: none;

    min-width: 330px;
    height: 86px;

    justify-content: center;
    align-items: center;
    gap: 14px;

    background: #ffffff;

    border-radius: 26px;

    font-size: 30px;
    font-weight: 900;

    font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;

    cursor: pointer;

    transition: all 0.22s ease;

    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.10),
        inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

/* POKUSAJ PONOVO - PLAVO */

.retry-question-btn {
    color: #1565c0;
    border: 4px solid #1e88e5;
}

.retry-question-btn:hover {
    background: #e3f2fd;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 30px rgba(30, 136, 229, 0.22);
}

/* SLEDECE PITANJE - ZELENO */

.next-question-btn {
    color: #2e7d32;
    border: 4px solid #43a047;
}

.next-question-btn:hover {
    background: #e8f5e9;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 30px rgba(67, 160, 71, 0.22);
}

.retry-question-btn:active,
.next-question-btn:active {
    transform: scale(0.97);
}

/* MOBILNI */

@media (max-width: 700px) {
    .feedback-box {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .feedback-box p,
    #feedbackText {
        font-size: 23px;
    }

    .feedback-emoji {
        font-size: 58px;
    }

    .retry-question-btn,
    .next-question-btn {
        min-width: 260px;
        height: 72px;
        font-size: 23px;
    }
}
.question-number {

    font-size: 120px;

    font-weight: 900;

    text-align: center;

    color: #ff7a00;

    line-height: 1;

    font-family:
        "Comic Sans MS",
        "Trebuchet MS",
        sans-serif;

    text-shadow:
        0 0 10px rgba(255,122,0,.4),
        4px 4px 0 #fff,
        8px 8px 0 rgba(0,0,0,.15);

    animation: pulseQuestion 1.8s infinite;
}

.question-label {

    text-align: center;

    font-size: 22px;

    font-weight: 800;

    letter-spacing: 4px;

    color: #666;
}

@keyframes popQuestion {

    0%{
        transform:scale(0);
        opacity:0;
    }

    60%{
        transform:scale(1.15);
        opacity:1;
    }

    100%{
        transform:scale(1);
        opacity:1;
    }
}

.question-counter-box {

    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;

    margin-top:10px;
    margin-bottom:10px;

    animation:popQuestion .8s ease;
}

.question-number {

    font-size:95px;
    font-weight:900;

    color:#ff7a00;

    line-height:1;

    text-shadow:
        0 0 12px rgba(255,122,0,.25),
        4px 4px 0 #fff,
        8px 8px 0 rgba(0,0,0,.12);
}

.question-title {

    font-size:48px;
    font-weight:900;

    letter-spacing:3px;

    color:#333;

    text-shadow:
        3px 3px 0 #fff,
        6px 6px 0 rgba(0,0,0,.08);
}

#category {

    text-align:center;

    font-size:28px;
    font-weight:800;

    color:#1976d2;

    margin-bottom:25px;

    letter-spacing:2px;
}

#category::before {

    content:"──── ";
    color:#90caf9;
}

#category::after {

    content:" ────";
    color:#90caf9;
}

@keyframes pulseQuestion {

    0% {
        transform:scale(1);
    }

    50% {
        transform:scale(1.08);
    }

    100% {
        transform:scale(1);
    }
}

#counter{
    width:100%;
    text-align:center;
    margin-bottom:5px;
}

#category{
    width:100%;
    text-align:center;
    margin-bottom:25px;
}

.question-navigator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    margin: 0 auto 28px auto;
    padding: 14px;

    background: #fff8e1;
    border: 3px dashed #ffb300;
    border-radius: 24px;
}

.question-nav-btn {
    width: 48px;
    height: 48px;

    border: 2px solid #90caf9;
    border-radius: 14px;

    background: #ffffff;
    color: #1565c0;

    font-size: 21px;
    font-weight: 900;

    cursor: pointer;

    transition: 0.2s ease;

    font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
}

.question-nav-btn:hover {
    background: #e3f2fd;
    color: #0d47a1;

    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 6px;

    transform: translateY(-3px) scale(1.08);
}

.question-nav-btn.active {
    background: #ff9800;
    color: white;

    border-color: #f57c00;

    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.35);

    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 6px;
}
.drag-list{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:nowrap;
    margin:40px auto;
}

.drag-item {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff4c2;
    border: 3px solid #f0a500;
    border-radius: 20px;

    font-size: 36px;
    font-weight: bold;

    cursor: grab;
    user-select: none;

    transition: 0.2s;
}

.drag-item:hover {
    transform: scale(1.08);
}

.drag-item:active {
    cursor: grabbing;
}

#checkDragBtn {
    display:block;
    margin:30px auto;

    width:260px;
    height:70px;

    background:#4CAF50;
    color:white;

    border:none;
    border-radius:20px;

    font-size:26px;
    font-weight:bold;

    cursor:pointer;
}

#checkDragBtn:hover {
    transform: scale(1.05);
}

.drag-list{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;

    width:100%;
    margin:40px auto;
}

.quiz-actions{
    width:100%;
    text-align:center;
    margin-top:30px;
}

#checkDragBtn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:320px;
    height:80px;

    margin:0 auto;

    background:#4CAF50;
    color:white;

    border:none;
    border-radius:20px;

    font-size:30px;
    font-weight:bold;

    cursor:pointer;
}

.drag-list{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;

    width:100%;
    margin:40px auto;
}

.quiz-actions{
    width:100%;
    text-align:center;
    margin-top:30px;
}

#checkDragBtn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:320px;
    height:80px;

    margin:0 auto;

    background:#4CAF50;
    color:white;

    border:none;
    border-radius:20px;

    font-size:30px;
    font-weight:bold;

    cursor:pointer;
}

#questionText{
    text-align:center;
}

.drag-question-box{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.drag-question-box .drag-list{
    list-style:none;
    padding:0;
    margin:35px auto 0;

    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;

    max-width:600px;
}

.drag-question-box .drag-item{
    width:70px;
    height:70px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#fff4c2;
    border:3px solid #f0a500;
    border-radius:18px;

    font-size:34px;
    font-weight:bold;

    cursor:grab;
    user-select:none;
    touch-action:none;
}

.drag-question-box .drag-item.tooth-step-card {
    width: 112px;
    height: 98px;
    padding: 8px;
    font-size: 18px;
}

.tooth-step {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tooth-step-label {
    color: #2f3b4a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.paste-icon,
.tooth-brush-icon,
.rinse-icon,
.smile-icon {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 44px;
}

.paste-icon {
    width: 50px;
    height: 30px;
    border: 4px solid #0d47a1;
    border-radius: 8px 16px 16px 8px;
    background: linear-gradient(90deg, #1565c0 0 68%, #bbdefb 68% 100%);
    transform: rotate(-9deg);
}

.paste-icon .paste-cap {
    position: absolute;
    left: -10px;
    top: 5px;
    width: 9px;
    height: 14px;
    border-radius: 3px;
    background: #0d47a1;
}

.paste-icon .paste-label-dot {
    position: absolute;
    left: 16px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: white;
}

.tooth-brush-icon .brush-stick {
    position: absolute;
    left: 4px;
    top: 24px;
    width: 36px;
    height: 7px;
    border-radius: 999px;
    background: #1976d2;
    transform: rotate(-20deg);
}

.tooth-brush-icon .brush-head-small {
    position: absolute;
    left: 29px;
    top: 13px;
    width: 15px;
    height: 12px;
    border-radius: 4px;
    background: #0d47a1;
    transform: rotate(-20deg);
}

.tooth-brush-icon .brush-bristles {
    position: absolute;
    left: 28px;
    top: 7px;
    width: 18px;
    height: 9px;
    border-radius: 8px 8px 3px 3px;
    background: repeating-linear-gradient(90deg, #81d4fa 0 3px, #e1f5fe 3px 6px);
    transform: rotate(-20deg);
}

.rinse-icon {
    width: 38px;
    height: 42px;
    border: 4px solid #1976d2;
    border-radius: 6px 6px 14px 14px;
    background: #e3f2fd;
}

.rinse-icon .rinse-water {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 6px;
    height: 18px;
    border-radius: 4px 4px 10px 10px;
    background: #29b6f6;
}

.smile-icon {
    width: 44px;
    height: 44px;
    border: 4px solid #f9a825;
    border-radius: 50%;
    background: #ffe082;
}

.smile-icon .smile-eye {
    position: absolute;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #263238;
}

.smile-icon .smile-eye-left {
    left: 11px;
}

.smile-icon .smile-eye-right {
    right: 11px;
}

.smile-icon .smile-mouth {
    position: absolute;
    left: 11px;
    top: 23px;
    width: 18px;
    height: 10px;
    border-bottom: 4px solid #263238;
    border-radius: 0 0 20px 20px;
}

.drag-question-box .selected-drag-item {
    border-color: #29b6f6;
    box-shadow: 0 0 0 5px rgba(41, 182, 246, 0.22);
    transform: scale(1.08);
}

.drag-question-box .quiz-actions{
    width:100%;
    text-align:center;
    margin-top:35px;
}

.drag-question-box #checkDragBtn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:18px 35px;

    background:#4CAF50;
    color:white;

    border:none;
    border-radius:18px;

    font-size:28px;
    font-weight:bold;

    cursor:pointer;
}

.quiz-scene{
    font-size:90px;
    margin:20px 0;
    animation: float 2s infinite ease-in-out;

    display:block;
    width:100%;
    text-align:center;
    clear:both;
}

.front-house-scene {
    --scene-unit: clamp(96px, 14vw, 142px);
    position: relative;
    display: inline-block;
    width: calc(var(--scene-unit) * 1.38);
    height: calc(var(--scene-unit) * 1.12);
    line-height: 1;
    vertical-align: middle;
}

.front-house-dog,
.front-house-home,
.front-house-arrow {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

.front-house-dog {
    position: absolute;
    left: 2%;
    bottom: 0;
    width: calc(var(--scene-unit) * .98);
    height: calc(var(--scene-unit) * 1.02);
    z-index: 4;
}

.dog-face {
    position: absolute;
    left: 20%;
    top: 2%;
    width: 60%;
    height: 78%;
    border: calc(var(--scene-unit) * .055) solid #050505;
    border-radius: 46% 46% 42% 42%;
    background: #fffdf4;
    overflow: hidden;
    z-index: 2;
}

.dog-patch {
    position: absolute;
    right: -5%;
    top: -7%;
    width: 48%;
    height: 54%;
    border-radius: 0 0 0 45%;
    background: #a66b3b;
}

.dog-ear {
    position: absolute;
    top: 13%;
    width: 32%;
    height: 72%;
    border: calc(var(--scene-unit) * .055) solid #050505;
    background: #8a522b;
    z-index: 1;
}

.dog-ear-left {
    left: 4%;
    border-radius: 58% 30% 48% 62%;
    transform: rotate(9deg);
}

.dog-ear-right {
    right: 4%;
    border-radius: 30% 58% 62% 48%;
    transform: rotate(-9deg);
}

.dog-eye {
    position: absolute;
    top: 25%;
    width: 10%;
    height: 18%;
    border-radius: 999px;
    background: #050505;
    z-index: 3;
}

.dog-eye-left {
    left: 22%;
}

.dog-eye-right {
    right: 22%;
}

.dog-nose {
    position: absolute;
    left: 38%;
    top: 58%;
    width: 24%;
    height: 14%;
    background: #050505;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 3;
}

.dog-mouth {
    position: absolute;
    left: 29%;
    top: 64%;
    width: 42%;
    height: 22%;
    border-bottom: calc(var(--scene-unit) * .035) solid #050505;
    border-radius: 0 0 999px 999px;
    z-index: 3;
}

.dog-tongue {
    position: absolute;
    left: 39%;
    bottom: 0;
    width: 22%;
    height: 26%;
    border: calc(var(--scene-unit) * .045) solid #050505;
    border-top: 0;
    border-radius: 0 0 999px 999px;
    background: #e91f2f;
    z-index: 1;
}

.front-house-arrow {
    align-self: center;
    width: calc(var(--scene-unit) * .82);
    height: calc(var(--scene-unit) * .82);
    border: calc(var(--scene-unit) * .055) solid #050505;
    background: #1689d8;
    box-shadow: inset 0 0 0 calc(var(--scene-unit) * .025) rgba(255,255,255,.08);
}

.front-house-arrow::before {
    content: "";
    position: absolute;
    left: 22%;
    top: 47%;
    width: 44%;
    height: 7%;
    background: #ffffff;
}

.front-house-arrow::after {
    content: "";
    position: absolute;
    right: 18%;
    top: 36%;
    width: 0;
    height: 0;
    border-top: calc(var(--scene-unit) * .105) solid transparent;
    border-bottom: calc(var(--scene-unit) * .105) solid transparent;
    border-left: calc(var(--scene-unit) * .13) solid #ffffff;
}

.front-house-home {
    position: absolute;
    right: 0;
    bottom: 1%;
    width: calc(var(--scene-unit) * .95);
    height: calc(var(--scene-unit) * 1);
    z-index: 1;
}

.home-roof {
    position: absolute;
    left: 7%;
    top: 3%;
    width: 72%;
    height: 72%;
    border-left: calc(var(--scene-unit) * .055) solid #050505;
    border-top: calc(var(--scene-unit) * .055) solid #050505;
    background: #ff4f2e;
    transform: rotate(45deg);
    z-index: 1;
}

.home-wall {
    position: absolute;
    left: 13%;
    right: 13%;
    bottom: 6%;
    height: 54%;
    border: calc(var(--scene-unit) * .055) solid #050505;
    border-top: 0;
    background: #f8ffff;
    z-index: 2;
}

.home-window {
    position: absolute;
    top: 22%;
    width: 20%;
    height: 20%;
    background: #39c3df;
}

.home-window-left {
    left: 17%;
}

.home-window-right {
    right: 17%;
}

.home-door {
    position: absolute;
    left: 42%;
    bottom: 0;
    width: 18%;
    height: 40%;
    background: #ff4f2e;
}

.home-grass {
    position: absolute;
    bottom: 0;
    width: 34%;
    height: 12%;
    border: calc(var(--scene-unit) * .04) solid #050505;
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    background: #22ca3a;
    z-index: 3;
}

.home-grass-left {
    left: 0;
}

.home-grass-right {
    right: 0;
}

.car-child-scene {
    --scene-unit: clamp(96px, 14vw, 144px);
    position: relative;
    display: inline-block;
    width: calc(var(--scene-unit) * 1.92);
    height: calc(var(--scene-unit) * 1.18);
    line-height: 1;
    overflow: visible;
    vertical-align: middle;
}

.scene-car,
.scene-child {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

.scene-car {
    position: absolute;
    left: 0;
    bottom: 4%;
    width: calc(var(--scene-unit) * 1.06);
    height: calc(var(--scene-unit) * .68);
    z-index: 4;
}

.car-body {
    position: absolute;
    left: 3%;
    right: 3%;
    bottom: 18%;
    height: 42%;
    border: calc(var(--scene-unit) * .05) solid #050505;
    border-radius: calc(var(--scene-unit) * .1) calc(var(--scene-unit) * .16) calc(var(--scene-unit) * .08) calc(var(--scene-unit) * .08);
    background: #ff422d;
    z-index: 2;
}

.car-roof {
    position: absolute;
    left: 28%;
    top: 8%;
    width: 42%;
    height: 40%;
    border: calc(var(--scene-unit) * .05) solid #050505;
    border-bottom: 0;
    background: #ff5637;
    clip-path: polygon(17% 0, 82% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.car-window {
    position: absolute;
    top: 22%;
    width: 18%;
    height: 22%;
    border: calc(var(--scene-unit) * .024) solid #050505;
    background: #38c4df;
    z-index: 3;
}

.car-window-left {
    left: 35%;
}

.car-window-right {
    left: 55%;
}

.car-wheel {
    position: absolute;
    bottom: 3%;
    width: 22%;
    height: 30%;
    border: calc(var(--scene-unit) * .05) solid #050505;
    border-radius: 50%;
    background: #2f3540;
    z-index: 4;
}

.car-wheel::after {
    content: "";
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    background: #b9c1cc;
}

.car-wheel-left {
    left: 15%;
}

.car-wheel-right {
    right: 10%;
}

.scene-child {
    position: absolute;
    right: 0;
    bottom: 2%;
    width: calc(var(--scene-unit) * .82);
    height: calc(var(--scene-unit) * .92);
    z-index: 1;
}

.child-face {
    position: absolute;
    left: 9%;
    right: 9%;
    bottom: 0;
    height: 74%;
    border: calc(var(--scene-unit) * .05) solid #050505;
    border-radius: 45% 45% 48% 48%;
    background: #ffc735;
    z-index: 2;
}

.child-hair {
    position: absolute;
    left: 3%;
    top: 1%;
    width: 88%;
    height: 50%;
    border: calc(var(--scene-unit) * .045) solid #050505;
    border-radius: 48% 35% 0 40%;
    background: #8d552c;
    clip-path: polygon(0 42%, 16% 15%, 55% 0, 100% 0, 87% 14%, 100% 14%, 86% 26%, 100% 26%, 74% 42%, 68% 100%, 0 100%);
    z-index: 3;
}

.child-eye {
    position: absolute;
    top: 42%;
    width: 9%;
    height: 15%;
    border-radius: 999px;
    background: #050505;
}

.child-eye-left {
    left: 27%;
}

.child-eye-right {
    right: 27%;
}

.child-nose {
    position: absolute;
    left: 47%;
    top: 54%;
    width: 12%;
    height: 10%;
    border-radius: 0 0 999px 999px;
    background: #ff9d3d;
}

.child-smile {
    position: absolute;
    left: 35%;
    top: 66%;
    width: 30%;
    height: 15%;
    border-bottom: calc(var(--scene-unit) * .035) solid #ff7f45;
    border-radius: 0 0 999px 999px;
}

.fb-scene {
    --fb-size: clamp(92px, 13vw, 132px);
    position: relative;
    display: inline-block;
    width: calc(var(--fb-size) * 1.32);
    height: calc(var(--fb-size) * 1.02);
    line-height: 1;
    vertical-align: middle;
}

.fb-scene.fb-wide {
    width: calc(var(--fb-size) * 1.48);
}

.fb-scene.fb-small {
    --fb-size: 112px;
}

.fb-scene.fb-card-scene {
    --fb-size: 72px;
}

.fb-icon {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--fb-size) * .82);
    height: calc(var(--fb-size) * .82);
    font-size: calc(var(--fb-size) * .68);
    filter: drop-shadow(0 4px 0 rgba(0,0,0,.18));
}

.fb-back {
    right: 2%;
    bottom: 13%;
    z-index: 1;
    transform: scale(.9);
    opacity: .78;
}

.fb-front {
    left: 2%;
    bottom: 0;
    z-index: 3;
}

.fb-scene.fb-wide .fb-back {
    right: 0;
}

.fb-scene.fb-wide .fb-front {
    left: 0;
}

.fb-scene.person-horse-scene {
    width: calc(var(--fb-size) * 1.08);
}

.person-horse-scene .fb-back {
    left: 34%;
    right: auto;
    bottom: 8%;
    transform: scale(.95);
    opacity: .72;
}

.person-horse-scene .fb-front {
    left: 0;
    bottom: -2%;
    transform: scale(1.05);
}

.answer-layered-scene {
    transform: scale(.78);
    transform-origin: center;
    margin: -12px auto;
}

.car-child-behind-answer {
    --scene-unit: 122px;
    width: calc(var(--scene-unit) * 1.72);
    height: calc(var(--scene-unit) * 1.02);
    margin: -4px auto -8px;
}

.car-child-behind-answer .scene-child {
    right: 2%;
    bottom: 4%;
    z-index: 1;
    transform: scale(.9);
}

.car-child-behind-answer .scene-car {
    left: 4%;
    bottom: 5%;
    z-index: 4;
}

.between-cars-answer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
    font-size: 58px;
}

.between-cars-answer span {
    display: inline-flex;
    flex: 0 0 auto;
}

.fb-single-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2em;
    font-size: 1.18em;
    line-height: 1;
}

.food-card .fb-card-scene {
    display: block;
}

.ud-scene {
    --ud-size: clamp(98px, 13vw, 140px);
    position: relative;
    display: inline-block;
    width: calc(var(--ud-size) * 1.18);
    height: calc(var(--ud-size) * 1.42);
    line-height: 1;
    vertical-align: middle;
    overflow: visible;
}

.ud-scene::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 47%;
    width: 78%;
    height: 4px;
    border-radius: 999px;
    background: rgba(25, 118, 210, .16);
    transform: translateX(-50%);
    z-index: 0;
}

.ud-icon {
    position: absolute;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--ud-size) * .82);
    height: calc(var(--ud-size) * .82);
    font-size: calc(var(--ud-size) * .66);
    filter: drop-shadow(0 4px 0 rgba(0,0,0,.16));
    transform: translateX(-50%);
}

.ud-above {
    top: 0;
    z-index: 2;
}

.ud-below {
    bottom: 0;
    z-index: 1;
}

.ud-scene.ud-small {
    --ud-size: 108px;
}

.ud-side-scene {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .12em;
    min-height: 1.2em;
    font-size: .95em;
    line-height: 1;
}

.ud-label-scene {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 260px;
    padding: 4px 0;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
}

.ud-label-top,
.ud-label-bottom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 8px 18px;
    border: 4px solid #90caf9;
    border-radius: 18px;
    background: #f1f8ff;
    color: #1565c0;
}

.ud-label-bottom {
    border-color: #a5d6a7;
    background: #f1f8e9;
    color: #2e7d32;
}

.ud-card-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 68px;
    line-height: 1;
}

.ud-card-item span {
    font-size: 36px;
}

.ud-card-item small {
    color: #2f3b4a;
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 700px) {
    .front-house-scene {
        --scene-unit: clamp(76px, 30vw, 104px);
    }

    .car-child-scene {
        --scene-unit: clamp(78px, 28vw, 104px);
    }

    .fb-scene {
        --fb-size: clamp(76px, 28vw, 104px);
    }

    .fb-scene.fb-small {
        --fb-size: 92px;
    }

    .ud-scene {
        --ud-size: clamp(80px, 27vw, 108px);
    }

    .ud-scene.ud-small {
        --ud-size: 92px;
    }

    .ud-label-scene {
        min-width: 210px;
        font-size: 22px;
    }
}
.quiz-question{
    text-align:center;
}

.category-drag-box{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.food-items{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
    margin:25px 0;
}

.food-card{
    min-width:75px;
    width:auto;
    max-width:220px;
    height:75px;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:center;

    background:#fff4c2;
    border:3px solid #f0a500;
    border-radius:20px;

    font-size:34px;
    font-weight:800;
    line-height:1.12;
    text-align:center;
    cursor:grab;
    user-select:none;
    touch-action:none;
}

.drop-zones{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:25px;
    width:100%;
    max-width:900px;
    margin-top:25px;
}

.drop-zone{
    min-height:180px;
    padding:20px;
    border:4px dashed #90caf9;
    border-radius:25px;
    background:#f1f8ff;
    text-align:center;
}

.drop-zone h3{
    margin-top:0;
    font-size:26px;
    color:#1976d2;
}

.drop-zone .food-card{
    display:inline-flex;
    margin:8px;
}

#checkCategoryBtn{
    margin-top:35px;
    padding:18px 35px;
    background:#4CAF50;
    color:white;
    border:none;
    border-radius:18px;
    font-size:28px;
    font-weight:bold;
    cursor:pointer;
}
.drop-zone-title{
    text-align:center;
    font-size:28px;
    font-weight:bold;
    margin-bottom:12px;
}

.healthy-title{
    color:#2e9d32;
}

.unhealthy-title{
    color:#e53935;
}

.drop-zone-wrapper{
    width:100%;
}

.quiz-question {
    display: block;
    width: 100%;
    text-align: center;
    margin: 35px auto 25px;
}

.answer-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 20px;
    margin: 25px auto 0;
}
#answers.drag-mode {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#answers.drag-mode .drag-list {
    display: flex !important;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    width: 100%;
}

#answers.drag-mode .quiz-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.chess-task {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.chess-board {
    width: min(82vw, 520px);
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    border: 8px solid #2f2417;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(20, 16, 10, .22);
    background: #2f2417;
}

.chess-piece-tray {
    min-width: 94px;
    min-height: 88px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #f0a000;
    border-radius: 16px;
    background: #fff7db;
    box-shadow: 0 8px 18px rgba(20, 16, 10, .16);
}

.chess-piece-tray .chess-piece {
    width: 72px;
    height: 72px;
    font-size: 62px;
}

.chess-piece.selected-tray {
    outline: 5px solid #1e88e5;
    outline-offset: 2px;
    border-radius: 12px;
}

.chess-square {
    position: relative;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    cursor: pointer;
}

.chess-square.light {
    background: #f4d9a6;
}

.chess-square.dark {
    background: #8f5a2a;
}

.chess-square.selected,
.chess-square.drag-over {
    outline: 5px solid #1e88e5;
    outline-offset: -5px;
    z-index: 2;
}

.chess-square.move-option {
    box-shadow: inset 0 0 0 4px rgba(76, 175, 80, .62);
}

.chess-move-dot {
    position: absolute;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(76, 175, 80, .72);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
    pointer-events: none;
}

.chess-piece {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78%;
    height: 78%;
    font-size: clamp(34px, 8vw, 62px);
    line-height: 1;
    cursor: grab;
    user-select: none;
    touch-action: none;
    filter: drop-shadow(0 4px 0 rgba(0,0,0,.2));
}

.chess-piece:active {
    cursor: grabbing;
}

.chess-piece.fixed {
    cursor: default;
    opacity: .88;
}

.chess-answer-figure,
.chess-answer-arrow,
.chess-answer-stop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    vertical-align: middle;
}

.chess-answer-figure {
    min-width: 42px;
    font-size: 48px;
    line-height: 1;
    color: #f8f8f8;
    text-shadow: 0 3px 0 #111, 2px 0 0 #111, -2px 0 0 #111, 0 -2px 0 #111;
}

.chess-answer-figure.black {
    color: #222;
    text-shadow: 0 2px 0 rgba(255,255,255,.7);
}

.chess-answer-arrow,
.chess-answer-stop {
    min-width: 34px;
    font-size: 36px;
    font-weight: 900;
    color: #228b22;
}

.chess-answer-stop {
    color: #d32f2f;
}

.chess-coord {
    position: absolute;
    font-size: clamp(9px, 1.9vw, 14px);
    font-weight: 900;
    line-height: 1;
    opacity: .78;
    pointer-events: none;
}

.chess-square.light .chess-coord {
    color: #5d3516;
}

.chess-square.dark .chess-coord {
    color: #ffe7b4;
}

.chess-coord.file {
    right: 5px;
    bottom: 4px;
}

.chess-coord.rank {
    left: 5px;
    top: 4px;
}

#checkChessBtn {
    padding: 18px 35px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 700px) {
    .chess-board {
        width: min(92vw, 430px);
        border-width: 6px;
    }
}
