* {
  box-sizing: border-box;
}

.hidden {
  display: none;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #1E3A8A, #0EA5A4);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  color: white;
  text-align: center;
}

/* ============================= */
/* LOGO / BRANDING              */
/* ============================= */

.branding {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  max-width: 780px;
  width: 95%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.35));
}

/* ============================= */
/* TOP BAR                      */
/* ============================= */

.top-bar {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 0 auto;
  padding: 0 40px;
}

.top-actions button {
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
}

.top-actions {
  position: absolute;
  right: 40px;
  top: 56px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ============================= */
/* ACTION GROUP (Slider Style)  */
/* ============================= */

.action-group {
  display: flex;
  background: none;
  backdrop-filter: none;
  padding: 0;
  gap: 6px;
}

.action-group button {
  box-shadow: none;
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* Utility Help Button (Override Global Button Style) */
#help-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  box-shadow: none;
}

#help-btn:hover {
  background: rgba(255,255,255,0.18);
}

/* ============================= */
/* TOPIC BUTTONS                */
/* ============================= */

#topic-list {
  margin: 25px auto 0 auto;
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 1100px;
  padding: 0 20px;
transition: opacity 0.3s ease;
}

body.topic-active {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

#topic-list.visible {
  display: flex;
}

button {
  padding: 9px 18px;
  border: none;
  border-radius: 30px;
  background: white;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

button:hover {
  transform: translateY(-2px);
}

button.active-topic {
  background: #0EA5A4;
  color: white;
}

/* Glass topic buttons */

#topic-list button {
  background: rgba(255,255,255,0.24);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: none;
  backdrop-filter: blur(4px);
}

#topic-list button:hover {
  background: rgba(255,255,255,0.28);
}

/* ============================= */
/* TOOL BUTTONS                 */
/* ============================= */

.tools {
  margin-top: 20px;
  display: none;
  gap: 12px;
  justify-content: center;
}

.tools.visible {
  display: flex;
}

.tools button {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.tools button:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.tools button:first-child {
  background: rgba(14,165,164,0.25);
  border: 1px solid rgba(14,165,164,0.6);
}

.tools button:last-child {
  background: rgba(30,58,138,0.25);
  border: 1px solid rgba(30,58,138,0.6);
}

/* ============================= */
/* CHANGE TOPIC BUTTON           */
/* ============================= */

.change-topic {
  margin-top: 20px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
}

.change-topic:hover {
  text-decoration: underline;
  transform: none;
}

/* ============================= */
/* INSTANT QUESTION BUTTON      */
/* ============================= */

.instant-container {
  margin: 15px 0 10px 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  #instant-btn {
    display: none !important;
  }
}


* INSTANT QUESTION BUTTON      */
/* ============================= */

.instant-container {
  margin: 15px 0 10px 0;
  display: flex;
  justify-content: center;
}

/* Desktop only */
@media (max-width: 768px) {
  .instant-container {
    display: none !important;
  }
}

#instant-btn {
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 16px;

  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);

  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
}

