/* ---------------------------------------------------------------------------
   Base reset + the handful of utility classes this site used from Tailwind.
   The Tailwind Play CDN (a ~400KB script that compiled CSS in the browser on
   every page load) was render-blocking in <head>; these rules replace it.
   --------------------------------------------------------------------------- */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  margin: 0;
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

p,
blockquote,
figure,
pre,
dl,
dd {
  margin: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

button,
[role="button"] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

textarea {
  resize: vertical;
}

summary {
  display: list-item;
}

[hidden] {
  display: none;
}

/* Utility classes still referenced in the markup. */
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.leading-relaxed { line-height: 1.625; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* Light theme. Text colors below are chosen for at least 4.5:1 contrast on
   white / #f1f5f9 surfaces: #1e293b body text, #475569 secondary text,
   #b45309 amber accent text, #0369a1 link blue. */
:root {
color-scheme: light;
}

body {
box-sizing: border-box;
 font-family: 'Poppins', sans-serif;
background: #eef2f7;
color: #1e293b;
margin: 0;
padding: 0px;
min-height: 100%;
}
.container {
max-width: 450px !important;
margin: 0 auto;
padding: 10px;
padding-top: 0px;
background: #ffffff;

box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.coins{
  cursor: pointer;
}
.header {
text-align: center;
margin-bottom: 0px;
}

.page-shell {
min-height: 100vh;
display: flex;
flex-direction: column;
}

.page-content {
flex: 1;
display: block;
padding: clamp(20px, 4vw, 40px) 0 12px;
}

.page-shell .quiz-card {
width: min(100%, 860px);
margin: 0 auto;
padding: clamp(24px, 4vw, 40px) !important;
}

.page-shell .footer-links {
width: min(100%, 860px);
margin: 0 auto 28px !important;
padding: 18px 0 0 !important;
border-top: 1px solid #e2e8f0;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px 22px;
}

.page-shell .footer-links a {
margin: 0 !important;
}

.page-shell .quiz-card p,
.page-shell .quiz-card li {
font-size: clamp(0.98rem, 1.7vw, 1.06rem);
line-height: 1.75;
}

.page-shell .quiz-card h2 {
font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.page-shell .quiz-card h3 {
font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.page-shell .quiz-card h4 {
font-size: clamp(0.98rem, 2vw, 1.1rem);
}

@media (max-width: 768px) {
.page-content {
padding: 16px 0 10px;
}

.page-shell .quiz-card {
width: calc(100% - 16px);
padding: 22px 16px !important;
}

.page-shell .footer-links {
width: calc(100% - 16px);
gap: 10px 16px;
}
}
.ads-placement-cover {
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo {
font-size: 2.2rem;
font-weight: 800;
margin-bottom: 8px;
/*background: linear-gradient(45deg, #00d4ff, #0099cc);*/
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.tagline {
font-size: 0.9rem;
opacity: 0.7;
margin-bottom: 20px;
color: #64748b;
}

.quiz-card {
   max-width: 100%;
    width: 100%;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: block;
    margin: 40px auto;
    position: relative;
    border-radius: 16px;
    padding: 30px 10px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    margin-top: 60px;
}
#optionsContainer .option{
        background-color: #ffffff;
    width: 100%;
    height: 100%;
    padding: 10px;
    border-radius: 6px;
    color: #1e293b;
    text-align: center;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

/* The id rule above outranks .option.correct etc., so restate the answer-state text color. */
#optionsContainer .option.selected,
#optionsContainer .option.correct,
#optionsContainer .option.wrong {
    color: #ffffff;
    border-color: transparent;
}

.question-counter {
text-align: center;
font-size: 0.9rem;
opacity: 0.8;
margin-bottom: 20px;
margin-top: 20px;
}

.progress-bar {
width: 100%;
height: 6px;
background: #e2e8f0;
border-radius: 3px;
margin-bottom: 30px;
overflow: hidden;
}

.progress-fill {
height: 100%;
background: linear-gradient(90deg, #f59e0b, #d97706);
border-radius: 3px;
transition: width 0.5s ease;
width: 0%;
}

.question {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 25px;
line-height: 1.4;
text-align: center;
}

.options {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-bottom: 25px;
}

.option {
background: linear-gradient(145deg, #ffffff, #f8fafc);
border: 2px solid #e2e8f0;
color: #1e293b;
padding: 18px 20px;
border-radius: 16px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.95rem;
font-weight: 500;
text-align: center;
position: relative;
overflow: hidden;
min-height: 55px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.option:hover {
background: linear-gradient(145deg, #f8fafc, #eef2f7);
border-color: rgba(3, 105, 161, 0.4);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(3, 105, 161, 0.15);
}

.option.selected {
background: linear-gradient(145deg, #ea580c, #c2410c);
border-color: #ea580c;
color: #ffffff;
box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
}

.option.correct {
background: linear-gradient(145deg, #059669, #047857);
border-color: #059669;
color: #ffffff;
box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.option.wrong {
background: linear-gradient(145deg, #dc2626, #b91c1c);
border-color: #dc2626;
color: #ffffff;
box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.option::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(3, 105, 161, 0.06), transparent);
transition: left 0.5s ease;
}

.option:hover::before {
left: 100%;
}

.next-btn {
background: linear-gradient(45deg, #ffd700, #ffed4e);
color: #333;
border: none;
padding: 15px 40px;
border-radius: 25px;
font-size: 1.1rem;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
display: block;
margin: 0 auto;
opacity: 0.5;
pointer-events: none;
}

.next-btn.active {
opacity: 1;
pointer-events: auto;
}

.next-btn:hover.active {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.score-display {
text-align: center;
font-size: 1.2rem;
margin-bottom: 20px;
}

.score-number {
font-size: 2rem;
font-weight: bold;
color: #b45309;
}

.result-card {
text-align: center;
}

.result-title {
font-size: 2rem;
font-weight: bold;
margin-bottom: 20px;
color: #b45309;
}

.result-message {
font-size: 1.2rem;
margin-bottom: 30px;
opacity: 0.9;
}

.restart-btn {
background: linear-gradient(45deg, #4f46e5, #6d28d9);
color: #fff;
border: 2px solid transparent;
padding: 15px 40px;
border-radius: 25px;
font-size: 1.1rem;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
}

.restart-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.fun-fact-card {
background: #ecfdf5;
border: 1px solid #a7f3d0;
border-radius: 16px;
padding: 20px;
margin-bottom: 25px;
position: relative;
}

.fun-fact-label {
color: #047857;
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
}

.fun-fact-text {
color: #334155;
font-size: 0.85rem;
line-height: 1.4;
}

.bottom-section {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 20px;
padding: 25px;
margin-top: 20px;
}

.bottom-title {
color: #0369a1;
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 15px;
text-align: center;
}

.bullet-points {
list-style: none;
padding: 0;
margin: 0;
}

.bullet-points li {
color: #475569;
font-size: 0.9rem;
margin-bottom: 8px;
padding-left: 20px;
position: relative;
}

.bullet-points li::before {
content: '•';
color: #0369a1;
font-weight: bold;
position: absolute;
left: 0;
}

.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 20px;
margin-top: 30px;
}

.stat-item {
background: #ffffff;
border: 1px solid #e2e8f0;
padding: 20px;
border-radius: 16px;
text-align: center;
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.stat-number {
font-size: 1.8rem;
font-weight: bold;
color: #b45309;
}

.stat-label {
font-size: 0.9rem;
color: #475569;
margin-top: 5px;
}
.ads-container {
    width: 100%;
    max-width: 100%;
    margin: 2px auto;
    margin-top: 0px;
    padding-top: 0px;
    text-align: center;
    position: relative;
}
.ads {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.ads-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    text-transform: uppercase;
}
.ads-label {
    margin-top: 5px;
    text-align: center;
    margin-bottom: 10px;
}

/*----Question counter -------------*/

#questionCounter {
    max-width: 150px;
    width: 100%;
    border-radius: 50px;
    padding: 5px;
    border: 4px solid #f1f5f9;
    display: block;
    margin: 0 auto;
    text-align: center;
    position: absolute;
    top: -23px;
    background-color: #ffffff;
    color: #1e293b;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    left: 50%;
    right: 50%;
    transform: translate(-50%,-50%);
    z-index: 999;
}

/*------- End ----------------------*/
body .margin-top-20px{
  margin-top: 20px;
}

.footer-links,
.page-footer {
  text-align: center;
  margin: 30px 0 20px;
  padding: 10px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
}

/* Tap targets: each footer link keeps at least a 44px-high hit area. */
.footer-links a,
.page-footer a {
  color: #0369a1;
  text-decoration: none;
  margin: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
}

.footer-links a:hover,
.page-footer a:hover {
  text-decoration: underline;
}

.ads-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.ads-popup-overlay.active {
  opacity: 1;
  visibility: visible;
  z-index: 9999;
}

.ads-popup {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 25px 20px;
  width: min(80%, 480px);
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: fadeInZoom 0.35s ease-out;
}

.close-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
  align-items: center;
  gap: 8px;
}

.ads-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  min-width: 44px;
  min-height: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  display: none;
}

.ads-close-btn.active {
  display: block;
}

.ads-loading {
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  color: #333;
}

#adsPopup .ads-label {
  font-size: 12px;
  color: #333;
  margin-top: 5px;
  text-transform: uppercase;
}

#custom-interstitial-popup .close-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 5px;
  align-items: center;
  gap: 2px;
}

div#count-down-wrap {
  color: #000 !important;
  font-size: 13px;
}

#custom-interstitial-popup .ads-label {
  margin-top: 5px;
  text-align: center;
  margin-bottom: 5px;
  color: #333 !important;
}

#custom-interstitial-popup #close-button {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid #ff4757;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

#custom-interstitial-popup #close-button::before,
#custom-interstitial-popup #close-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #ff4757;
  transition: all 0.3s ease;
}

#custom-interstitial-popup #close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#custom-interstitial-popup #close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#custom-interstitial-popup #close-button:hover {
  background: #ff4757;
  border-color: #ff4757;
}

#custom-interstitial-popup #close-button:hover::before,
#custom-interstitial-popup #close-button:hover::after {
  background: white;
}

#custom-interstitial-popup #countdown {
  color: #000 !important;
}
/*------ Bttom Section -------------------------*/

/* Featured Section */
.bottom-content{
  margin-top: 15px;
}
.bottom-content .featured-section {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    margin: 5px 0;
}

.bottom-content .featured-section h2,
.bottom-content .featured-section h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

.bottom-content .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 15px;
    gap: 15px;
    margin-top: 15px;
}

.bottom-content .feature-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    color: #1e293b;
    text-align: center;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .05);
}

.bottom-content .feature-item h3,
.bottom-content .feature-item h4,
.bottom-content .feature-item h5 {
    margin-bottom: 8px;
    color: #1e293b;
}

.bottom-content .feature-item p {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
}

/* How To Play Section */
.bottom-content .how-to-play {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 10px;
}

.bottom-content .how-to-play h2,
.bottom-content .how-to-play h3 {
    color: #1e293b;
    margin-bottom: 15px;
}

.bottom-content .play-steps {
    padding-left: 20px;
}

.bottom-content .play-steps li {
    margin-bottom: 10px;
    color: #334155;
}

/* Fact Box */
.bottom-content .fact_box {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #1e293b;
    padding: 15px;
    border-radius: 16px;
    text-align: center;
}

.bottom-content .fact_box h3,
.bottom-content .fact_box h4,
.bottom-content .fact_box h5 {
    font-size: 18px;
    font-weight: 600;
}

/* Quiz Rules */
.bottom-content .quiz_rules {
    padding-top: 40px;
    width: 100%;
}

.bottom-content .quiz_rules h3 {
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid;
    display: block;
    margin: 0 auto;
    width: fit-content;
    padding-bottom: 10px;
}
.hide-index{
    z-index: -1;
    opacity: 0;
}
/* Responsive */
@media (max-width: 768px) {
    .bottom-content .features-grid {
        grid-template-columns: 1fr;
    }

    .bottom-content .featured-section,
    .bottom-content .how-to-play {
        padding: 15px;
    }
}


/*----- Result--model----*/
.show_modal {
    width: 100%;
    height: 90vh;
    position: absolute;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center
}

.show_modal .modal_body {
    max-width: 380px;
    position: absolute;
    display: block;
    margin: 0 auto;
    background-color: #fff;
    width: 100%;
    top: 30%;
    border-radius: 8px;
    padding: 10px
}

.show_modal .modal_body .close_modal_btn {
    position: absolute;
    right: 10px;
    color: #000;
    font-size: 24px
}

.show_modal .modal_body .modal_content img {
    animation: flip 3s infinite;
    margin: 20px auto 5px;
    display: block
}

.show_modal .modal_body .modal_content h3 {
    text-align: center;
    color: #172031;
    font-size: 20px
}

.show_modal .modal_body .modal_content h3 b {
    font-size: 22px;
    color: #ffb540;
}

@keyframes flip {
    0% {
        transform: rotateY(0deg)
    }

    50% {
        transform: rotateY(180deg)
    }

    to {
        transform: rotateY(1turn)
    }
}


/**-------- Popup close ---------------*/

/* Overlay background */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }

  /* Popup box */
  .popup-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    color: #1e293b;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    position: relative;
    animation: fadeIn 0.4s ease-in-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

  /* Close button */
  .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #1e293b;
    font-size: 22px;
    cursor: pointer;
  }

  .popup-box img {
    animation: flip 3s infinite;
    margin: 20px auto 5px;
    display: block
  }

  .popup-box h2 {
    margin: 10px 0;
  }

  .popup-box .new-reward {
    color: #b45309;
    font-size: 18px;
    font-weight: 600;
  }

  .popup-box .get-coins {
    font-size: 26px;
    font-weight: 700;
  }

