/* 1. General reset and base styles */
* {
  font-family: "Courier Prime", "Baskerville", serif;
}

a:hover {
  color: var(--yeno-gold);
}

article {
  height: fit-content;
}

h1 {
  font-weight: 1;
}

h3 {
  font-weight: 1;
}

p {
  line-height: 2rem;
  text-align: block;
}

:root {
  --yeno-blue: rgb(127, 224, 224);
  --yeno-pink: rgb(224, 127, 224);
  --yeno-gold: rgb(224, 224, 127);
  --yenno-btn-label: "Get lost in Yeno.";
  --zenno-btn-label: "Quest in Yeno?";
}

.article__h0 {
  font-family: Baskerville;
  font-size: 4rem;
  letter-spacing: 0.2rem;
}

.article__h1 {
  font-family: Baskerville;
  font-size: clamp(1rem, 2vw, 3rem);
  font-weight: none;
  letter-spacing: 0.3rem;
  margin: 0;
  text-align: center;
}

.article__h2 {
  font-family: Baskerville;
  font-size: clamp(1rem, 1.5vw, 3rem);
  font-weight: none;
  letter-spacing: 0.3rem;
  margin-top: 2.5rem;
  margin-bottom: none;
  text-align: center;
}

.article__p-1 {
  text-align: justify;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.article__p {
  text-align: justify;
  line-height: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 1rem;
}

figcaption {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

ul {
  list-style-type: none;
}

/* 1.a Footnotes & Features */

#fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white; /* or any color */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
  z-index: 9999;
}

.inactive {
  display: none;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.footnote-window {
  border: solid 4px var(--yeno-gold);
  display: none;
  position: fixed;
  z-index: 9999;
  font-size: 0.75rem;
  text-align: block;
  max-width: 60%;
  max-height: 40vh;
  line-height: 1.5rem;
  padding: 8px;
  border-radius: 10px;
  transition: 0.5s ease;
  overflow-y: scroll;
}

.footnote-extra-container {
  width: 100%;
  height: auto;
  position: relative;
  padding: 16px;
}

.footnote-window > p {
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

.footnote-window.active {
  display: block;
  pointer-events: auto;
  background: white;
}

.quest-window {
  display: none;
  border: solid 2px var(--yeno-pink);
  padding: 24px;
}

.quest-window.active {
  display: block;
  position: relative;
}

.anchor-link {
  pointer-events: "cursor";
}

.zeno-button {
  border-radius: 50%;
  height: 24px;
  width: 24px;
  border: 2px solid grey;
  transition: 0.4s ease;
  color: var(--yeno-pink);
  background: white;
  position: absolute;
  top: 88%;
  left: 94%;
}

.zeno-button:hover {
  background-color: var(--yeno-pink);
  transform: rotate(60deg);
}

.pdf.tab.active {
  grid-column: 2 / 12;
  grid-row: 2 / 12;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
}

.triangulatable {
  font-size: 1rem;
}

.triangulatable:hover {
  color: gray;
  opacity: 0.75;
  cursor: pointer;
}

.yenno-button {
  border-radius: 50%;
  height: 24px;
  width: 24px;
  border: 2px solid grey;
  transition: 0.4s ease;
  color: var(--yeno-pink);
  background: white;
  position: sticky;
  bottom: 20px;
  left: 0px;
}

.yenno-button::after {
  position: absolute;
  top: 36px;
  right: -20px;
  content: var(--yenno-btn-label);
  display: none;
  transform: rotate(-180deg);
  background: white;
  color: grey;
  padding: 0.66rem 0.5rem 0.5rem 0.5rem;
  border-radius: 4px;
  box-shadow: 3px 3px var(--yeno-blue) inset, 3px 3px var(--yeno-blue) inset;
}

.yenno-button:hover {
  background-color: var(--yeno-pink);
  transform: rotate(180deg);
}

.yenno-button:hover.yenno-button::after {
  display: block;
}

.yenno-button:hover .line {
  background-color: white;
}

.triangle-animated {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 8px;
}

.line {
  position: absolute;
  width: 10px;
  height: 2px;
  background-color: var(--yeno-pink);
  transition: 0.4s ease;
  border-radius: 1px;
}

.line-1 {
  top: 81%;
  left: 4%;
  bottom: 0;
  transform-origin: left center;
  transform: rotate(-60deg);
}

.line-2 {
  top: 81%;
  right: 4%;
  transform-origin: right center;
  transform: rotate(60deg);
}

.line-3 {
  bottom: 0;
  left: 0;
}

.yenno-button:hover > .button-triangle {
  color: white;
}

.button-triangle:hover {
  color: white;
}

.zenno-button {
  border-radius: 50%;
  height: 24px;
  width: 24px;
  border: 2px solid grey;
  transition: 0.4s ease;
  color: var(--yeno-blue);
  background: white;
  position: sticky;
  bottom: 20px;
  left: 42px;
}

.zenno-button::after {
  position: absolute;
  top: 36px;
  right: 24px;
  content: var(--zenno-btn-label);
  display: none;
  transform: rotate(-120deg);
  background: white;
  color: grey;
  padding: 0.66rem 0.5rem 0.5rem 0.5rem;
  border-radius: 4px;
  box-shadow: 3px 3px var(--yeno-pink) inset;
}

.zenno-button:hover.zenno-button::after {
  display: block;
}

.zenno-button:hover {
  background-color: var(--yeno-blue);
  transform: rotate(120deg);
}

.zenno-button:hover .ypsilon-animated {
  border: 2px solid white;
  width: 10px;
  height: 10px;
}

.ypsilon-animated {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 2px;
  border: 2px solid var(--yeno-blue);
  border-radius: 50%;
  transition: 0.5s ease;
  background-color: var(--yeno-blue);
}

/* 1.b Footnote-Links */

#kai-section-opener:hover {
  color: rgb(55, 202, 150);
}

#kokoon-footnote-link:hover {
  color: rgb(214, 169, 92);
}

#mucke-footnote-link {
  font-size: 3rem;
}

