@font-face {
  font-family: "didai";
  src: url("../fonts/didai.woff2") format("woff2");
}

@font-face {
  font-family: "diatype-medium";
  src: url("../fonts/diatype-medium.woff2") format("woff2");
}

@font-face {
  font-family: "diatype-thin";
  src: url("../fonts/diatype-thin.woff2") format("woff2");
}

/* General Styles */
body {
  margin: 0;
  box-sizing: border-box;
  height: 100vh;
  font-family: "didai", sans-serif;
  font-weight: 100;
}

/* section {
  will-change: filter;
}  */




@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.page-wrapper {
  display: flex;
  height: 100vh;
}

header {
  width: 21vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1000;
  overflow-y: hidden;
  font-family: sans-serif;
}

main {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  width: calc(100vw - 21vw - 21vw);

  padding-left: 8rem;
  padding-right: 8rem;
  font-family: "diatype-medium", sans-serif;
  font-size: 1.2rem;
  z-index: 10;
  /* hyphens: auto; */
}

footer {
  height: 100vh;
  width: 21vw;
  overflow-y: auto;
  overflow-x: hidden;

  text-align: right;
}

footer p {
  text-align: left;
  margin-bottom: 1rem;
}

h2 {
  height: 2vh;
  margin: 10px;
  margin-left: 0;
  font-size: 1.2rem;
  font-family: "didai", sans-serif;
  font-variant-caps: all-small-caps;
  font-weight: 100;
  color: rgb(0, 0, 0);
  cursor: pointer;
}

header h2 {
  margin: 10px;
  margin-left: 20px;
}

nav {
  height: calc(100vh - 10vh);
  width: 100%;
  display: flex;
}

nav p {
  margin: 0;
  font-family: "Diatype-Thin";
  font-size: 1.2rem;
}

.index {
  height: calc(100vh - 10vh);
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.index a {
  display: block;
  width: fit-content;
  height: fit-content;
}

.index a.active {
  color: #000;
}

.word {
  display: block;
}

.circle {
  transform: translate(-50%, -50%);
  margin-left: 28px;
  margin-top: 10px;
  border: 1px solid black;
  width: 25px;
  height: 25px;
  position: absolute;
  border-radius: 80px;
  pointer-events: none;
  transition: all 0.5s;
}

i {
  font-family: "Diatype-Thin" !important;
}

.sekcja {
  margin-bottom: 5rem;
}

.sekcja-epilogue {
  margin-bottom: 10rem;
}

/* Section Styles */
#abstract,
#intro,
#chapter-1,
#chapter-2,
#chapter-3,
#chapter-4,
#epilogue {
  display: flex;
  width: fit-content;
  height: auto;
}

#abstract p,
#intro p,
#chapter-1 p,
#chapter-2 p,
#chapter-3 p,
#chapter-4 p,
#epilogue p {
  margin-inline-end: 1em;
}

section.chapter h2,
section.chapter p,
section.chapter figure {
  filter: blur(5px);
  transition: filter 1s ease;
  visibility: hidden;
}
section.chapter h2.visible,
section.chapter p.visible,
section.chapter figure.visible {
  visibility: visible;
}

/* Text Styles */
p {
  margin: 1px;
  max-width: 60ch;
}

i {
  font-family: "Diatype-Thin";
}

.indent {
  text-indent: 4rem;
  display: block;
}

a {
  font-size: 0.8rem !important;
  margin: 0.8rem;
  color: rgb(187, 187, 187);
  text-decoration: none;
  transition: all 0.8s;
}

a:hover {
  color: rgb(0, 0, 0);
  transition: all 0.8s;
}

h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

ul {
  margin: 0;
  list-style-type: none;
}

figure {
  margin-block-start: 0;
  margin-block-end: 0em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 10px;
}

figure a {
  margin: 0;
}

figure img {
  transition: all 1s;
  width: 100%;
  height: auto;
  left: 0;
}

figcaption a {
  margin: 0;
  margin-block-start: 5px;
  margin-block-end: 5px;
  filter: blur(0px) !important;
  color: black !important;
}

figcaption {
  line-height: 15px;
}

a.landing.copy,
a.landing {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.landing img {
  margin-top: 290px;
  width: 50%;
  height: auto;
  transform: rotate(90deg);
  overflow: hidden;
  z-index: 10000;
}

.copy img {
  margin-top: -60px;
  width: 50%;
}

/* Toggle Button */
#toggle-btn {
  cursor: pointer;
}

