:root {
  --backgroundColor: #080808;
  --weakWhite: rgb(180, 180, 180);
  --myGray: rgb(128, 128, 128);
}

body{
  background-color: var(--backgroundColor);
  color: white;
  font-family: "Ubuntu", sans-serif;
}

button:hover{
  cursor: pointer;
}

div.container{
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

p {
  color: white;
  margin-left: auto;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
  font-size: 20px;
}

p.title{
  font-size: 80px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  font-family: 'Courier New';
  font-weight: 500;
}

span.tooltip {
  position: relative;
  width: fit-content;
  display: inline-block;
}

span.tooltip .tooltipText{
  font-size: 15px;
  visibility: hidden;
  background-color: var(--weakWhite);
  color: var(--backgroundColor);
  text-align: center;
  border-radius: 2px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  top: 110%;
  width: 100px;
}

.tooltip:hover .tooltipText {
  visibility: visible;
  opacity: 1;
}

div.intro {
  justify-content: center;
  align-items: center;
}

div.crawlingPages {
  display:block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

div.navbar{
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

div.navbar hr{
  border: none;
  background-color: white;
  height: 1px;
  margin:0;
}

ul.navbar{
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
}

ul.navbar li{
  margin-left: auto;
  margin-right: auto;
}

ul.navbar li a {
  font-size: 20px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  color: white;
  text-align: center;
  padding: 10px 50px;
  text-decoration: none;
}

ul.navbar li a:hover{
  background-color: #1d1d1d;
}

div.pageJump {
  width: 300px;
  margin-left: auto;
  margin-right: auto;
}

ul.pageJump{
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
}

ul.pageJump li{
  margin-left: auto;
  margin-right: auto;
}

ul.pageJump li a {
  justify-content: center;
  font-size: 20px;
  display: block;
  color: white;
  text-align: center;
}

div.opener {
  vertical-align: middle;
  margin-left: auto;
  margin-right: auto;
  justify-content: space-around;
  display: grid;
  grid-template-areas: 
    'coverImg openerText';
  padding: 15px;
  grid-template-columns: 40% auto;
}

div.opener img {
  display: flex;
  grid-area: coverImg;
  margin-left: auto;
  margin-right: auto;
  max-width: 400px;
}

div.opener div.basicInfo {
  display: block;
  margin: auto;
  padding: 20px 20px;
}

div.opener div.pageButtons {
  display: flex;
  justify-content: center;
  place-items: center;
}

div.pageButtons {
  display:flex;
  flex-direction: column;
}

div.pageButtons hr {
  width: 280px;
  height: 1px;
  border: none;
  background-color: rgb(102, 102, 102);
}

div.pageButtons .ribbonGroup {
  display: flex;
  margin: 10px 20px;
  flex-direction: row;
  align-items: center;
}

div.pageButtons .ribbon {
  background-color: white;
  font-size: 25px;
  margin: 0px 5px;
  width: 150px;
}

div.pageButtons .latest{
  border-radius: 15px;
  padding: 15px 35px;
  margin: 25px 15px;
}

div.pageButtons button{
  background-color: white;
  font-family: "Courier Prime", monospace;
  font-size: 30px;
  padding: 10px 20px;
  border: white;
}

div.pageButtons button:hover{
  background-color:rgb(192, 192, 192);
}

div.pageButtons div.leftRibbon{
  background-color: rgb(204, 204, 204);
  height: 80px;
  width: 40px;
  clip-path: polygon(100% 0, 100% 100%, 0% 100%, 80% 50%, 0% 0%);
  position: relative;
  left: 10px;
  top: 5px;
  z-index: -1;
}

div.pageButtons div.rightRibbon{
  background-color: rgb(204, 204, 204);
  height: 80px;
  width: 40px;
  clip-path: polygon(100% 0, 20% 50%, 100% 100%, 0 100%, 0% 0%);
  position: relative;
  right: 10px;
  top: 5px;
  z-index: -1;
}

div.ribbonGroup .book {
  position: relative;
  text-align: center;
}

div.ribbonGroup .book:hover {
  cursor: pointer;
  opacity: 0.8;
}

div.ribbonGroup .book img {
  height: 100px;
  width: 220px;
}

div.ribbonGroup .book .bookCenter {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 25px;
  transform: translate(-50%, -60%);
  color: black;
  font-family: "Courier Prime", monospace;
}

img.titlecard{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width:1000px;
}

img.page {
  display: block;
  margin-left:auto;
  margin-right:auto;
  max-width: 1000px;
}

div.pageNavigation{
  display: flex;
  justify-content: center;
  align-items: center;
}

div.pageNavigation button{
  height: 90px;
  width: 90px;
  justify-content: center;
  text-align: center;
  margin: 40px 20px;
}

div.pageNavigation button{
  border: none;
  border-radius: 20px;
  height: 50px;
  width: 80px;
  justify-content: center;
  text-align: center;
  margin: 10px 20px;
  background-color: rgb(180, 180, 180);
  font-weight: 700;
  font-size: 40px ;
}

div.pageNavigation .dudButton{
  background-color: rgb(61, 61, 61);
}

.dudButton:hover {
  cursor: default;
}

div.pageNavigation .activeButton:hover{
  background-color: rgb(255, 255, 255);
}

div.pageNavigation .pageNumber{
  font-size: 30px;
  margin: 20px;
  color: rgb(255, 255, 190);
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

div.transcriptWrapper{
  width: 800px;
  margin-left: auto;
  margin-right: auto;
}

div.transcript{
  white-space: pre-wrap;
  border: white;
  border-style: solid;
  border-color: white;
  border-width: 1px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  background-color: #080808;
}

img.page {
  width: 800px;
}

img.page:hover {
  cursor: pointer;
}

div.infiniteScroll{
  display: flex;
  margin-left: auto;
  margin-right: auto;
  flex-direction: column;
  gap: 20px;
  width: 800px;
}

div.archiveWrapper{
  width: 90%; 
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
}

div.archiveWrapper a{
  text-decoration: none;
}

div.archiveWrapper div.act {
  outline: 2px solid rgb(255, 255, 255);
  display: flex;
}

div.actWrapper {
  outline: 4px solid rgb(255, 255, 255);
}

div.act div.actDropdown {
  font-family: "Impact", sans-serif;
  left: 0;
  color: rgb(187, 187, 187);
  margin: auto 20px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 20px;
  padding-left: 20px;
}

div.act div.actName {
  position: relative;
  margin: auto;
  font-weight: bold;
  font-size: 30px;
}

div.act div.actInfiniteScroll {
  position: relative;
  margin: 10px;
  margin-left: 25px;
  background-color: rgb(128, 128, 128);
  border-radius: 10px;
  padding: 10px;
  width: 90px;
  color: black;
  right: 0%;
  text-align: center;
}

div.act div.actInfiniteScroll:hover {
  background-color: white;
  cursor: pointer;
}

div.chapterWrapper {
  display: flex;  
  outline: 2px solid rgb(255, 255, 255);
  translate: 0px 2px;
}

div.chapterWrapper .chapter {
  text-align: center;
  position: relative;
  outline: 2px solid rgb(255, 255, 255);
  padding: 25px;
}

div.chapterWrapper .chapter .chapterInfiniteScroll{
  background-color: rgb(128, 128, 128);
  color: black;
  width: auto;
  padding: 10px;
  border-radius: 10px;
  font-size: 20px;
  width: fit-content;
}

div.chapterWrapper .chapter .chapterInfiniteScroll:hover {
  background-color: white;
  cursor: pointer;
}

div.chapterWrapper .pageList {
  padding: 20px 40px;
}

div.chapterWrapper div.pageList img {
  width: 100px;
}

div.chapterWrapper .pageList {
  display: flex;
  flex-wrap: wrap;
}

div.pageList .pageWrapper {
  display: block;
  margin: 5px 10px;
  text-align: center;
}

.pageWrapper a{
  margin: auto;
  color: rgb(204, 204, 204);
  font-weight: 600;
  text-decoration: none;
}

div.chapter a{
  position: absolute;
  width: fit-content;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

div.chapter .chapterName{
  font-weight: 800; 
  font-size: 25px;
  color: rgb(255, 80, 80);
  margin-top: 25%;
}

.aboutWrapper{
  margin: auto;
  width: 60%;
}

.aboutWrapper a{
  color: white;
}

.aboutWrapper h1{
  font-family: 'Courier New', Courier, monospace;
  font-size: 40px;
}

.aboutWrapper .twoColumns{
  text-align: center;
  font-size: 20px;
  display: flex;
  flex-direction: row;
}

.aboutWrapper img {
  height: 350px;
}

.twoColumns .visuals {
  margin: 15px 100px;
  text-align: center;
  justify-content: center;
}

.twoColumns .text {
  margin: auto;
}

img.blackScratchesBottom {
  margin-bottom: 0px;
  width: 100%;
  z-index: -99;
  position: fixed;
  bottom: -10%;
  left: 0;
  opacity: 40%;
}

img.blackScratchesTop {
  margin-bottom: 0px;
  width: 100%;
  z-index: -99;
  position: fixed;
  top: -10%;
  left: 0;
  opacity: 40%;
  transform: rotate(180deg);
}

@media screen and (max-width: 600px) {
  div.container{
    width: 100%;
  }

  ul.navbar{
    display: block;
  }

  img.page {
    width: 450px;
  }

  div.transcriptWrapper {
    width: 300px;
  }

  div.chapterWrapper {
    display: block;
  }

  div.chapterWrapper .chapterName {
    margin-top: 20px;
  }

  div.chapterWrapper .pageList {
    padding: 10px;
    display: flex;
  }

  div.pageList .pageWrapper {
    margin: auto;
  }
}

@media screen and (max-width: 1200px) and (min-width: 600px) { /* Changes in 600px and 1200px */
  div.transcriptWrapper{
    width: 500px;
  }

  img.page {
    width: 600px;
  }
}

@media screen and (max-width: 1200px) {
  div.opener {
    display: block;
    justify-content: baseline;
    grid-template-areas: 
    'pageButtons'
    'openerText'
    'coverImg';
  }

  .aboutWrapper{
    width: 80%;
  }

  .aboutWrapper .twoColumns{
    display: block;
  }
}

/* Infinite Scroll Shennanigans */

@media screen and (max-width: 1200px) and (min-width: 700px) { 
  div.infiniteScroll {
    width: 700px;
  }
}

@media screen and (max-width: 700px) {
  div.infiniteScroll {
    width: 100%;
  }
}