/*
   GLOBAL RESET & BASE
*/

:root {
  --secretKey: "id:17";
}

/* id:22: Find element with attribute data-next='' check the info in that attribute */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}



body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f8fbff, #eef3ff);
  color: #1f2937;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/*
   TIMER (GLOBAL)
*/


:root25{
  --q25-step2: "Search HTML comments for id:25";
}

.timer {
  position: fixed;
  top: 16px;
  margin-right:25px;
  right: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: #2563eb;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
  z-index: 999;
}

/*
   HOME PAGE
*/

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  max-width: 900px;
  margin: auto;
}


.home h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 24px;
}

.home ul {
  list-style: none;
  margin-bottom: 32px;
}

.home li {
  padding: 10px 0;
  font-weight: 500;
}

.start-btn {
  align-self: flex-start;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  color: white;
  padding: 14px 36px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.4);
}

/*
   GAME LAYOUT
*/

.game-layout {
  min-height: 100vh;
  padding: 10px 48px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
  align-content: start;
}

/*
   QUESTION PANEL
*/

.question-panel {
  background: white;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.question-panel h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.question-panel button {
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: #f1f5f9;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.2s ease;
}

.question-panel button:hover {
  background: #e0e7ff;
}

.question-panel button.active {
  background: #2563eb;
  color: white;
}

.submit-btn {
  margin-top: 8px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  color: white;
  font-size: 1rem;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 15px 30px rgba(34, 197, 94, 0.3);
}

.submit-btn:hover {
  opacity: 0.95;
}

/*
   CLUE PANEL
*/

.clue {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
  font-size: 1.05rem;
  color: #334155;
  position: relative;
}

/* Blinking chaos */
.blinking span {
  animation: blink 0.6s infinite alternate;
  font-weight: 700;
}

@keyframes blink {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

/*
   DOCS / LOGS / PAGES
*/

.page {
  min-height: 100vh;
  padding: 100px 64px;
  max-width: 900px;
  margin: auto;
}


/* id:14*/
#clue::after {
  content: "Search HTML comments";
  display: none;
}

.page h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.page p {
  color: #475569;
  margin-bottom: 12px;
}

/* Logs */
.logs {
  font-family: "JetBrains Mono", monospace;
  background: #f8fafc;
  border-radius: 18px;
  padding: 24px;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

/* Playground */
.playground {
  letter-spacing: 6px;
  font-size: 1.1rem;
  user-select: none;
}

/*
   FAKE 404 PAGE
*/

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #64748b;
}

.not-found h1 {
  font-size: 5rem;
  font-weight: 900;
}

.not-found p {
  font-size: 1.1rem;
}

/* 
   SECRET / GHOST HINTS
*/

.ghost-hint {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 0.85rem;
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
}

/*
   RESULT PAGE
*/

.result {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/*id:27 */
#clueBox::after { content:"Find hidden div #step2"; }

.result h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #22c55e, #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result p {
  font-size: 1.2rem;
  color: #475569;
}

/*
   RESPONSIVE
*/

@media (max-width: 900px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .timer {
    right: 16px;
  }

  .home {
    padding: 32px;
  }
}


/*
   PROGRESS BAR
*/

.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  z-index: 998;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.4s ease;
}

/* id:30
#startHard10{ 
border: 1px solid;
} /* STEP2: Find #finalBoss(div with id finalBoss) search in Elements
*/

/* 
   QUESTION STATUS BAR
*/

.question-status-bar {
  position:static;
  top: 80px; /* below progress bar */
  left: 50px;
  width: 93.3%;
  height: 48px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  z-index: 997;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 15px;
  margin-left:50px;
  margin-top:80px;
} 



.question-status-bar b {
  color: #2563eb;
}

/* 
   QUESTION NUMBER STYLE
 */

.question-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}


/* =========================
   PREMIUM SCORE CARD
========================= */

