html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

.index-body {
  background-color: #6fae2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;

}

.center-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin-top: 2rem;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.rotating-link-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px; /* adjust to your layout */
}

.rotating-link-wrap {
  position: relative;
  width: 100%;
  height: 290px; /* the circle needs room — adjust to taste */
}

.rotating-link {
  position: absolute;
  font-family: 'Knewave', system-ui;
  font-size:clamp(26px, 4vw, 44px);
  text-decoration: none;
  color: #191414;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: left 1.1s cubic-bezier(.65,0,.35,1),
              top 1.1s cubic-bezier(.65,0,.35,1),
              font-size 1.1s cubic-bezier(.65,0,.35,1);
}

.rotating-link:hover {
  color: #ef53da;
}

@media (max-width: 600px) {
  .rotating-link-wrap {
    height: 320px;
    max-width: 78vw;
  }

  .rotating-link {
    white-space: normal;
    max-width: 120px;
    text-align: center;
    line-height: 1.05;
  }
}

@media (max-width: 480px) {
  .rotating-link-wrap {
    max-width: 78vw;
  }

  .rotating-link {
    white-space: normal;
    max-width: 120px;
    text-align: center;
    line-height: 1.05;
  }
}

.quiz-back-link {
  position: absolute;
  z-index: 20;
  top: 2rem;
  left: 2rem;
  font-family: "Covered By Your Grace", cursive;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #b7d24a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.quiz-back-link:hover {
  color: #ef53da;
}
.book-back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-family: "Covered By Your Grace", cursive;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #191414;
  text-decoration: none;
  transition: color 0.3s ease;
}

.book-back-link:hover {
  color: #b7d24a;
}
footer {
  position: fixed;
  bottom: 0;
  font-size: 12px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 2em;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
}

footer a {
  text-decoration: none;
  color: #0f0f0f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, sans-serif;
  padding: 0 1em;
}

.quiz-body {
  display: block;
  min-height: auto;
}

.footer--static {
  position: static;
}

.footer--static a {
  text-decoration: none;
  color: #ef53da;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, sans-serif;
  padding: 0 1em;
}

/* ---------- Stoic Club quiz v2 ---------- */

.qz-frame {
  max-width: 620px;
  margin: 2rem auto;
  min-height: 620px;
  background: #ef53da;
  border-radius: 22px;
  padding: 2.5rem 1.75rem 5.5rem;
  position: relative;
  overflow: hidden;
  /*  background-image:
    linear-gradient(0deg, rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px); */
  background-size: 36px 36px;
}

@media (max-width: 600px) {
  .qz-frame {
    margin-top: 4.5rem;
  }
}

.qz-tags {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 2.25rem;
}

.qz-tags span {
  font-family: "Staatliches", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: #191414;
}

.qz-progress {
  font-family: "Staatliches", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #191414;
  opacity: 0.65;
  margin-bottom: 0.5rem;
}

.qz-question {
  font-family: "Staatliches", sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: #191414;
  margin: 0 0 2rem;
}

.qz-options {
  display: flex;
  flex-direction: column;
}

.qz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.18);
  padding: 1.1rem 0;
  text-align: left;
  cursor: pointer;
}

.qz-option:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.18);
}

.qz-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: #b7d24a;
  clip-path: polygon(50% 0%, 61% 10%, 75% 2%, 80% 18%, 95% 15%, 90% 30%, 100% 40%, 85% 48%, 95% 60%, 80% 62%, 82% 78%, 68% 72%, 65% 90%, 50% 78%, 35% 90%, 32% 72%, 18% 78%, 20% 62%, 5% 60%, 15% 48%, 0% 40%, 10% 30%, 5% 15%, 20% 18%, 25% 2%, 39% 10%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Staatliches", sans-serif;
  font-size: 0.95rem;
  color: #191414;
}

.qz-option-text {
  font-family: "Staatliches", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #191414;
}