#mucke-footnote-link:hover {
  color: rgba(220, 25, 25, 0.926);
}

#pearl-footnote-window-link:hover {
  color: rgb(181, 181, 26);
}

#student-section-footnote-link:hover {
  color: rgb(255, 162, 255);
}

#yenno-to-yenno-footnote-link:hover {
  color: var(--yeno-pink);
}

/* 2. Layout containers */

html {
  overflow-y: scroll;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  height: 100vh;
  padding: 2rem;
  flex-grow: 1;
  overflow-y: auto;
}

footer {
  display: flex;
  justify-content: center;
}

#kanji-footnote-id:hover {
  color: rgb(255, 120, 255);
}

/* 3. Navigation */

a {
  text-decoration: none;
  color: black;
  cursor: pointer;
  transition: 0.3s ease;
}

#zaj-section-link:hover {
  color: violet;
}

#equalizer-section-link:hover {
  color: yellowgreen;
}

#z-ai-section-link:hover {
  color: deepskyblue;
}

#s-z-link:hover {
  color: rgb(163, 11, 87);
}

#vom-rande-link:hover {
  color: rgb(122, 123, 226);
}

#hero-link:hover {
  color: rgb(190, 18, 104);
}

#max-tribute-link:hover {
  color: hotpink;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  list-style: none;
  font-size: 1.5rem;
}

.ham-menu {
  display: none;
}

/* 4. Sections */

/* 4.x Cover Section */

body.locked::before {
  content: "";
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("../images-and-else/images/yenno-lives-cover-image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

body.locked {
  position: relative;
  overflow: hidden;
}

#cover-section {
  width: 100%;
  height: 100%;
  z-index: 11000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
  grid-row: 2 / 12;
  grid-column: 2 / 12;
}

.riddle-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
  text-align: center;
  margin-left: 5%;
  margin-right: 5%;
  max-width: 35%;
  padding: 25px;
}

.introductory-text-container {
  display: none;
}

#cocky-response-container {
  display: none;
}

#cocky-response-container.active {
  display: block;
  max-width: fit-content;
  height: fit-content;
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  position: relative;
}

.intro-button {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  text-align: center;
  padding: 2px;
  border: none;
  box-sizing: border-box;
  background-color: white;
  color: black;
  transition: 0.2s ease;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
}

.intro-button:hover {
  background-color: black;
  color: white;
}

.intro-button.backward {
  right: 40px;
}

#entry-question-container {
  max-width: fit-content;
  margin-top: 25px;
  position: relative;
}

