* {
  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 {
  margin-top: 5px;
  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));
}

/* ============================= */
/* 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;
}

body.topic-active #topic-list {
  opacity: 0.4;
}

#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);
}

/* ============================= */
/* 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 #help-btn,
body.presentation-mode .type-tabs {
  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-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  background: white;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.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: 100dvw;
    height: 100vh;
    border-radius: 0;
    padding: 60px 25px;
  }

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


.presentation-banner {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;

  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 14px 16px;
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  font-size: 0.85rem;
  z-index: 3000;

  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.presentation-banner button {
  background: #0EA5A4;
  border: none;
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: white;
  cursor: pointer;
}

.close-banner {
  cursor: pointer;
  opacity: 0.7;
}

.hidden {
  display: none;
}

}

/* ============================= */
/* 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;
}