.popup-box p {
  color: #475569;
  margin-bottom: 25px;
}

 .watch-btn-wrapper {
   position: relative;
   width: 100%;
   padding-top: 10px;
 }

 .watch-btn,
 .claim-button.watch-btn {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%;
   overflow: hidden;
 }

 .watch-btn .watch-label,
 .claim-button .watch-label {
   display: inline-block;
   white-space: nowrap;
 }

.watch-btn-wrapper > .ad-tag {
  position: absolute;
  top: -2px;
  right: -8px;
  margin: 0;
   padding: 0;
   background: transparent;
   color: #475569;
   font-size: 12px;
   font-weight: 800;
   letter-spacing: 0.08em;
  pointer-events: none;
}

.watch-btn[data-loading="true"],
.claim-button.watch-btn[data-loading="true"] {
  background: linear-gradient(135deg, #ffd84d 0%, #ffca28 100%);
  color: #1b1b1b;
  box-shadow: 0 10px 28px rgba(255, 202, 40, 0.35);
  opacity: 1;
  transform: none;
}

.watch-btn[data-loading="true"] .watch-label,
.claim-button.watch-btn[data-loading="true"] .watch-label {
  position: relative;
  padding-left: 28px;
  letter-spacing: 0.02em;
}

.watch-btn[data-loading="true"] .watch-label::before,
.claim-button.watch-btn[data-loading="true"] .watch-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-top-color: currentColor;
  animation: rewardSpin 0.8s linear infinite;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18) inset;
}