.score-card {
  margin-top: 32px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  padding: 32px 36px;
  border-radius: 26px;
  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.12),
    inset 0 0 0 1px rgba(226, 232, 240, 0.9);
  width: min(520px, 92%);
  animation: popIn 0.6s ease;
}

.score-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------------------------
   SCORE ROWS
-------------------------- */

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
}

.score-row span:last-child {
  font-weight: 800;
}

/* 
   STATUS COLORS
*/

.score-row.correct {
  background: linear-gradient(90deg, #dcfce7, #bbf7d0);
  color: #166534;
}

/* #vaultHint::after {
   content: \"id:28 Find element with id=finalVault\ in elements tab"; 
} */

.score-row.incorrect {
  background: linear-gradient(90deg, #fee2e2, #fecaca);
  color: #7f1d1d;
}

.score-row.time {
  background: linear-gradient(90deg, #e0f2fe, #bae6fd);
  color: #075985;
}

/* id 11 : */
.final-key {
  /* final Answer */
}

/* -------------------------
   ENTRY ANIMATION
-------------------------- */

@keyframes popIn {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.restart-btn {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  color: white;
  padding: 14px 36px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.4);
}


/* ============================================================
   PREMIUM UI ENHANCEMENTS (ADDED WITHOUT TOUCHING OLD STYLES)
============================================================ */

/* Smooth scrolling + selection highlight */
html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(34, 197, 94, 0.35);
  color: #0f172a;
}

/* Body animated subtle gradient glow */
body::before {
  content: "";
  position: fixed;
  top: -200px;
  left: -200px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  animation: floatGlow 8s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: floatGlow2 10s ease-in-out infinite;
}

@keyframes floatGlow {
  0% { transform: translate(0px, 0px); }
  50% { transform: translate(80px, 60px); }
  100% { transform: translate(0px, 0px); }
}

@keyframes floatGlow2 {
  0% { transform: translate(0px, 0px); }
  50% { transform: translate(-70px, -50px); }
  100% { transform: translate(0px, 0px); }
}




/* ------------------------------------------------------------
   GLOBAL BUTTON PREMIUM EFFECTS
------------------------------------------------------------ */

button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button:active {
  transform: scale(0.97);
}

/* Add subtle ripple glow */
button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

button:hover::after {
  opacity: 1;
}

/* Ensure ripple works properly */
button {
  position: relative;
  overflow: hidden;
}

/* ------------------------------------------------------------
   HOME PAGE PREMIUM ANIMATION
------------------------------------------------------------ */

.home h1 {
  animation: fadeDown 0.8s ease;
}

.home p {
  animation: fadeUp 0.9s ease;
}

.home ul {
  animation: fadeUp 1.1s ease;
}

.start-btn {
  animation: fadeUp 1.3s ease;
}

/* ------------------------------------------------------------
   GAME PAGE CARD ENTRANCE
------------------------------------------------------------ */

.question-panel,
.clue {
  animation: cardFade 0.6s ease;
}

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

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

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

/* ------------------------------------------------------------
   PREMIUM CARD HOVER EFFECT
------------------------------------------------------------ */

.question-panel:hover,
.clue:hover,
.score-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ------------------------------------------------------------
   PREMIUM OPTIONS HOVER EFFECT
------------------------------------------------------------ */

.question-panel button:hover {
  transform: translateX(6px);
}

/* Active option glowing */
.question-panel button.active {
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
}

/* ------------------------------------------------------------
   SUBMIT BUTTON GLOW
------------------------------------------------------------ */

.submit-btn:hover {
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.35);
  transform: translateY(-2px);
}

/* Disabled submit button styling */
.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#header{
  text-align: center;
}

/* ------------------------------------------------------------
   TIMER PREMIUM EFFECT
------------------------------------------------------------ */

.timer {
  animation: timerPop 0.6s ease;
}

@keyframes timerPop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* ------------------------------------------------------------
   PROGRESS BAR SHINE EFFECT
------------------------------------------------------------ */