#entry-input {
  max-width: 85%;
  border-radius: 5px;
  box-sizing: border-box;
  border: 1px solid gray;
  height: 30px;
  max-width: max-content;
}

/* 4.a hero-section */

#hero {
  grid-column: 2 / span 5;
  grid-row: 3 / span 2;
  align-self: start;
}

#yeno-question {
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: 1rem;
  line-height: 1.3;
  cursor: pointer;
  transition: 0.8s ease;
  white-space: nowrap;
  overflow: hidden;
}

.moveable-letter {
  transition: transform 2s ease;
  display: inline-block;
}

/* 4.b max-tribute-section */

#max-tribute {
  grid-column: 2 / 12;
  grid-row: 2 / 12;
  position: relative;
  width: 100%;
  height: 100%;
}

.max-tribute-grid {
  display: inline-grid;
  height: 100%;
  width: 100%;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
}

#max-img-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
  grid-column: 9 / 13;
  grid-row: 1 / 1;
  grid-row-start: auto;
  align-self: start;
  margin: 0;
}

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

.epitaph {
  text-align: center;
  margin-top: 30px;
  line-height: 1.25rem;
}

#maxi-img-footnote-link:hover {
  color: rgb(32, 179, 220);
}
.tribute-text {
  grid-column: 1 / 9;
  margin-top: 3.2em;
}

/* 4.c S-Z-Section */

#s-z-section.tab.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  grid-column: 3 / 11;
  grid-row: 2 / 12;
}

.contributor-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  width: 100%;
  row-gap: 2.5rem;
}

.portrait {
  display: flex;
  flex-direction: column;
  column-gap: 2rem;
}

.portrait-img {
  display: flex;
  flex-direction: column;
  height: auto;
  display: inline;
}

.portrait-img > figcaption {
  font-size: 1.25rem;
}

.portrait-img > figcaption > a {
  font-size: 1.25rem;
}

.portrait-img > img {
  border-radius: 2%;
}

.antonio-container {
  display: flex;
  flex-direction: row;
}

#library-link {
  font-size: 3rem;
}

#library-link:hover {
  color: rgb(146, 9, 9);
}

/*4.d Vom Rande Section */

#vom-rande-section.tab.active {
  grid-column: 2 / 12;
  grid-row: 2 / 12;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
}

#letter-from-the-brink-section-link {
  align-self: center;
  justify-self: center;
  font-size: 3rem;
}

#letter-from-the-brink-section-link:hover {
  color: rgb(184, 7, 184);
}

.pdf-canvas {
  width: 100% !important;
  height: auto !important;
  pointer-events: none;
}

.brief-textbody {
  order: 2;
  width: 80%;
  display: flex;
  flex-direction: column;
}

.brief-textbody > p {
  text-align: block;
  line-height: 3.5rem;
  font-size: 1.5rem;
}

#letter-head {
  font-size: 1rem;
  margin-bottom: 1rem;
  margin-top: 3rem;
}

#letter-address {
  margin-top: 0;
}

#veganer-wurstsalat-footnote-link:hover {
  color: rgb(161, 147, 0);
}

#mangoitische-strukturen-link:hover {
  color: rgb(17, 161, 161);
}

#codex-dzenianus-link:hover {
  color: rgb(255, 230, 0);
  cursor: pointer;
}

.wortistische-akrobatik {
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 16rem;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  margin-top: 2.5rem;
  line-height: 3.5rem;
  max-height: 36rem;
  align-self: center;
}

#sinn-akrobatik-letzter-vers {
  font-size: 2rem;
  align-self: center;
  justify-self: center;
}

#carlitos-marc-footnote-link:hover {
  color: rgb(235, 60, 130);
}

#zenno-footnote-link:hover {
  color: rgb(59, 179, 215);
}

#inventador-cansado-footnote-link:hover {
  color: rgb(179, 6, 6);
}

#el-inventor-cansado-link:hover {
  color: rgb(132, 222, 22);
}

#jenes-footnote-link:hover {
  color: rgb(55, 118, 196);
}

#eu-footnote-link:hover {
  color: rgb(0, 255, 166);
}

/* 4.e Žaj Section */

#zaj-section.tab.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: block;
  grid-column: 2 / 12;
  grid-row: 2 / 12;
}