@keyframes rewardSpin {
  to {
    transform: rotate(360deg);
  }
}
 
  .claim-button {
    background-color: #ffb540;
    box-shadow: 0 10px 30px -12px rgba(217, 119, 6, .6);
    font-weight: 700;
    color: #000;
    border-radius: 1.5rem;
    border: none;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

  .claim-button:hover {
    background: #ffb540;
  }
.quiz-wrapper h3,.quiz-wrapper h2{
  color:#b45309;
}
/* Result Container */
.result-container {
  padding: 2px;
  background: #f1f5f9;
  border-radius: 12px;

  margin: 10px auto;
  margin-top: 10px;
  color: #1e293b;
  font-family: 'Poppins', sans-serif;
}

/* Result Box */
.result-container .result_box {
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 25px 20px;
  border-radius: 16px;
  margin-bottom: 5px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease;
}

.result-container .result_box:hover {
  transform: translateY(-5px);
}

.result-container .winner_img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 15px;
  border-radius: 12px;
}

.result-container .result_box h2,
.result-container .result_box h3 {
  font-size: 20px;
  margin: 10px 0;
  color: #b45309;
  font-weight: 600;
}

.result-container .coin_set {
  color: #0369a1;
  font-weight: 700;
}

/* Button */
.result-container .play_now_btn {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  border: none;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 15px;
}