#instant-btn:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}
.instant-container.used {
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


.instant-container.used {
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {

  .top-actions {
    position: static;
  }

  #help-btn {
    position: fixed;
    top: 18px;
    right: 18px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 14px;
    z-index: 3000;
  }

}

/* ============================= */
/* CARD                         */
/* ============================= */

.card-container {
  margin: 90px auto 120px auto;
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
}

.card {
  background: white;
  color: #333;
  width: 90%;
  max-width: 720px;
  min-height: 320px;
  padding: 60px 50px;
  border-radius: 35px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.35);
  text-align: center;
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.card p {
  font-size: 19px;
  color: #666;
}

.hint {
  opacity: 0.35;
}

.tap-hint {
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.6;
  cursor: pointer;
}

.follow-up {
  margin-top: 20px;
  font-size: 1rem;
  opacity: 0.9;
}

/* ============================= */
/* COUNTER                      */
/* ============================= */

.card-counter {
  margin-top: 25px;
  font-size: 16px;
  font-weight: 500;
}

/* ============================= */
/* SWIPE INDICATOR              */
/* ============================= */

.swipe-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.swipe-indicator.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================= */
/* FOOTER                       */
/* ============================= */

.footer {
  margin-top: 60px;
  margin-bottom: 25px;
  font-size: 12px;
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer a {
  color: white;
  text-decoration: underline;
}

/* ============================= */
/* EXIT BUTTON                  */
/* ============================= */

.exit-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  background: white;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

.presentation-mode .exit-btn {
  display: block;
}

/* ============================= */
/* PRESENTATION MODE            */
/* ============================= */

body.presentation-mode #topic-list,
body.presentation-mode .swipe-indicator,
body.presentation-mode .footer,
body.presentation-mode .change-topic,
body.presentation-mode #help-btn,
body.presentation-mode .type-tabs,
body.presentation-mode #instant-btn {
  display: none !important;
}

/* Desktop presentation */
@media (min-width: 768px) {

body.presentation-mode .card-container {
    position: relative;
    width: 100%;
    max-width: none;
    height: calc(100vh - 140px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;

}

body.presentation-mode .card {
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}

  body.presentation-mode .card {
    width: 75vw;
    max-width: 900px;
    min-height: 60vh;
    padding: 70px 90px;
    border-radius: 32px;
  }
}

/* ============================= */
/* HELP MODAL                   */
/* ============================= */


.help-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.help-modal:not(.hidden) {
  display: flex;
}

.help-content {
  background: white;
  color: #333;
  padding: 30px;
  border-radius: 20px;
  max-width: 420px;
  width: 90%;
  text-align: left;
}


/* ============================= */
/* MOBILE PRESENTATION           */
/* ============================= */

@media (max-width: 768px) {

  body.presentation-mode {
    overflow: hidden;
  }

  body.presentation-mode .card-container {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.presentation-mode .card {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 60px 25px;
    box-shadow: none;
  }

  body.presentation-mode .tools {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    z-index: 2000;
  }

}

/* ============================= */
/* MOBILE HEADER FIX             */
/* ============================= */

@media (max-width: 768px) {

  .top-bar {
    position: static;
    padding: 0 20px;
    margin-top: 15px;
  }

  .top-actions {
    position: static;
    margin-top: 10px;
    justify-content: center;
  }

  .action-group {
    justify-content: center;
  }

  .logo {
  max-width: 400px;
  width: 98%;
filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

}

/* ============================= */
/* TIMER                         */
/* ============================= */

.timer-widget {
  position: fixed;
  bottom: 30px;
  right: 25px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Collapsed state */
.timer-widget.collapsed .timer-panel {
  display: none;
}

/* Circle */

.timer-circle {
  width: 96px;
  height: 96px;
  position: relative;
  cursor: pointer;
  border-radius: 50%;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.12);

  transition: transform 0.2s ease;
}

.timer-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-bg {
  stroke: rgba(255,255,255,0.12);
  stroke-width: 4;
}

.timer-progress {
  stroke: rgba(255,255,255,0.7);
  stroke-width: 4;
  stroke-linecap: round;
}

.timer-bg,
.timer-progress {
  fill: none;
}

#timer-display {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;

  color: rgba(255,255,255,0.85);
}

.timer-label {
  opacity: 0.85;
}

#timer-display .icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

/* Panel */

.timer-panel {
  margin-bottom: 14px;
  display: flex;
  gap: 10px;

  padding: 8px 14px;
  border-radius: 999px; /* FULL pill shape */

  background: rgba(0, 0, 0, 0.14); /* subtle depth */
  backdrop-filter: blur(10px);

  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.timer-panel button {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;

  background: rgba(255,255,255,0.92); /* more solid */
  color: #24427A;
box-shadow: 0 2px 6px rgba(0,0,0,0.15); 
}

.timer-panel button:hover {
  background: white;
}

/* Presentation adjustment */

body.presentation-mode .timer-widget {
  bottom: 40px;
  right: 40px;
}

/* ============================= */
/* HIDE TIMER ON MOBILE NORMAL MODE */
/* ============================= */

@media (max-width: 768px) {
  body:not(.presentation-mode) .timer-widget {
    display: none !important;
  }
}

/* ============================= */
/* FOOTER SEO TEXT – SOFT       */
/* ============================= */

.footer-seo {
  max-width: 520px;      /* narrower = more balanced lines */
  margin: 0 auto 12px auto;
  font-size: 11.5px;
  line-height: 1.6;
  opacity: 0.45;         /* softer */
  text-align: center;
}

.footer-title {
  font-weight: 500;
}

/* ============================= */
/* HIDE TIMER ON MOBILE MODE Completely */
/* ============================= */


@media (max-width: 768px) {
  .timer-widget {
    display: none !important;
  }
}