#opening-prayer > p {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  line-height: 3rem;
  text-align: center;
}

/* 4.f Z.AI Section */

#z-ai-section.tab.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: justify;
  grid-column: 2 / 12;
  grid-row: 2 / 12;
}

.congress-simulator {
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in;
}

#congress-initiator {
  background-color: white;
  border: solid rgb(210, 116, 210);
  padding: 0.75rem;
  font-weight: 500;
  border-radius: 15px;
  transition: 150ms ease;
  margin-top: 15px;
  margin-bottom: 15px;
  transition: 0.4s ease;
}

#congress-initiator:hover {
  box-shadow: 1px 1px 1px 1px rgb(210, 116, 210);
}

#congress-terminator {
  display: none;
  background-color: white;
  border: solid rgb(210, 116, 210);
  padding: 0.75rem;
  font-weight: 500;
  border-radius: 15px;
  transition: 150ms ease;
}

#congress-terminator:hover {
  box-shadow: 1px 1px 1px 1px rgb(210, 116, 210);
}

/* 4.g Equalizer Section */

#equalizer-section.tab.active {
  grid-column: 2 / 12;
  grid-row: 2 / 12;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  align-content: center;
  justify-content: center;
  position: relative;
}

#poem-container {
  font-size: 3rem;
  text-align: center;
  margin-top: 2rem;
}

#verse-wisdom-container {
  font-size: 1rem;
  display: none;
  text-align: center;
}

#first-verse {
  margin: 0;
  padding: 0;
  font-size: 3rem;
}

#first-verse-equalizer {
  display: none;
}

.input-window {
  display: none;
  justify-self: flex-start;
  align-self: center;
  height: auto;
  max-width: 12rem;
  position: fixed;
  text-align: center;
  top: 16%;
  margin-bottom: 2rem;
}

.input-window.active {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

#verse-input-window-link {
  color: rgb(212, 13, 13);
}

#nein-footnote-link:hover {
  color: rgb(0, 124, 161);
}

#verse-reset-link {
  color: #662cec;
}

/* Library Section */

#library-section.tab.active {
  display: flex;
  flex-direction: column;
  grid-row: 1 / 12;
  grid-column: 4 / 10;
}

.library-catalogue {
  display: flex;
  flex-direction: column;
  row-gap: 4rem;
  padding: 8px;
}

.library-entry {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.library-entry > p,
.library-entry > a {
  margin: 0;
}

/* Letter-from-the-Brink-Section */

#letter-from-the-brink-section {
  display: none;
}

#letter-from-the-brink-section.active {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  justify-items: center;
  grid-row: 2 / 12;
  grid-column: 2 / 12;
  height: fit-content;
  padding-bottom: 120px;
}

.text-article {
  position: relative;
}

.text-article > h1 {
  margin-bottom: 4rem;
}

.text-article > h1,
.text-article > p {
  justify-self: center;
}

.regular-poem-container {
  justify-self: center;
  margin-bottom: 8rem;
  text-align: center;
}

.exchangeable {
  color: var(--yeno-pink);
  cursor: pointer;
}

.triangulation-selection-menu {
  display: none;
}

.triangulation-selection-menu.active {
  border-radius: 50%;
  display: block;
  position: fixed;
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 999;
  background-color: white;
  visibility: hidden;
}

.triangulation-selection-menu .option {
  background: lightblue;
  border: 1px solid black;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  pointer-events: all;
  transition: 0.2s;
  visibility: visible;
}

.triangulation-selection-menu .option:hover {
  background: #f0f0f0;
}

#longing-while-footnote-link:hover {
  color: rgb(200, 111, 111);
}

#brink-footnote-link:hover {
  color: rgb(10, 214, 10);
}

#karlhans-gor-footnote-link:hover {
  color: rgb(82, 82, 186);
}

#step-by-step-footnote-link:hover {
  color: rgb(255, 184, 5);
}

#wittgenstein-footnote-link:hover {
  color: rgb(207, 139, 139);
}

#vulgar-yennoism-footnote-link:hover {
  color: rgb(24, 196, 248);
}

#empty-space-footnote-link:hover {
  color: rgb(247, 10, 247);
}