/* Footer Div */
footer div {
  margin: 0;
  cursor: pointer;
}

/* Terms Styles */
#terms {
  cursor: pointer;
  text-align: left;
  display: none;
  transition: opacity 250ms ease-in-out 0ms;
  opacity: 0;
  margin-bottom: 0;
}

#terms.active {
  display: block;
}

#terms.transition {
  opacity: 1;
}

.accordion {
  font-family: "Diatype-Thin";
  font-size: 1.5rem;
  color: rgb(205, 205, 205);
  width: 100%;
  margin: 0;
  transition: all 0.5s ease;
  cursor: pointer;
}

.active,
.accordion:hover {
  color: rgb(0, 0, 0);
  cursor: pointer;
}

.panel {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  max-width: 35ch;
  font-family: "Diatype-Thin";
  font-size: 0.85rem;
  color: rgb(0, 0, 0);
  margin-bottom: 5px;
  transition: max-height 0.2s ease-out;
}

/* Resize Animation Stopper */
.resize-animation-stopper,
.resize-animation-stopper * {
  transition: none !important;
}

.littlefoot__button {
  --button-background-color: #cbcbcb;
  --popover-width: 20px;
}

div.littlefoot__content {
  filter: blur(0px) !important;
  --popover-background-color: white;
  --popover-max-height: fit-content;
  --popover-width: 20px;
  visibility: visible;
}

div.littlefoot__content p {
  text-indent: 0rem !important;
  filter: blur(0px) !important;
  font-family: "diatype-medium", sans-serif;
  font-size: 0.8rem;
  visibility: visible;
}

div.littlefoot__content a {
  margin: 0;
}

.mySlides {
  display: none;
}
img {
  vertical-align: middle;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: rgb(0, 0, 0);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: transparent;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
  transition: all 0.5s ease;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: #ffffff98;
}

/* Caption text */
.text {
  font-size: 0.8rem !important;
  color: #000000;
  width: 100%;
  font-size: 12px;
  padding-bottom: 3px;
  padding-top: 8px;
  width: 100%;
  text-align: left;
  max-width: unset;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #000000;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 6px;
  width: 6px;
  margin: 3px;

  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

#thank-you {
  font-size: 1rem;
  font-family: "Diatype-Thin", sans-serif;
  /* font-variant-caps: all-small-caps; */
  font-weight: 100;
  color: rgb(0, 0, 0);
  font-variant-numeric: oldstyle-nums;
}

.small-caps {
  font-size: 1.2rem;
  font-family: "didai", sans-serif;
  font-variant-caps: all-small-caps;
  font-weight: 100;
  color: rgb(0, 0, 0);
  font-variant-numeric: oldstyle-nums;
}

