@font-face {
  font-family: 'stain_ornaments';
  src: url('../fonts/stains/stainornaments-Regular.woff2') format('woff2'),
    url('../fonts/stains/stainornaments-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


body {
  /* background-color: rgb(235, 235, 235); */
  font-family: "Lora", serif;
  background-image: url("../images/website_background.jpg");
  line-height: 1.3;
}

main {
  display: flex;
  border: 20%;
}

.page-wrapper {
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

h1 {
font-size: 13rem;
margin: 0;
padding: 0;
text-align: center;
}

h2 {
  font-size: 2rem;
}

#abstract {
height: 9%;
width: 50%;
}

#intro {
height: 11%;
width: 63%;
} 

#chapter-0 {
height: 30%;
width: 100%;
}

#chapter-1 {
height: 37%;
width: 100%;
}

#chapter-2 {
height: 40%;
width: 100%;
}

#chapter-3 {
height: 37%;
width: 100%;
}

#epilogue {
height: 15%;
width: 50%;
}

#bibliography {
height: 6%;
width: 22%;
}

nav {
  position: sticky;
  top: 0;
}

ul {
  list-style-type: none;
  margin: 0;
  margin-top: 1rem;
  padding: 0;
}

article {
  width: 25%;
  display: flex;
  flex-direction: column;
}

section {
  display: flex;
  width: 100%;
  height: 100rem;
}

section:nth-of-type(1) {
  align-items: flex-start;
  justify-content: center;
}

section:nth-of-type(2) {
  align-items: flex-start;
  justify-content: flex-end;
}

section:nth-of-type(3) {
  align-items: center;
  justify-content: flex-start;
}

section:nth-of-type(4) {
  align-items: center;
  justify-content: center;
}

section:nth-of-type(5) {
  align-items: center;
  justify-content: flex-end;
}


figure {
  padding: 0;
  margin: 0;
}

img {
  width: 100%;
  height: 100%;
}

figcaption {
  text-align: center;
  color: rgb(255, 255, 255);
  background-color: rgb(0, 0, 0);
}

p{
  text-indent: 10%;
}


article:nth-of-type(1) {
  width: 10%;
}

article:nth-of-type(2) {
  width: 100%;
}


.block::-webkit-scrollbar-thumb {
  background-color: rgb(88, 120, 104);
  border-radius: 10px;
}

.block::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, 0);
  box-shadow: inset 0 0 5px rgb(0, 0, 0);
  border-radius: 10px;
}

.block::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.3rem;

}

.block {
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  -ms-overflow-style: auto;
  scrollbar-width: thin;
  /* border: 2px solid green; */
  width: 35%;
  height: 35rem;
  overflow: scroll;
  overflow-x: hidden;
  padding: 1rem;
  /* aspect-ratio: 4/3; */
}

span {
  font-size: 1rem;
  vertical-align: inherit;
}

a:any-link:hover {
  color: rgb(17, 0, 255);
  text-decoration: line-through;
}

a:any-link {
  text-decoration: none;
  color: rgb(77, 77, 77);
}

.sidenote {
  display: none;
  /* margin-right: -75%; */
  float: right;
  width: 25vw;
  box-sizing: border-box;
  color: whitesmoke;
  background-color: lightgrey
}

.sidenote.active {
  display: inline;
}

.footnote {
  font-size: 5rem;
  font-family: 'stain_ornaments';
}

footer{
  background-color: rgba(255, 255, 255, 0.9);
}

img {
  filter: blur(50px);
  transition: all 250ms;
}

img:hover {
  filter: blur(0);
}

.noblur {
  filter: none;
}


@media screen and (max-width: 900px) {

  .page-wrapper {
    /* padding-right: 0.3rem; */
    /* overflow-x: hidden; */
  }


  main {
    flex-direction: column;
  }

  body {
    /* background-image: none; */
    overflow-x: hidden;
    padding-right: 0.3rem;
  }

  h1 {
    font-size: 7rem;
  }

  main article {
    width: 100% !important;
  }

  main article:first-child {
    position: sticky;
    top: 0;

    nav ul {
      position: relative;
      display: flex;
      gap: 0.5rem;
      width: 100%;
      overflow-x: auto;

      li a {
        white-space: nowrap;
      }
    }
  }

  section:nth-of-type(1) {
    align-items: start;
    justify-content: start;
  }

  section:nth-of-type(2) {
    align-items: start;
    justify-content: start;
  }

  section:nth-of-type(3) {
    align-items: start;
    justify-content: start;
  }

  section:nth-of-type(4) {
    align-items: start;
    justify-content: start;
  }

  section:nth-of-type(5) {
    align-items: start;
    justify-content: start;
  }

  .article {
    height: unset;
  }

  section {
    height: auto !important;
    display: contents;
  }

  .block {
    width: 93%;
    height: unset;
  }

  main {
    width: 100%;
  }

  img.unblur {
    filter: blur(0);
  }

  .sidenote {
    margin: 0;
    width: 80%;
    float: none;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .block::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  #abstract {
    height: 7%;
    width: 45%;
    }
    
    #intro {
    height: 9%;
    width: 60%;
    }
    
    #bibliography {
    height: 10%;
    width: 25%;
    }
}