.triangulate-button {
  color: var(--yeno-pink);
  background-color: white;
  border: 1px solid var(--yeno-gold);
  font-size: 1rem;
  border-radius: 4px;
  display: block;
  position: absolute;
  height: 24px;
  padding: 4px;
  left: 86%;
  top: 1%;
  transition: 0.4s ease;
}

.triangulate-button:hover {
  border: 1px solid var(--yeno-pink);
  color: var(--yeno-blue);
  cursor: pointer;
}

/* Kai Section */

#kai-section.tab.active {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  align-content: center;
  justify-content: center;
  align-items: center;
  justify-items: center;
  grid-row: 2 / 12;
  grid-column: 2 / 12;
  height: fit-content;
  padding-bottom: 120px;
}

/* Manifest Section */

#manifest-section.tab.active {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-items: center;
  grid-row: 2 / 12;
  grid-column: 2 / 12;
  max-height: fit-content;
}

.h1-mani {
  font-size: 2rem;
  text-align: center;
}

.h2-mani {
  font-size: 1.5rem;
  font-weight: normal;
  text-align: center;
  line-height: 2rem;
}

.li-mani {
  list-style-type: none;
  font-size: 3rem;
}

.li-mani-rom {
  font-size: 2rem;
  list-style-type: none;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.ol-mani-rom {
  padding: 1.5rem;
}

.li-p {
  font-size: 2rem;
  margin-left: 48px;
}

#gesetze-li {
  padding-bottom: 1.5rem;
}

/* Student Section */

#student-section.tab.active {
  grid-row: 1 / 12;
  grid-column: 1 / 12;
  background: no-repeat
    url("../images-and-else/images/fundus/pearl-from-bubbles-resized.png");
  background-position: 50% 50%;
  background-size: contain;
}

#student-app {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.orbit-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-origin: center;
}

.orbit-container:hover {
  animation-play-state: paused;
}

.student-item {
  position: absolute;
  /* transition: transform 3s ease-in-out; */
  transform: translate(-50%, -50%);
  cursor: pointer;
  white-space: nowrap;
  padding: 8px;
  /* position: fixed; */
  position: absolute;
  font-size: 1rem;
}

@keyframes orbit-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-rotate-reverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.orbit-1 {
  animation: orbit-rotate 6s linear infinite;
}

.orbit-1 .student-item {
  transform: translate(-50%, -50%) translateX(20vw);
}

.orbit-2 {
  animation: orbit-rotate-reverse 8s linear infinite;
}

.orbit-2 .student-item {
  transform: translate(-50%, -50%) translate(21vw);
}

.orbit-3 {
  animation: orbit-rotate 10s linear infinite;
}

.orbit-3 .student-item {
  transform: translate(-50%, -50%) translateX(22vw);
}

.orbit-4 {
  animation: orbit-rotate 12s linear infinite;
}

.orbit-4 .student-item {
  transform: translate(-50%, -50%) translateX(18vw);
}

.orbit-5 {
  animation: orbit-rotate 14s linear infinite;
}

.orbit-5 .student-item {
  transform: translate(-50%, -50%) translateX(19vw);
}

.orbit-6 {
  animation: orbit-rotate-reverse 16s linear infinite;
}

.orbit-6 .student-item {
  transform: translate(-50%, -50%) translateX(15vw);
}

.orbit-7 {
  animation: orbit-rotate 18s linear infinite;
}

.orbit-7 .student-item {
  transform: translate(-50%, -50%) translateX(16vw);
}

.orbit-8 {
  animation: orbit-rotate 20s linear infinite;
}

.orbit-8 .student-item {
  transform: translate(-50%, -50%) translateX(17vw);
}

.orbit-9 {
  animation: orbit-rotate-reverse 22s linear infinite;
}

.orbit-9 .student-item {
  transform: translate(-50%, -50%) translateX(23vw);
}

.orbit-10 {
  animation: orbit-rotate-reverse 11s linear infinite;
}

.orbit-10 .student-item {
  transform: translate(-50%, -50%) translateX(24vw);
}

.orbit-11 {
  animation: orbit-rotate 8s linear infinite;
}

.orbit-11 .student-item {
  transform: translate(-50%, -50%) translateX(25vw);
}

.orbit-12 {
  animation: orbit-rotate 7s linear infinite;
}

.orbit-12 .student-item {
  transform: translate(-50%, -50%) translateX(26vw);
}

.orbit-13 {
  animation: orbit-rotate-reverse 15s linear infinite;
}