.credits {
  padding: 0.5rem;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

div.littlefoot__content {
  z-index: 20000 !important;
}

/* Extra small devices (phones, 600px and down) */

@media only screen and (max-width: 844px) {
  .page-wrapper {
    display: block;
    height: auto;
  }

  .circle {
    position: relative !important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    width: 25px;
    height: 25px;
    z-index: 30000;
    overflow: visible;
    border: 1px solid black;
    border-radius: 80px;
    pointer-events: none;
  }

  header,
  footer {
    width: 100vw;
    height: 10vh;
    overflow: auto;
    position: fixed;
    left: 0;
    z-index: 1000;
  }

  header {
    position: fixed;
    top: 0;
    margin: 0;
    background-color: rgba(255, 255, 255, 0);
  }

  .accordion {
    justify-content: center;
    text-align: center;
    color: rgb(136, 136, 136);
    transition: all 0.5s ease;
    cursor: pointer;
  }

  .panel {
    background-color: transparent;
    align-self: center;
    /* text-align: center; */
    padding: unset;
    width: unset;
    margin: auto;
  }

  p.panel {
    width: 100%;
    height: auto;
    left: unset;
    align-self: center;
    /* text-align: center; */
  }

  nav {
    width: unset;
    height: unset;
  }

  .index {
    position: fixed;

    width: 100vw;
    height: unset;
    flex-direction: row;
    background-color: white;
  }

  div.index {
    width: 100vw;
    height: auto;
  }

  .word {
    display: none;
  }

  main {
    top: unset;
    width: 100vw;
    box-sizing: border-box;
    overflow: auto;
    height: auto;
    padding-left: 1.5em;
    padding-right: 1.5em;
  }

  h2 {
    scroll-margin-top: 80px;
  }

  h2#abstract-title {
    margin-top: 80px;
  }

  footer {
    bottom: 0;
    text-align: center;
    flex-direction: column;
    display: flex;
    padding-bottom: 0.5rem;
  }

  footer:has(.active) {
    height: 100vh;

    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.357) !important;
  }
  footer:has(.active) h2 {
    padding-block: 0.5rem;
  }
  footer:has(.active) h2 + div {
    transition: all 0.5s ease;
    cursor: pointer;

    overflow-y: auto;
  }

  p {
    margin: 1px;
    max-width: 40ch;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */

@media only screen and (min-width: 300px) {
  .page-wrapper {
    display: flex;
    height: auto;
  }

  main {
    padding-left: 0.9em;
    padding-right: 0.9em;

  }

  .indent{
    text-indent: 2rem;

  }

  p {
    margin: 1px;
    max-width: 60ch;
  }

  footer {
    bottom: 0;
    text-align: center;
    flex-direction: column;
    display: flex;
    padding-bottom: 0.5rem;
  }

  footer:has(.active) {
    height: 100vh;

    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.357) !important;
  }
  footer:has(.active) h2 {
    padding-block: 0.5rem;
  }
  footer:has(.active) h2 + div {
    transition: all 0.5s ease;
    cursor: pointer;

    overflow-y: auto;
  }

  div.littlefoot__content {
    margin-bottom: 40px;
  }

  
}

@media only screen and (min-width: 400px) {
  .page-wrapper {
    display: flex;
    height: auto;
  }

  main {
    padding-left: 1.5em;
    padding-right: 1.5em;
  }

  p {
    margin: 1px;
    max-width: 60ch;
  }

  footer {
    bottom: 0;
    text-align: center;
    flex-direction: column;
    display: flex;
    padding-bottom: 0.5rem;
  }

  footer:has(.active) {
    height: 100vh;

    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.357) !important;
  }
  footer:has(.active) h2 {
    padding-block: 0.5rem;
  }
  footer:has(.active) h2 + div {
    transition: all 0.5s ease;
    cursor: pointer;

    overflow-y: auto;
  }

  div.littlefoot__content {
    margin-bottom: 40px;
  }
}

@media only screen and (min-width: 300px) and (max-width: 700px) {
  .landing img {
    margin-top: 200px;
    width: 100%;
    height: auto;
    transform: rotate(90deg);
    overflow: hidden !important;
    z-index: 10000;
  }

  .copy img {
    margin-top: unset;
  }
}

@media only screen and (min-width: 700px) and (max-width: 950px) {
  .landing img {
    margin-top: 300px !important;
    width: 70%;
    height: auto;
    transform: rotate(90deg);
    overflow: hidden;
    z-index: 10000;
  }

  .copy img {
    margin-top: -20px !important;
  }
}

@media only screen and (min-width: 950px) and (max-width: 1200px) {
  .landing img {
    margin-top: 150px;
    width: 52%;
    height: auto;
    transform: rotate(90deg);
    overflow: hidden;
    z-index: 10000;
  }

  .copy img {
    margin-top: -20px !important;
  }
}

@media only screen and (min-width: 300px) and (max-width: 1200px) {
  .accordion {
    justify-content: center;
    text-align: center;
    color: rgb(136, 136, 136);
    transition: all 0.5s ease;
    cursor: pointer;
  }

  .panel {
    background-color: transparent;
    align-self: center;
    padding: unset;
    width: unset;
    margin: auto;
  }

  p.panel {
    width: 100%;
    height: auto;
    left: unset;
    align-self: center;
  }

  .active,
  .accordion:hover {
    color: rgb(0, 0, 0);
    cursor: pointer;
  }
}

@media only screen and (min-width: 450px) {
  .page-wrapper {
    display: flex;
    height: auto;
  }

  main {
    padding-left: 2em;
    padding-right: 2em;
  }

  footer {
    position: fixed;
    height: auto;
    width: 100vw;
    left: 0;
    bottom: 0;
    text-align: center;
    z-index: 1000;
    flex-direction: column;
    display: flex;
    align-items: center;
  }

  footer:has(.active) {
    height: 100vh;

    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.357) !important;

    z-index: 1001;
    flex-direction: column;
    display: flex;
  }
  footer:has(.active) h2 {
    padding-block: 0.5rem;
  }
  footer:has(.active) h2 + div {
    transition: all 0.5s ease;
    cursor: pointer;
    overflow-y: auto;
  }
}