.qz-option.qz-picked .qz-badge {
  background: #191414;
  color: #ef53da;
}

.qz-option.qz-picked .qz-option-text {
  opacity: 0.75;
}

.qz-feedback {
  margin-top: 1.5rem;
  border-radius: 14px;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}

.qz-feedback.show {
  max-height: 400px;
  opacity: 1;
  padding: 1.25rem 1.4rem;
}

.qz-feedback-tag {
  display: block;
  font-family: "Staatliches", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.qz-feedback-text {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, monospace;
  font-size: 0.95rem;
  line-height: 1.55;
}

.qz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.qz-next {
  font-family: "Staatliches", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #191414;
  color: #ef53da;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  cursor: pointer;
}

.qz-next:disabled {
  opacity: 0.4;
  cursor: default;
}

.qz-score {
  font-family: "Staatliches", sans-serif;
  font-size: 0.9rem;
  color: #191414;
  opacity: 0.7;
}

.qz-score-feedback {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, monospace;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #191414;
  margin: 1rem 0 0;
  max-width: 480px;
}

.qz-ribbon {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 14px;
  transform: rotate(-4deg);
  background: #b7d24a;
  padding: 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
}

.qz-ribbon span {
  font-family: "Staatliches", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: #191414;
  margin: 0 1rem;
}

.qz-complete-image {
  display: none;
  width: min(380px, 70%);
  margin: 2.5rem auto 1rem;
}

.qz-complete-image.show {
  display: block;
}

.flip-card {
  perspective: 1400px;
  height: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  transition: height 0.3s ease;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
  border-radius: 14px;
}

.flip-card-front {
  transform: rotateY(0deg);
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.flip-card-back {
  transform: rotateY(180deg);
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 1.5rem 1.25rem;
  background: #262626;
  color: #eee;
  cursor: pointer;
}

.flip-card.flipped .flip-card-front {
  transform: rotateY(-180deg);
}

.flip-card.flipped .flip-card-back {
  transform: rotateY(0deg);
}

.flip-card-back p {
  line-height: 1.55;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, monospace;
}

.flip-card-back--right {
  background: #1f3d0e;
  color: #d9edb8;
}

.flip-card-back--wrong {
  background: #3d0e35;
  color: #f3c9ec;
}

.reveal-tag {
  font-family: "Neue Montreal", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0;
}

.flip-card-back--right .reveal-tag { color: #b7d24a; }
.flip-card-back--wrong .reveal-tag { color: #ef53da; }

/* ---------- Stoic or Not Stoic — gen-z reversed quiz skin ---------- */

.sn-frame {
  width: 100%;
  padding: 2.5rem clamp(1rem, 4vw, 3rem) 3rem;
  position: relative;
}

.sn-title {
  font-family: "Staatliches", sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: #fdfbf1;
  margin: 0 0 0.75rem;
  text-align: center;
}

.sn-subtitle {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, monospace;
  font-size: 0.95rem;
  color: #b7d24a;
  margin-bottom: 2.5rem;
  text-align: center;
}

.sn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 24px;
}

.sn-statement {
  font-family: "Staatliches", sans-serif;
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: #fdfbf1;
  margin: 0 0 1.25rem;
}

.sn-choices {
  display: flex;
  flex-direction: column;
}

.sn-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 0.75rem 0;
  text-align: left;
  cursor: pointer;
}

.sn-row:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sn-row-badge {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #ef53da;
  clip-path: polygon(50% 0%, 61% 10%, 75% 2%, 80% 18%, 95% 15%, 90% 30%, 100% 40%, 85% 48%, 95% 60%, 80% 62%, 82% 78%, 68% 72%, 65% 90%, 50% 78%, 35% 90%, 32% 72%, 18% 78%, 20% 62%, 5% 60%, 15% 48%, 0% 40%, 10% 30%, 5% 15%, 20% 18%, 25% 2%, 39% 10%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Staatliches", sans-serif;
  font-size: 0.8rem;
  color: #191414;
}

.sn-row-text {
  font-family: "Staatliches", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fdfbf1;
}

.sn-row.sn-right .sn-row-badge { background: #b7d24a; }
.sn-row.sn-wrong .sn-row-badge { background: #fdfbf1; color: #191414; }

.sn-page .stoic-back-link {
  color: #ef53da;
  z-index: 20;
}

.sn-page .stoic-back-link:hover {
  color: #b7d24a;
}

.sn-page .quiz-wrap {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  align-items: center;
}

.sn-page .sn-frame {
  margin: auto 0;
}

@media (max-width: 680px) {
  .sn-frame {
    padding: 5rem 1rem 2.5rem;
  }
}

.stoic-back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-family: "Covered By Your Grace", cursive;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ef53da;
  text-decoration: none;
  transition: color 0.3s ease;
}

.stoic-back-link:hover {
  color: #b7d24a;
}

.quote-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh; /* Keeps everything perfectly centered on the screen */
  padding: 2rem;
}

.sisyphus-decor {
  position: fixed;
  left: 6rem;
  bottom: 6rem;
  width: 200px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 700px) {
  .sisyphus-decor {
    width: 90px;
    left: 1rem;
    bottom: 5rem;
  }
}

/* The Quote Text */
.stoic-quote {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, monospace;
  font-size: 2.25rem;          
  font-weight: 400;           
  line-height: 1.3;
  letter-spacing: -0.03em;     
  color: #ef53da;
  max-width: 800px;            
  margin: 0 0 1rem 0;         
}

/* The Author Text */
.stoic-author {
  font-family: "Staatliches", sans-serif;
  font-weight: 200;
  font-style: normal;
  font-size: 1rem;
  color: #737373;            
  text-transform: lowercase;   
  letter-spacing: 0.05em;
}

.genz-button {
  margin-top: 2.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: lowercase;
  background-color: #1f3d0e;
  color: #6fae2e;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-radius: 0px; /* Sharp, edgy corners */
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.genz-button:hover {
  
  background-color: #b7d24a;
}

.genz-button:active {
  transform: scale(0.98); /* Subtle click shrink effect */
}

/* Container holds everything relative to the viewport */
.container {
  position: relative;
  width: 100%;
  min-height: 80vh; /* Adjust based on your header/footer heights */
  margin: 0 auto;
  overflow: hidden; /* Prevents unwanted scrollbars from rotations */
}

/* Central Typography */
.center-content {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.center-content h1 {
  font-size: clamp(2.75rem, 12vw, 6rem);
  letter-spacing: 2px;
  margin: 0 0 10px 0;
  color: #191414;
  font-family: "Staatliches", sans-serif;
}

.center-content p {
  font-family: "Staatliches", sans-serif;
  font-size: clamp(0.7rem, 2.4vw, 1rem);
  letter-spacing: 1px;
  color: #191414;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.35);
}

/* Global Book Styles */
.book {
  position: absolute;
  width: clamp(88px, 20vw, 170px);
  max-width: 140px; 
  height: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease; 
}

.book:hover {
  transform: scale(1.05) !important; 
  cursor: pointer;
}

/* Individual Book Placements & Rotations */
.book-top-left {
  top: 10%;
  left: 8%;
  transform: rotate(-18deg);
}

.book-top-right {
  top: 10%;
  right: 18%;
  transform: rotate(22deg);
}

.book-mid-left {
  top: 42%;
  left: 8%;
  transform: rotate(-25deg);
}

.book-center-bottom {
  bottom: 10%;
  left: 45%;
  transform: rotate(4deg);
}

.book-mid-right {
  top: 32%;
  right: 8%;
  transform: rotate(28deg);
}

.book-bottom-right {
  bottom: 8%;
  right: 15%;
  transform: rotate(-15deg);
}