.orbit-13 .student-item {
  transform: translate(-50%, -50%) translateX(27vw);
}

.orbit-14 {
  animation: orbit-rotate 12s linear infinite;
}

.orbit-14 .student-item {
  transform: translate(-50%, -50%) translateX(28vw);
}

.orbit-15 {
  animation: orbit-rotate 17s linear infinite;
}

.orbit-15 .student-item {
  transform: translate(-50%, -50%) translateX(29vw);
}

#jhei-disciple-img {
}

/* Quiz-Section */

#quiz-section.tab.active {
  grid-row: 1 / 11;
  grid-column: 2 / 11;
}

#quiz-intro-outro-container {
  display: none;
}

#quiz-intro-outro-container.active {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 90vw);
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  text-align: justify;
  padding: 16px;
  border: 3px solid var(--yeno-gold);
  border-radius: 8px;
  z-index: 1000;
  box-sizing: border-box;
  animation: drop-down-intro 0.3s ease-in-out;
  animation-fill-mode: forwards;
  opacity: 1;
  background-color: white;
}

.quiz-intro-outro-para {
  margin: 4px 4px 4px 4px;
  line-height: 1.5;
  padding-bottom: 8px;
}

@keyframes drop-down-intro {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -60%);
  }
}

.quiz-intro-outro-close-button {
  position: absolute !important;
  top: 6px;
  right: 12px;
  background: none;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  color: var(--yeno-pink);
  cursor: pointer;
  z-index: 1001;
}

.quiz-intro-outro-close-button:hover {
  background-color: var(--yeno-pink);
  color: var(--yeno-blue);
}

.quiz-button {
  width: auto;
  font-size: 1.25rem;
  height: 32px;
  padding: 4px;
  margin: 4px;
  border-radius: 4px;
  border: 2px solid var(--yeno-blue);
  color: black;
  background-color: white;
  transition: 0.2 ease;
  flex-shrink: 0;
}

.quiz-button:hover {
  background-color: var(--yeno-blue);
  color: white;
}

.quiz-header {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 60px;
}

.quiz-container {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 60px;
}

.question-container {
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;
  padding: 0.75rem;
  font-weight: bold;
  border: 4px solid var(--yeno-pink);
  border-radius: 8px;
  transition: 0.2s ease;
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 40px;
  position: relative;
  /* Ensure minimum height for proper spacing */
  min-height: 400px;
}

.quiz-cocky-reply-container {
  position: absolute;
  /* Use relative units instead of vh */
  width: min(18vh, 120px, 25%);
  height: min(18vh, 120px, 25%);
  min-width: 80px;
  min-height: 80px;
  padding: 0.75rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid var(--yeno-gold);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  z-index: 10;
  font-size: 0.8rem;
  line-height: 1.2;
  container-type: inline-size;
}

.answer-container {
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: justify;
  padding: 32px;
  border: 3px solid var(--yeno-blue);
  border-radius: 8px;
  transition: 0.2s ease;
  cursor: pointer;
  /* Ensure proper overflow handling */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.answer-container.top-left:hover {
  box-shadow: inset 4px 8px 1px var(--yeno-pink);
  border: 3px solid var(--yeno-pink);
}

.answer-container.top-right:hover {
  box-shadow: inset -4px 8px 1px var(--yeno-pink);
  border: 3px solid var(--yeno-pink);
}

.answer-container.bottom-left:hover {
  box-shadow: inset 4px -8px 1px var(--yeno-pink);
  border: 3px solid var(--yeno-pink);
}

.answer-container.bottom-right:hover {
  box-shadow: inset -4px -8px 1px var(--yeno-pink);
  border: 3px solid var(--yeno-pink);
}

/* Use dynamic mask sizes that scale with container */
.answer-container.top-left {
  mask: radial-gradient(
    circle at bottom right,
    transparent min(9vh, 60px, 20%),
    black calc(min(9vh, 60px, 20%) + 1px)
  );
  padding-right: min(12vh, 80px, 25%);
}

.answer-container.top-right {
  mask: radial-gradient(
    circle at bottom left,
    transparent min(9vh, 60px, 20%),
    black calc(min(9vh, 60px, 20%) + 1px)
  );
  padding-left: min(12vh, 80px, 25%);
}

.answer-container.bottom-left {
  mask: radial-gradient(
    circle at top right,
    transparent min(9vh, 60px, 20%),
    black calc(min(9vh, 60px, 20%) + 1px)
  );
  padding-right: min(12vh, 80px, 25%);
}

.answer-container.bottom-right {
  mask: radial-gradient(
    circle at top left,
    transparent min(9vh, 60px, 20%),
    black calc(min(9vh, 60px, 20%) + 1px)
  );
  padding-left: min(12vh, 80px, 25%);
}

.outro-container {
  position: static;
  width: 100%;
  height: fit-content;
  border: 3px solid var(--yeno-gold);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Maxi-Lethe-Section */

#max-lethe-section {
  grid-row: 2 / 12;
  grid-column: 2 / 12;
}

.max-lethe-img-container {
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: contain;
}

#max-lethe-img {
  width: 50%;
}