@media only screen and (min-width: 500px) {
  .page-wrapper {
    display: flex;
    height: auto;
  }

  main {
    padding-left: 2.5em;
    padding-right: 2.5em;
  }

  p {
    margin: 1px;
    max-width: 40ch;
  }

  div.littlefoot__content p {
    max-width: unset;
  }

  footer {
    position: fixed;
    height: auto;
    width: 100vw;
    left: 0;
    bottom: 0;
    text-align: center;
    z-index: 1000;
    flex-direction: column;
    display: flex;
    align-items: center;
  }

  footer:has(.active) {
    height: 100vh;

    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.357) !important;

    z-index: 1001;
    flex-direction: column;
    display: flex;
  }
  footer:has(.active) h2 {
    padding-block: 0.5rem;
  }
  footer:has(.active) h2 + div {
    transition: all 0.5s ease;
    cursor: pointer;
    overflow-y: auto;
  }
}

@media only screen and (min-width: 550px) {
  .page-wrapper {
    display: flex;
    height: auto;
  }

  main {
    padding-left: 3em;
    padding-right: 3em;
  }

  p {
    margin: 1px;
    max-width: 40ch;
  }

  footer {
    position: fixed;
    height: auto;
    width: 100vw;
    left: 0;
    bottom: 0;
    text-align: center;
    z-index: 1000;
    flex-direction: column;
    display: flex;
    align-items: center;
  }

  footer:has(.active) {
    height: 100vh;

    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.357) !important;

    z-index: 1001;
    flex-direction: column;
    display: flex;
  }
  footer:has(.active) h2 {
    padding-block: 0.5rem;
  }
  footer:has(.active) h2 + div {
    transition: all 0.5s ease;
    cursor: pointer;
    overflow-y: auto;
  }
}

@media only screen and (min-width: 600px) {
  .page-wrapper {
    display: flex;
    height: auto;
  }

  main {
    padding-left: 3.5em;
    padding-right: 3.5em;
  }

  p {
    margin: 1px;
    max-width: 50ch;
  }

  footer {
    position: fixed;
    height: auto;
    width: 100vw;
    left: 0;
    bottom: 0;
    text-align: center;
    z-index: 1000;
    flex-direction: column;
    display: flex;
    align-items: center;
  }

  footer:has(.active) {
    height: 100vh;

    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.357) !important;

    z-index: 1001;
    flex-direction: column;
    display: flex;
  }
  footer:has(.active) h2 {
    padding-block: 0.5rem;
  }
  footer:has(.active) h2 + div {
    transition: all 0.5s ease;
    cursor: pointer;
    overflow-y: auto;
  }
}

@media only screen and (min-width: 650px) {
  .page-wrapper {
    display: flex;
    height: auto;
  }

  main {
    padding-left: 3.5em;
    padding-right: 3.5em;
  }

  p {
    margin: 1px;
    max-width: 45ch;
  }

  footer {
    position: fixed;
    height: auto;
    width: 100vw;
    left: 0;
    bottom: 0;
    text-align: center;
    z-index: 1000;
    flex-direction: column;
    display: flex;
    align-items: center;
  }

  footer:has(.active) {
    height: 100vh;

    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.357) !important;

    z-index: 1001;
    flex-direction: column;
    display: flex;
  }
  footer:has(.active) h2 {
    padding-block: 0.5rem;
  }
  footer:has(.active) h2 + div {
    transition: all 0.5s ease;
    cursor: pointer;
    overflow-y: auto;
  }
}

@media only screen and (min-width: 700px) {
  .page-wrapper {
    display: flex;
    height: auto;
  }

  main {
    padding-left: 4em;
    padding-right: 4em;
  }

  p {
    margin: 1px;
    max-width: 45ch;
  }

  footer {
    position: fixed;
    height: auto;
    width: 100vw;
    left: 0;
    bottom: 0;
    text-align: center;
    z-index: 1000;
    flex-direction: column;
    display: flex;
    align-items: center;
  }

  footer:has(.active) {
    height: 100vh;

    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.357) !important;

    z-index: 1001;
    flex-direction: column;
    display: flex;
  }
  footer:has(.active) h2 {
    padding-block: 0.5rem;
  }
  footer:has(.active) h2 + div {
    transition: all 0.5s ease;
    cursor: pointer;
    overflow-y: auto;
  }
}