.progress-bar {
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-20deg);
  animation: shineMove 2.5s infinite;
}

@keyframes shineMove {
  0% { left: -40%; }
  100% { left: 110%; }
}

/* ------------------------------------------------------------
   QUESTION STATUS BAR ENHANCEMENT
------------------------------------------------------------ */

.question-status-bar {
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  animation: fadeDown 0.7s ease;
}

/* ------------------------------------------------------------
   SCORE CARD EXTRA PREMIUM TOUCH
------------------------------------------------------------ */

.score-row {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.score-row:hover {
  transform: translateX(5px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

/* ------------------------------------------------------------
   RESULT PAGE TEXT ANIMATION
------------------------------------------------------------ */

.result h1 {
  animation: fadeDown 0.7s ease;
}

.score-card {
  animation: fadeUp 0.9s ease;
}

/* ------------------------------------------------------------
   GHOST HINT SECRET MOVE EFFECT
------------------------------------------------------------ */

.ghost-hint {
  animation: ghostMove 4s ease-in-out infinite;
}

@keyframes ghostMove {
  0% { transform: translate(0px, 0px); }
  50% { transform: translate(-10px, -6px); }
  100% { transform: translate(0px, 0px); }
}

/* ------------------------------------------------------------
   PREMIUM SCROLLBAR
------------------------------------------------------------ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.8);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563eb, #38bdf8);
  border-radius: 10px;
}

/* ------------------------------------------------------------
   MOBILE RESPONSIVE POLISH
------------------------------------------------------------ */

@media (max-width: 600px) {
  .question-status-bar {
    flex-direction: column;
    height: auto;
    gap: 6px;
    padding: 10px 14px;
    left: 0;
    width: 100%;
    border-radius: 0;
  }

  .timer {
    top: 12px;
    right: 12px;
    font-size: 0.9rem;
  }

  .question-panel h2 {
    font-size: 1.35rem;
  }

  .home h1 {
    font-size: 2.6rem;
  }
}


/* =========================
   ICE BREAKER BUTTON
========================= */

.ice-btn {
  position: fixed;
  top: 16px;
  left: 24px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(90deg, #f97316, #fb7185);
  color: white;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.3);
  z-index: 999;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ice-btn:hover {
  transform: translateY(-2px);
}

.ice-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* =========================
   ICE BREAKER MODAL
========================= */

.ice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeOverlay 0.3s ease;
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ice-card {
  width: min(650px, 92%);
  max-height: 80vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  animation: popIce 0.5s ease;
}

@keyframes popIce {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0px) scale(1);
    opacity: 1;
  }
}

.ice-card h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #f97316, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ice-timer {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ea580c;
  margin-bottom: 22px;
}

.ice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ice-question {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.25);
  font-weight: 600;
  color: #334155;
  transition: transform 0.2s ease;
}

.ice-question:hover {
  transform: translateX(6px);
}

.ice-note {
  margin-top: 20px;
  font-weight: 700;
  color: #475569;
}




.logos {
  display: flex;
  align-items: center; /* Vertically centers the images */
  justify-content: center; /* Horizontally centers the group in the div */
  gap: 130px; /* Sets exactly 30px of space between each image */
}

.logos img {
  height: 70px;
  object-fit: contain;    /* Maintains aspect ratio */
}


/* =========================
   CODE QUESTION DISPLAY
========================= */

.code-question {
  background: #0f172a;
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: 18px;
  font-size: 0.95rem;
  font-family: "JetBrains Mono", monospace;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.6;
  margin-bottom: 24px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.code-question code {
  display: block;
}


.ice-skip-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #ea580c;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
  margin-left:450px;
}

.ice-skip-btn:hover {
  background: #fff7ed;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.2);
  color: #c2410c;
}


/* =========================
   FINAL QUESTION INPUT BOX
========================= */

.descriptive-box {
  margin-top: 10px;
  margin-bottom: 20px;
}

.descriptive-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.descriptive-input:focus {
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