/* Contact Form Section */

#contact-form-section {
  grid-row: 2 / 12;
  grid-column: 3 / 11;
}

.form-section-header {
  margin-top: 12px;
  margin-bottom: 24px;
  font-weight: normal;
}

.form-section-header-two {
}

.form-section-header-two,
.form-section-header-three {
  margin-bottom: 6px;
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: normal;
}

.form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  width: 100%;
}

#yenno-contact-form {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  align-items: center;
  margin-top: 36px;
}

#yenno-text-input-label {
  margin-bottom: 18px;
}

#yenno-text-input {
  width: 100%;
  height: auto;
  border: 3px solid var(--yeno-gold);
  border-radius: 8px;
  box-sizing: border-box;
}

#yenno-text-input:focus {
  border: 3px solid var(--yeno-pink);
  border-color: var(--yeno-pink);
  outline: none;
  outline-offset: 1px;
}

#contact-form-submit-input {
  font-size: 1.25rem;
  padding: 8px;
  background-color: white;
  border: 3px solid var(--yeno-blue);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

#contact-form-submit-input:hover {
  color: white;
  background-color: var(--yeno-blue);
}

/* 5. Footer */

#copyright-label {
  color: rgb(139, 67, 139);
}

#copyright-label a {
  color: rgb(139, 67, 139);
}

#copyright-label a:hover {
  color: rgb(209, 192, 201);
}

/* 6. Utility Classes and Media Queries */

@media (min-width: 1780px) {
  .portrait {
    font-size: 2.5rem;
    flex-wrap: wrap;
  }

  .portrait-img {
    zoom: 100%;
  }
}

@media (max-height: 1100px) {
  .input-window {
    position: unset;
  }
}