@media only screen and (min-width: 768px) {
  div.littlefoot__content {
    margin-bottom: unset;
  }
}

@media only screen and (max-width: 300px) {
  .page-wrapper {
    display: flex;
    height: auto;
  }

  header {
    width: 20vw;
    height: 100vh;
    top: 0;
    margin: 0;
    background-color: rgba(255, 255, 255, 0);
    overflow-y: hidden;
    scroll-behavior: none;
  }

  main {
    top: unset;
    width: 100vw;
    box-sizing: border-box;
    overflow: auto;
    height: 100vh;
    padding-left: 4em;
    padding-right: 4em;
  }

  p {
    margin: 1px;
    max-width: 40ch;
  }

  footer {
    position: fixed;
    height: auto;
    width: 100vw;
    left: 0;
    bottom: 0;
    text-align: center;
    z-index: 1000;
    flex-direction: column;
    display: flex;
    align-items: center;
  }

  footer:has(.active) {
    height: 100vh;

    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.357) !important;

    z-index: 1001;
    flex-direction: column;
    display: flex;
  }
  footer:has(.active) h2 {
    padding-block: 0.5rem;
  }
  footer:has(.active) h2 + div {
    transition: all 0.5s ease;
    cursor: pointer;
    overflow-y: auto;
  }

  .accordion {
    justify-content: center;
    text-align: center;
    color: rgb(136, 136, 136);
    transition: all 0.5s ease;
    cursor: pointer;
    width: 100vw;
  }

  p.accordion {
    width: 100vw;
    justify-content: center;
    text-align: center;
    color: rgb(136, 136, 136);
    transition: all 0.5s ease;
    cursor: pointer;
  }

  p.accordion.active {
    width: 100vw;
  }

  .panel {
    background-color: transparent;
    align-self: center;
    padding: unset;
    width: unset;
    margin: auto;
  }

  p.panel {
    width: unset;
    height: auto;
    left: unset;
    align-self: center;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 768px) {
  footer {
    position: fixed;
    height: auto;
    width: 100vw;
    left: 0;
    bottom: 0;
    text-align: center;
    z-index: 1000;
    flex-direction: column;
    display: flex;
    align-items: center;
  }

  footer:has(.active) {
    height: 100vh;

    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.357) !important;

    z-index: 1001;
    flex-direction: column;
    display: flex;
  }
  footer:has(.active) h2 {
    padding-block: 0.5rem;
  }
  footer:has(.active) h2 + div {
    transition: all 0.5s ease;
    cursor: pointer;
    overflow-y: auto;
  }

  .circle {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    width: 25px;
    height: 25px;
    z-index: 30000;
    overflow: visible;
    border: 1px solid black;
    border-radius: 80px;
    pointer-events: none;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .page-wrapper {
    display: flex;
    height: 100vh;
  }

  header {
    width: 21vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1000;
    overflow-y: hidden;
    font-family: sans-serif;
  }

  main {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
    width: calc(100vw - 21vw - 21vw);

    padding-left: 8rem;
    padding-right: 8rem;
    font-family: "diatype-medium", sans-serif;
    font-size: 1.2rem;
    z-index: 10;
  }

  footer {
    height: 100vh;
    width: 21vw;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: right;
    left: unset;
    position: relative;
    right: 0;
    align-items: unset;
  }

  footer:has(.active) h2 {
    padding-block: 0rem;
  }

  footer p {
    text-align: left;
    margin-bottom: 1rem;
  }

  h2 {
    height: 2vh;
    margin: 10px;
    margin-left: 0;
    scroll-margin-top: 10px;
    font-size: 1.2rem;
    font-family: "didai", sans-serif;
    font-variant-caps: all-small-caps;
    font-weight: 100;
    color: rgb(0, 0, 0);
    cursor: pointer;
  }

  header h2 {
    margin: 10px;
    margin-left: 20px;
  }

  nav {
    height: calc(100vh - 10vh);
    width: 100%;
    display: flex;
  }

  nav p {
    margin: 0;
    font-family: "Diatype-Thin";
    font-size: 1.2rem;
  }

  .index {
    height: calc(100vh - 10vh);
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .index a {
    display: block;
    width: fit-content;
    height: fit-content;
  }

  .index a.active {
    color: #000;
  }

  .word {
    display: block;
  }

  .circle {
    transform: translate(-50%, -50%);
    margin-left: 28px;
    margin-top: 10px;
    border: 1px solid black;
    width: 25px;
    height: 25px;
    position: absolute;
    border-radius: 80px;
    pointer-events: none;
    transition: all 0.5s;
  }

  i {
    font-family: "Diatype-Thin" !important;
  }

  /* Section Styles */
  #abstract,
  #intro,
  #chapter-1,
  #chapter-2,
  #chapter-3,
  #chapter-4,
  #epilogue {
    display: flex;
    width: fit-content;
    height: auto;
  }

  #abstract p,
  #intro p,
  #chapter-1 p,
  #chapter-2 p,
  #chapter-3 p,
  #chapter-4 p,
  #epilogue p {
    margin-inline-end: 1em;
  }

  section.chapter h2,
  section.chapter p,
  section.chapter figure {
    filter: blur(5px);
    transition: filter 1s ease;
  }

  /* Text Styles */
  p {
    margin: 1px;
    max-width: 50ch !important;
  }

  i {
    font-family: "Diatype-Thin";
  }

  .indent {
    text-indent: 2.5rem;
    display: block;
  }

  a {
    font-size: 0.8rem !important;
    margin: 0.8rem;
    color: rgb(187, 187, 187);
    text-decoration: none;
    transition: all 0.8s;
  }

  a:hover {
    color: rgb(0, 0, 0);
    transition: all 0.8s;
  }

  h2 {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  ul {
    margin: 0;
    list-style-type: none;
  }

  figure {
    margin-block-start: 0;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 10px;
  }

  figure a {
    margin: 0;
  }

  figure img {
    transition: all 1s;
    width: 100%;
    height: auto;
    left: 0;
  }

  figcaption a {
    margin: 0;
    margin-block-start: 5px;
    margin-block-end: 5px;
    filter: blur(0px) !important;
    color: black !important;
  }

  figcaption {
    line-height: 15px;
  }

  /* Toggle Button */
  #toggle-btn {
    cursor: pointer;
  }

  /* Footer Div */
  footer div {
    margin: 0;
    cursor: pointer;
  }

  /* Terms Styles */
  #terms {
    cursor: pointer;
    text-align: left;
    display: none;
    transition: opacity 250ms ease-in-out 0ms;
    opacity: 0;
    margin-bottom: 0;
  }

  #terms.active {
    display: block;
  }

  #terms.transition {
    opacity: 1;
  }

  .accordion {
    font-family: "Diatype-Thin";
    font-size: 1.5rem;
    color: rgb(205, 205, 205);
    width: 100%;
    margin: 0;
    transition: all 0.5s ease;
    cursor: pointer;
    text-align: left;
  }

  p.accordion {
    text-align: left;
  }

  .active,
  .accordion:hover {
    color: rgb(0, 0, 0);
    cursor: pointer;
  }

  .panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    max-width: 35ch;
    font-family: "Diatype-Thin";
    font-size: 0.85rem;
    color: rgb(0, 0, 0);
    margin-bottom: 5px;
    transition: max-height 0.2s ease-out;
    text-align: left;
  }

  p.panel {
    text-align: left;
    max-width: 30ch;
    max-height: auto;
  }
}

/* @media (min-width: 1200px) {
  section.chapter {
    will-change: filter;
  }
} */



  div.littlefoot__content {
    /* Reset any compositing layer issues */
    transform: translateZ(0);
    z-index: 30000 !important;
    /* bottom: 0 !important;
    margin-bottom: 0 !important; */
    
  }
  
  div.littlefoot__content p {
    text-indent: 0rem !important;
    filter: blur(0px) !important;
    /* Add hardware acceleration for the footnotes */
    transform: translateZ(0);
    font-family: "diatype-medium", sans-serif;
    font-size: 0.8rem;
    /* z-index: 30000 !important; */
    /* bottom: 0 !important;
    margin-bottom: 0 !important */
  }




/* Fix the littlefoot conflict */


html::after {
  position: fixed;
  inset: 0;

  content: "";

  animation: fadeOut 2s forwards;
  pointer-events: none;
  background: rgb(255, 255, 255);
  z-index: 1000000;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}
