/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.landing-container {
  display: flex;
  justify-content: center; /* Centers items horizontally */
  align-items: center; /* Centers items vertically */
  min-height: 10vh;
  margin-bottom: 100px; /* Makes the container fill the screen height */
  gap: 3rem; /* Adds space between the card and the button */
}
.holographic-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #090909;
}

.holographic-card {
  width: auto;
  height:auto;
  background: #090909;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  transition: all 0.5s ease;
}

.holographic-card h2 {
  color: #0366d6;
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.holographic-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(0deg, transparent, transparent 30%, #0366d6);
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.holographic-card:hover {
  transform: scale(1.05);
  cursor: none;
  box-shadow: 0 0 20px #0366d6;
}

.holographic-card:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  color: #e1e1e1;
  background: #090909;
  padding: 1rem;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.site-header nav button {
  display: flex;
  margin-left: 950px;
  color: #0366d6;
  background: transparent;
  border: 1px solid #0366d6;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.ghost {
  background: transparent;
  color: #0366d6;
}
.quiz-app {
  max-width: 800px;
  margin: 0 auto;
}
.start-screen {
  cursor: default;
  max-width: 640px;
  margin: 2rem auto;
  padding: 2rem;
  background: #393939;
  border-radius: 8px;
  box-shadow: 1px 1px 20px #0366d6;
  text-align: center;
}
.start-screen .difficulty {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.start-screen .count {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}
.start-screen .count label {
  font-weight: 600;
  color: #0366d6;
}
.start-screen .count input {
  width: 84px;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #ddd;
}
#btnGenerate {
  position: absolute;
  right: 10px;
  margin: auto;
  top: 28px;
  transition: 0.5s;
}

.diffBtn {
  padding: 0.8rem 1.1rem;
  border-radius: 8px;
  background: #333;
  color: #f1f1f1;
  border: 1px solid #cbd5ee;
  cursor: pointer;
  font-weight: 600;
  --scale: 1;
  transform: scale(var(--scale));
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    background-color 0.25s ease;
}
.diffBtn:hover {
  background: #e6f0ff;
  --scale: 1.25;
  background-color: #0366d6;
  transition: 0.5s;
}
.diffBtn.selected {
  background: #0366d6;
  color: #fff;
  border-color: #0366d6;
  --scale: 1.15;
}

/* small pulse animation to hint user to select difficulty */
.start-screen.pulse {
  animation: hintPulse 0.6s ease;
}
@keyframes hintPulse {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}
.hidden {
  display: none !important;
}
.quiz-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1rem;
}
.meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.timer {
  background: #090909;
  color: #0366d6;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: progress;
}

.selection-error {
  box-shadow: 1px 1px 20px #ea0404;
  transition: 2s; /* This will apply to your .quiz-card */
}

.counter {
  color: #444;
  cursor: default;
}
.quiz-card {
  background: #0366d6;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgb(6, 29, 240);
  min-height: 140px;
  cursor: default;
  transition:3s ease-in-out;
}

.quiz-card.active {
  box-shadow: 0 6px 18px #0366d6;
  transition: box-shadow 2s ease-in-out;
}
.choices {
  list-style: none;
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  color: #090909;
}
.choices li {
  border: 1px solid #e6e9ef;
  padding: 0.6rem;
  border-radius: 8px;
  background: #fcfdff;
  cursor: pointer;
}
.choices li.selected {
  background: #0366d6;
  color: #fff;
  border-color: #0366d6;
}
.controls {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.btn {
  margin: 7px;
  background: #f1f5fb;
  color: #090909;
  border: 1px solid #cbd5ee;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  --scale: 1;
  transform: scale(var(--scale));
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    background-color 0.25s ease;
}
.btn:hover {
  --scale: 1.25;
  background-color: #090909;
  transition: 0.5s;
  color: #fff;
}
.btn.primary {
  background: #0366d6;
  color: #fff;
  border-color: #0366d6;
  --scale: 1;
  transform: scale(var(--scale));
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    background-color 0.25s ease;
}
.btn.primary:hover {
  --scale: 1.25;
  background-color: #00a6ff;
  transition: 0.5s;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

footer {
  margin-top: 2rem;
  text-align: center;
  color: #666;
  position:static;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

/* fixed watermark at the bottom */
.watermark {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  background: rgba(9, 9, 9, 0.9);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  color: #fefdfd;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(5, 173, 203, 0);
  pointer-events: none; /* make non-interactive */
  z-index: 1000;
}

/* Animated dot inside Generate button (inspired by provided snippet) */
.arrowWrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 6px;
}

.arrow {
  color: #0366d6;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), color 0.4s ease;
  width: 20px;
  height: 20px;
}
.site-header nav button {
  transition: background-color 0.45s ease, color 0.45s ease,
    border-color 0.45s ease;
}
.site-header nav button:hover {
  background: #0366d6; /* blue background on hover */
  color: #fff; /* text becomes white */
  border-color: #0366d6;
}
.site-header nav button:hover .arrow {
  transform: translateX(12px); /* arrow moves forward */
  color: #fff; /* arrow color follows the text */
}
#result {
  margin: auto;
  margin-top: 250px;
  cursor: default;
  justify-content: center;
  background-color: #06b225;
  border-radius: 12px;
  box-shadow: 0 0px 16px rgb(3, 187, 228);
  width: 100%;
  max-width: 600px;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
  margin-top: 1rem;
  font: 700 20px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
}
.result-card h1 {
  color: #f3f5f2;
  font-size: 24px;
  margin-bottom: 10px;
}
.score-visual {
  font-size: 56px;
  font-weight: bold;
  color: #0216ee;
  margin: 10px 0;
}
.score-visual.low {
  color: #fa1e1e;
}
.performance-message {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 24px;
}
.cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.cta-buttons button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}

.cta-primary {
  background-color: #0366d6;
  color: white;
  --scale: 1;
  transform: scale(var(--scale));
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    background-color 0.25s ease;
}

.cta-primary:hover {
  --scale: 1.25;
  background-color: #07aef6;
  transition: 0.5s;
}

.cta-secondary {
  background-color: #120101;
  color: #f1f1f1;
  --scale: 1;
  transform: scale(var(--scale));
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    background-color 0.25s ease;
}
.cta-secondary:hover {
  --scale: 1.25;
  background-color: #292828;
  transition: 0.5s;
}
.review-toggle {
  background: none;
  border: none;
  color: #0366d6;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}
.answers-list {
  text-align: left;
  margin-top: 20px;
  border-top: 1px solid #444;
}
.answer-item {
  padding: 16px 0;
  border-bottom: 1px solid #444;
}
.answer-item p {
  margin: 4px 0;
  color: #f1f1f1;
}
.answer-item .question {
  font-weight: bold;
}
.answer-item .your-answer.correct {
  color: #06dce8;
}
.answer-item .your-answer.incorrect {
  color: #f44336;
  text-decoration: line-through;
  font-weight: 900;
}
.answer-item .correct-answer {
  color: #00090b;
  font-weight: 900;
}

/*special*/
/* ===== Default (Desktop) ===== */
.desktop {
  display: block;
  font-size: 2.5rem;
}

.mobile {
  display: none;
  width: 150px; /* adjust as needed */
  height: auto;
  filter: drop-shadow(0 0 10px #00ffff);
}

/* ===== Mobile (<= 600px) ===== */
@media (max-width: 600px) {
  .desktop {
    display: none;
  }

  .mobile {
    display: block;
    background-color: #0fc8f1;
    width: 100px;
    height: 70px;
    animation: glow-img 2s ease-in-out infinite alternate;
  }
}
/*social*/
.social {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 800px;
  list-style: none;
  z-index: 999;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  }

.group {
  display: flex;
  align-items: center;
  gap: 90px;
}

.social li {
  position: relative;
  list-style: none;
}

.social li::after {
  position: absolute;
  content: attr(data-tooltip);
  inset: -45% auto auto 50%;
  translate: -50%;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: #fff;
  background: var(--bg, #070707);
  border-radius: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: inset 0.4s cubic-bezier(0.47, 2, 0.41, 1.5), visibility 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.social li:has(a:hover, a:focus-visible)::after {
  opacity: 1;
  visibility: visible;
  inset-block-start: -60%;
}

.social a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  width: 50px;
  font-size: 1.75rem;
  color: #efeff1;
  border: 1px solid;
  border-radius: 100%;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s ease-in-out;
}

.social a > i {
  position: relative;
  z-index: 1;
}

.social a::after {
  position: absolute;
  content: "";
  inset: 100% 0 0;
  background: var(--bg, #070707);
  transition: inset 0.3s ease-in-out;
}

.social a:hover,
.social a:focus-visible {
  color: #fff;
}

.social a:hover::after,
.social a:focus-visible::after {
  inset-block-start: 0;
}

@media (max-width: 1024px) {
  .social {
    gap: 350px;
  }
}

@media (max-width: 768px) {
  .social {
    gap: 150px;
  }
  .group {
    gap: 35px;
  }
}

@media (max-width: 425px) {
  .social {
    gap: 20px;
    margin-right: 80px;
  }
  .group {
    gap: 15px;
  }
  .social a {
    font-size: 1.4rem;
  }
}

@media (max-width: 375px) {
  .social {
    gap: 10px;
  }
  .group {
    gap: 20px;
  }
  .social a {
    width: 38px;
  }
}

@media (max-width: 320px) {
  .social {
    gap: 90px;
    margin-bottom: 15px;
    margin-right: 30px;
  }
  .group {
    gap: 20px;
  }
  .social a {
    width: 35px;
    font-size: 1.2rem;
  }
}