@media (max-width: 1100px) {
  .portrait {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .article__p-1 {
    text-align: left;
  }

  header {
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    text-align: center;
    font-size: 3rem;
    transition: 0.3s ease;
    z-index: 9999;
  }

  header.active {
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: black;
  }

  header.active > nav > ul > li {
    color: white;
  }

  header.active > nav > ul > li > a {
    color: white;
  }

  .ham-menu {
    height: 50px;
    width: 50px;
    margin-left: 1rem;
    position: absolute;
    display: block;
  }

  .ham-menu.locked {
    display: none;
  }

  .ham-menu span {
    height: 5px;
    width: 100%;
    background-color: black;
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s ease;
    z-index: 10000;
  }

  .ham-menu span:nth-child(1) {
    top: 25%;
  }

  .ham-menu span:nth-child(3) {
    top: 75%;
  }

  .ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background-color: white;
  }

  .ham-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background-color: white;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .footnote-window.active {
    position: fixed;
    bottom: 0;
    max-width: 60%;
    background: white;
    padding: 1rem;
    max-height: 40vh;
    overflow-y: auto;
    display: block;
    z-index: 9999;
  }

  body.locked::before {
    left: 0;
    width: 100vw;
    height: 100vh;
    background-position: center;
    transform: none;
  }

  #cover-section {
    justify-content: center;
  }

  .riddle-container {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    padding: 0;
    border-radius: 50%;
  }

  #yeno-question {
    display: flex;
    flex-direction: column;
    white-space: auto;
    overflow: auto;
  }

  .moveable-letter {
    display: inline-block;
  }

  .input-window {
    position: static;
  }

  #poem-container {
    font-size: 1.5rem;
  }

  .portrait {
    display: flex;
    width: auto;
  }

  .portrait-img {
    zoom: 25%;
  }

  .portrait-img > figcaption {
    font-size: 2rem;
  }

  .portrait-img > figcaption > a {
    font-size: 2rem;
  }

  #verse-input-window {
    max-width: 75px;
  }

  #first-verse {
    font-size: 4rem;
    line-height: 4rem;
  }

  #letter-from-the-brink-section-link {
    font-size: 1.25rem;
  }

  .triangulation-selection-menu.active {
    border-radius: 4px;
    display: block;
    position: fixed;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 9999;
    background-color: white;
  }

  #max-tribute-section {
    display: flex;
    flex-direction: column;
  }

  .max-tribute-grid {
    display: flex;
    flex-direction: column;
  }

  .article__p,
  .article__p-1 {
    text-align: left;
  }

  .kais-text-img {
    zoom: 50%;
  }

  #opening-prayer > p {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  #library-link {
    font-size: 1rem;
  }

  #student-section.tab.active {
    background: no-repeat
      url("/images-and-else/images/fundus/pearl-from-bubbles-resized.png");
    background-position: 50% 50%;
    background-size: contain;
  }

  #student-app {
    transform-origin: center;
  }

  .student-item {
    font-size: 0.75rem;
  }

  .orbit-1 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-2 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-3 .student-item {
    transform: translate(-50%, -50%) translateX(30vw);
  }

  .orbit-4 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-5 .student-item {
    transform: translate(-50%, -50%) translateX(30vw);
  }

  .orbit-6 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-7 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-8 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-9 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-10 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-11 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-12 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-13 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-14 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .orbit-15 .student-item {
    transform: translate(-50%, -50%) translateX(25vw);
  }

  .max-lethe-img-container {
    max-width: 100%;
    width: 100%;
  }

  #max-lethe-img {
    width: 100%;
    height: 100%;
  }

  #quiz-section.tab.active {
    max-width: 10rem;
    display: flex;
    flex-direction: column;
  }

  .quiz-header {
    font-size: 1.5rem;
  }

  .quiz-container {
    display: flex;
    flex-direction: column;
    row-gap: 50px;
  }

  #quiz-intro-outro-container.active {
    text-align: left;
    font-size: 14px;
    width: 95vw;
    max-height: 85vh;
    overflow: scroll;
  }

  .quiz-intro-outro-para {
    margin: 4px 4px 8px 4px;
    padding-bottom: 8px;
  }

  .quiz-header {
    font-size: 1.5rem;
    margin: 10vw;
    text-align: center;
  }

  .question-container {
    font-size: 1rem;
    line-height: 1.25rem;
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    width: 100%;
  }

  .answers-grid {
    display: flex;
    flex-direction: column;
  }

  .quiz-cocky-reply-container {
    border: 3px solid var(--yeno-gold);
    border-radius: 8px;
    position: static;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    text-align: left;
    transform: translate(0%, 0%);
    font-size: 0.75rem;
  }

  .answer-container {
    font-size: 0.75rem;
    line-height: 1.5rem;
    text-align: left;
    padding-top: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    width: 100%;
  }

  .answer-container.bottom-left,
  .answer-container.bottom-right,
  .answer-container.top-right,
  .answer-container.top-left {
    mask: none;
    padding-top: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    overflow: wrap;
  }
}

@media (max-width: 350px) {
  #cocky-response-container {
    font-size: 0.75rem;
  }

  footer {
    display: none;
  }

  section {
    width: min-content;
  }

  .portrait-img {
    zoom: 15%;
  }

  .max-lethe-img-container {
    width: 150px;
    height: auto;
  }

  #max-lethe-img {
    width: 100%;
    height: 100%;
  }

  #student-app {
  }

  #quiz-intro-outro-container {
    width: 98vw;
    max-height: 90vh;
    padding: 8px;
    font-size: 12px;
  }
}

@media (max-height: 800px) and (min-width: 1100px) {
  .student-item {
    font-size: 0.8rem;
  }

  .orbit-1 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-2 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-3 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-4 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-5 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-6 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-7 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-8 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-9 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-10 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-11 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-12 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-13 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-14 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }

  .orbit-15 .student-item {
    transform: translate(-50%, -50%) translateX(20vh);
  }
}
