/* =========================
   GLOBAL
========================= */
html,
body {
  font-family: sans-serif;
  height: 100%;
  margin: 0;
}

/* =========================
   BACKGROUND + OVERLAY
========================= */
.background {
  background-image: url("../assets/img/background.png?v=1.0.0");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.background::before {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.25);
  content: "";
  inset: 0;
  position: fixed;
  z-index: 0;
}

/* =========================
   LAYOUT
========================= */
.page-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 1;
}

.page-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
  padding: 20px;
}

/* =========================
   HEADER
========================= */
.header {
  backdrop-filter: blur(14px);
  background: linear-gradient(135deg,
      rgba(106, 17, 203, 0.85),
      rgba(37, 117, 252, 0.85));
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.title {
  animation: fadeInDown 0.6s ease;
  background: linear-gradient(135deg, #ffffff, #ffe6f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffffff;
  font-family: Easterboost, sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  margin: 0;
  text-align: center;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   STATS
========================= */
.state-question-container {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  font-weight: bold;
  justify-content: space-evenly;
  max-width: 420px;
  padding: 12px 6px;
  width: 100%;
}

.total-count {
  color: #ffb347;
}

.solved-count {
  color: #4caf50;
}

.skipped-count {
  color: #03a9f4;
}

/* =========================
   QUESTION
========================= */
.content-quest-container {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.quest-container {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  color: #2b2b2b;
  font-weight: 700;
  min-width: 260px;
  padding: 20px;
  text-align: center;
}

/* =========================
   REPONSE
========================= */
.resp-container {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  color: #ff7a00;
  display: none;
  font-weight: 900;
  margin-top: 10px;
  padding: 12px;
  text-align: center;
  width: 100%;
}

/* =========================
   BUTTONS
========================= */
.btn {
  border: none;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 17px;
  font-weight: bold;
  margin: 8px 0;
  max-width: 260px;
  overflow: hidden;
  padding: 12px 20px;
  position: relative;
  transition: all 0.25s ease;
  width: 100%;
}

.btn:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px) scale(1.05);
}

.btn::after {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.4), transparent);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.92);
}

.found-btn {
  background: linear-gradient(135deg, #7CFF8A, #00d4a3);
  color: #063d2b;
}

.skip-btn {
  background: linear-gradient(135deg, #5fd0ff, #3a7bff);
  color: white;
}

.reveal-btn {
  background: linear-gradient(135deg, #e6a8ff, #ffd6a5);
  color: #5a189a;
  display: none;
}

.btn.prev-btn,
.btn.reset-btn {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  color: #000;
  flex: 1;
  font-size: 13px;
  max-width: 180px;
  padding: 10px;
}

/* =========================
   BOTTOM
========================= */
.bottom-container {
  bottom: 15px;
  box-sizing: border-box;
  display: flex;
  gap: 12px;
  justify-content: center;
  left: 0;
  padding: 0 15px;
  position: fixed;
  width: 100%;
}

/* =========================
   BASKET (wiggle 😄)
========================= */
.basket-eggs-pic {
  animation: wiggle 3s infinite ease-in-out;
  bottom: 13%;
  opacity: 0.9;
  position: absolute;
  width: 18vh;
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(3deg);
  }

  75% {
    transform: rotate(-3deg);
  }
}

/* =========================
   CONFETTI 🎉
========================= */
.confetti {
  animation: fall linear forwards;
  border-radius: 3px;
  height: 12px;
  position: fixed;
  top: -10px;
  width: 8px;
  z-index: 999;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

/* =========================
   FLOATING ELEMENTS 🌸
========================= */
.floating-elements {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.float-item {
  animation: floatUp 6s linear forwards;
  bottom: -20px;
  opacity: 0.8;
  position: absolute;
}

@keyframes floatUp {
  to {
    opacity: 0;
    transform: translateY(-110vh) rotate(360deg);
  }
}

/* =========================
   SUCCESS EFFECT 🎯
========================= */
.success {
  animation: successPop 0.5s ease;
}

@keyframes successPop {
  0% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* =========================
   LABEL
========================= */
.skipped-quest-label {
  display: none;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.8);

  margin-bottom: 6px;
}