.result-container .play_now_btn:hover {
  background: linear-gradient(45deg, #ffed4e, #ffd700);
  transform: scale(1.05);
}

/* Quiz Rules */
.result-container .quiz_rules {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.result-container .quiz_rules h3 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #0369a1;
  margin-bottom: 15px;
  border-bottom: 2px solid #0369a1;
  display: inline-block;
  padding-bottom: 5px;
}

.result-container .quiz_rules_set {
  list-style-type: disc;
  margin: 0 auto;
  max-width: 600px;
  padding-left: 20px;
  color: #334155;
  line-height: 1.6;
}

.result-container .quiz_rules_set li {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .result-container {
    padding: 15px;
  }

  .result-container .winner_img {
    max-width: 150px;
  }

  .result-container .result_box h2,
.result-container .result_box h3 {
    font-size: 18px;
  }

  .result-container .quiz_rules h3 {
    font-size: 18px;
  }
}





/*-------End ----------**/


/*----- End ------*/

/*-------------- End -----------------------*/

@media (max-width: 480px) {
.container {
    padding: 0 10px;
    padding-top: 0px;
}

.quiz-card {
    padding: 5px;
    margin-bottom: 10px;
}

.logo {
    font-size: 1.8rem;
}

.question {
    font-size: 1.1rem;
}

.option {
    padding: 12px 15px;
    font-size: 0.9rem;
    min-height: 45px;
}

.options {
    gap: 10px;
}

.score-display {
    font-size: 1.1rem;
}

.score-number {
    font-size: 1.8rem;
}
}


/* --- Quiz category css -----------------*/
.quiz-category {
  position: relative;
}

.quiz-category .sidebar {
  position: absolute;
  left: -10px;
  top: 0;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  transition: left 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 20px rgba(15, 23, 42, 0.15);
  overflow-y: auto;
  display: none;
}

.quiz-category .sidebar.open {
  left: -10px;
  display: block;
}

.quiz-category .sidebar-header {
  padding: 25px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.quiz-category .sidebar-header h2 {
  color: #1e293b;
  font-size: 24px;
  margin-bottom: 5px;
}

.quiz-category .sidebar-header p {
  color: #64748b;
  font-size: 14px;
}

.quiz-category .sidebar-menu {
  padding: 20px 0;
}

.quiz-category .menu-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.quiz-category .menu-item:hover {
  background: #f1f5f9;
  border-left-color: #667eea;
}

.quiz-category .menu-item-icon {
  font-size: 24px;
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.quiz-category .menu-item-text {
  font-size: 16px;
}

.quiz-category .sidebar-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.quiz-category .sidebar-footer .menu-item {
  padding: 10px;
}

.quiz-category .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.quiz-category .overlay.active {
  opacity: 1;
  visibility: visible;
}

.quiz-category .top-bar {
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  margin-bottom: 15px;
  z-index: 100;
}

.quiz-category .menu-btn {
  background: #f1f5f9;
  border: none;
  color: #1e293b;
  font-size: 24px;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-category .menu-btn:hover {
  background: #e2e8f0;
  transform: scale(1.05);
}

.quiz-category .logo {
  color: white;
  font-size: 28px;
  font-weight: bold;
  -webkit-text-fill-color: #b45309;
  text-shadow: none;
  letter-spacing: 1px;
  margin: 0;
  color: #b45309;
}

.quiz-category .coins {
  background: #fffbeb;
  padding: 5px 20px;
  border-radius: 25px;
  border: 2px solid #f59e0b;
  color: #1e293b;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.quiz-category .category-bar {
  padding: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  z-index: 99;
}

.quiz-category .arrow {
  border: none;
  background: #f1f5f9;
  color: #1e293b;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.quiz-category .arrow:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.quiz-category .category-scroll {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.quiz-category .category-scroll::-webkit-scrollbar {
  display: none;
}

.quiz-category .category-tabs {
  display: flex;
  gap: 10px;
  padding: 0 5px;
}

.quiz-category .tab {
  background: #f1f5f9;
  border: none;
  padding: 5px 5px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: #475569;
}

.quiz-category .tab:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.quiz-category .tab.active {
  background: #ffb540;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.quiz-category .quiz-list {
  padding: 10px;
  max-width: 100%;
  margin: 0 auto;
}

.quiz-category span#coin-count {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.quiz-category span#coin-count img {
  width: 15px;
  height: auto;
}

.quiz-category .quiz-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.quiz-category .quiz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: #ffb540;
}

.quiz-category .quiz-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.quiz-category .quiz-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.quiz-category .details {
  flex: 1;
}

.quiz-category .category {
  color: #b45309;
  font-size: 10px;
  line-height: 22px;
  font-weight: 600;
  margin-bottom: 0;
  text-transform: uppercase;
}

.quiz-category .details h3 {
  color: #1e293b;
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.quiz-category .entry-fee {
  font-size: 13px;
  color: #334155;
  background: #f1f5f9;
  display: flex;
  padding: 2px 7px;
  margin-top: 7px;
  border-radius: 50px;
  align-items: center;
  max-width: -moz-fit-content;
  max-width: fit-content;
  gap: 5px;
}

.quiz-category .play-btn {
  background: #d97706;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  flex-shrink: 0;
  position: relative;
}

svg.play_icon {
  position: absolute;
  left: 34%;
}

.quiz-category .play-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

@media (max-width: 768px) {
  .quiz-category .logo {
    font-size: 22px;
  }

  .quiz-category .coins {
    padding: 8px 15px;
    font-size: 16px;
  }

  .quiz-category .quiz-card {
    flex-direction: row;
    text-align: center;
  }

  .quiz-category .quiz-card::before {
    width: 100%;
    height: 5px;
  }

  .quiz-category .quiz-card-icon {
    width: 70px;
    height: 70px;
    font-size: 35px;
  }

  .quiz-category .play-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

.close-sidebar-btn {
  background: #f1f5f9;
  border: none;
  color: #1e293b;
  font-size: 28px;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-sidebar-btn:hover {
  background: #e2e8f0;
  transform: scale(1.1);
}
button#closeSidebar {
    position: absolute;
    top: 20px;
    right: 10px;
}
.quiz-card {
  cursor: pointer;
}
/*----------------   End ---------------*/


/*----------- Quiz play game -----------------*/

 .quiz-wrapper {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: 450px;
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
  padding: 20px;
  position: relative;
}

#play-quiz-wrapper .quiz-wrapper h2 {
  color: #b45309;
  font-size: 18px;
  margin-bottom: 6px;
}

#play-quiz-wrapper .quiz-wrapper h3 {
  font-size: 14px;
  font-weight: normal;
  color: #475569;
  margin: 0 0 15px;
}

/* Score circles */
#play-quiz-wrapper .scoreboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#play-quiz-wrapper .score-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  color: #ffffff;
}

#play-quiz-wrapper .correct {
  background: #15803d;
}

#play-quiz-wrapper .wrong {
  background: #dc2626;
}

/* Timer */
#play-quiz-wrapper .timer {
  border: 4px solid #f59e0b;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  line-height: 62px;
  background: #ffffff;
  color: #b45309;
  font-weight: bold;
  font-size: 18px;
  margin: 10px auto;
}

#play-quiz-wrapper .question-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 10px;
  margin-top: 15px;
}

#play-quiz-wrapper .question-count {
  background: #1e293b;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #fff;
  margin-bottom: 10px;
}

#play-quiz-wrapper .question-text {
  font-size: 16px;
  margin-bottom: 15px;
}

#play-quiz-wrapper .options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#play-quiz-wrapper .option {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
}

#play-quiz-wrapper .option:hover {
  background: #e2e8f0;
}

#play-quiz-wrapper .option.correct {
  background: #15803d !important;
}

#play-quiz-wrapper .option.wrong {
  background: #dc2626 !important;
}

#play-quiz-wrapper .score-text {
  margin-top: 15px;
  color: #b45309;
  font-weight: bold;
}

#play-quiz-wrapper .close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  color: #1e293b;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}


#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.35);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* === Hidden state after load === */
#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
}
.ads-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    text-transform: uppercase;
}
/* === Spinner === */
.loader {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(15, 23, 42, 0.12);
  border-top: 4px solid #f59e0b; /* amber accent */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



@media (max-width: 768px) {
    .popup-box {
        padding: 9px;
        width: 97%;
    }
}



/*-------------- End -----------------*/

/* Available to screen readers and crawlers, invisible on screen. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
