/* Style the top navigation bar */
.topnav {
    margin-top: 0px;
    overflow: hidden;
    background-color:black;
    background-image: 
    radial-gradient(ellipse 40% 1000%, rgba(205, 154, 221, 0.5), transparent), 
    linear-gradient(rgba(159, 254, 129, 0.73), rgba(4, 81, 51, 0.73)),
    url('/images/Checker.png');
    background-size: auto, auto, 23px;
    border-top: 3px solid rgba(84, 50, 85, 1);
    border-bottom: 3px solid rgba(84, 50, 85, 1);
    text-align: center;
    padding-top:0px;
    padding-bottom:0px;
    padding-right:4%;
  }
  
  /* Style the topnav links */
  .topnav a {
    width:auto;
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    border:3px solid rgba(67, 46, 88, 1);
    border-radius:10px;
    background-image:
    linear-gradient(rgba(191, 86, 111, 1), rgba(155, 44, 101, 1));
    background-size:auto;
    padding-bottom:10px;
    padding-top:10px;
    padding-left:15px;
    padding-right:15px;
    margin-top:0px;
    margin-bottom:0px;
    text-decoration: none;
    font-family: "Raleway", sans-serif;
    font-weight: 900;
    font-size:20px;
  }
  
  /* Change color on hover */
  .topnav a:hover {
    background-image: 
    linear-gradient(rgba(119, 179, 205, 1), rgba(81, 125, 185, 1));
    text-decoration: none;
    font-family: "Raleway", sans-serif;
    font-weight: 900;
    font-size:20px;
    color: white;
    border-radius:10px;
  }
  
  /* List style */
  .nav_button {
    list-style: none;
    display: inline-block;
    margin-bottom:0px;
    margin-top:4px;
    overflow:hidden;
  }
  .nav_button li {
    float: left;
    margin: 0 10px 0;
    vertical-align:center;
  }
  .nav_button li a {
    color: white;
  }

  /* Links */

  a{
    color:rgb(207, 124, 170);
    font-family: "Raleway", serif;
    font-weight:900;
    text-decoration: none;
    transition: color 0.5s;
  }
  
  a:hover {
    color:rgb(185, 89, 153);
    font-family: "Raleway", serif;
    font-weight:900;
    text-decoration: none;
    transition: color 0.5s;
  }

  .dead-link {
    color:rgb(0, 0, 0);
    font-family: "Raleway", serif;
    font-weight:900;
    text-decoration: none;
  }

  /* Background */
  body {
    background-color: black;
    background-image: url('/images/BGpattern.png');
    background-size:318px;
    padding:0px;
    margin:0px;
    overflow:scroll;
}

/* Images */
  img {
    display: block;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:10px;
  }

/* Mainbody */
  .reader-body {
    margin-left:auto;
    margin-right:auto;
    width:80%;
    padding:50px;
    background-color:white;
    color:black;
    border:3px solid rgb(84, 50, 85);
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .reader-body-dark-theme {
    margin-left:auto;
    margin-right:auto;
    width:80%;
    padding:50px;
    background-color:rgb(35, 31, 41);
    color:white;
    border:3px solid rgb(84, 50, 85);
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
  @media (max-width: 768px) {
    .reader-body {
        margin-left:auto;
        margin-right:auto;
        width:100%;
        padding:20px;
        background-color:white;
        color:black;
        border:1px solid rgb(84, 50, 85);
        box-sizing: border-box;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    
    .reader-body-dark-theme {
        margin-left:auto;
        margin-right:auto;
        width:100%;
        padding:20px;
        background-color:rgb(35, 31, 41);
        color:white;
        border:1px solid rgb(84, 50, 85);
        box-sizing: border-box;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    
    p {
        font-family: "Merriweather", "Times New Roman", serif;
        font-size:12px;
        margin-left:20px;
        margin-right:20px;
        margin-bottom:5px;
        margin-top:5px;
        text-align: justify;
        text-indent: 15px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
  }

/* Text */
  p {
    font-family: "Merriweather", "Times New Roman", serif;
    font-size:18px;
    margin-left:50px;
    margin-right:50px;
    margin-bottom:5px;
    margin-top:5px;
    text-align: justify;
    text-indent: 30px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
    hr {
    border: 1px solid black;
  }

  .first-paragraph-vallachia {
    text-indent: 0;
  }

  .first-paragraph-vallachia::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.65;
    margin: 0.1em 0.1em 0.3em 0;
    font-family: "Squealer", serif;
  }

/* Collapsible */

.collapsible-content {
  display:none;
}

.collapsible-button {
  background:transparent;
  color:rgb(167, 69, 123);
  font-size:20px;
  font-family: "Raleway", serif;
  font-weight:900;
  border:transparent;
  margin-bottom:10px;
  transition: color 0.5s;
}

.collapsible-button:hover {
  color: rgb(124, 32, 94);
  text-decoration: none;
  cursor:pointer;
}

/* Title Banner */

.title-container {
  background-image: linear-gradient(rgb(120, 89, 124), rgba(84, 50, 85, 1));
  color:white;
  width:80%;
  font-size:25px;
  font-weight:900;
  font-family: "Raleway", sans-serif;
  padding-bottom:5px;
  padding-left:10px;
  padding-right:10px;
  margin-top:30px;
  box-sizing: border-box;
  margin-left:auto;
  margin-right:auto;
  border:3px solid rgba(84, 50, 85, 1);
  border-top-left-radius:15px;
  border-top-right-radius:15px;
}

.bottom-border {
  background-image: linear-gradient(rgba(84, 50, 85, 1), rgb(120, 89, 124));
  width:80%;
  padding:15px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
  margin-bottom: 50px;
  box-sizing: border-box;
  margin-left:auto;
  margin-right:auto;
  border:3px solid rgba(84, 50, 85, 1);
}

.chapter-nav-box {
  display: flex;
  flex-direction: row;
  border: 3px solid rgba(84, 50, 85, 1);
  width:80%;
  box-sizing: border-box;
  margin-left:auto;
  margin-right:auto;
}

.prev-next {
  background-color: rgba(84, 50, 85, 1);
  color:white;
  font-size:19px;
  font-weight:900;
  font-family: "Raleway", sans-serif;
  padding:5px;
  height:60px;
  width:40%;
}

.toc-link {
  background-color:rgb(250, 246, 233);
  color:black;
  font-size:25px;
  font-weight:900;
  font-family: "Raleway", sans-serif;
  text-align: center;
  padding:5px;
  height:60px;
  width:20%;
}

.toc-collapse-button-1 {
  color:rgb(167, 69, 123);
  font-size:20px;
  font-weight:900;
  font-family: "Raleway", sans-serif;
  text-align: center;
  transition: color 0.5s;
}

.toc-collapse-button-1:hover {
  color: rgb(124, 32, 94);
  text-decoration: none;
  cursor:pointer;
}

.toc-collapsible-1 {
  display: none;
  background-color:rgb(250, 246, 233);
  text-align: center;
  border: 1px solid rgba(84, 50, 85, 1);
  font-size:18px;
  width:80%;
  box-sizing: border-box;
  margin-left:auto;
  margin-right:auto;
  padding:5px;
}

.toc-collapse-button-2 {
  color:rgb(167, 69, 123);
  font-size:20px;
  font-weight:900;
  font-family: "Raleway", sans-serif;
  text-align: center;
  transition: color 0.5s;
}

.toc-collapse-button-2:hover {
  color: rgb(124, 32, 94);
  text-decoration: none;
  cursor:pointer;
}

.toc-collapsible-2 {
  display: none;
  background-color:rgb(250, 246, 233);
  text-align: center;
  border: 1px solid rgba(84, 50, 85, 1);
  font-size:18px;
  width:80%;
  box-sizing: border-box;
  margin-left:auto;
  margin-right:auto;
  padding:5px;
}

/* Theme Buttons */

.button-box {
  display:flex;
  justify-content: center;
  margin-left:auto;
  margin-right:auto;
  column-gap:15px;
  margin-top:30px;
}

.theme-button-light {
  padding:15px;
  background-color: rgb(255, 250, 242);
  border: 3px solid rgba(84, 50, 85, 1);
  border-radius: 10px;
  color:black;
  font-family: "Raleway", serif;
  font-weight: 900;
  font-size: 20px;
  transition: background-color 0.5s;
}

.theme-button-light:hover {
  background-color: rgb(197, 171, 184);
  cursor: pointer;
}

.theme-button-dark {
  padding:15px;
  background-color: rgb(41, 22, 46);
  border: 3px solid rgba(84, 50, 85, 1);
  border-radius: 10px;
  color:white;
  font-family: "Raleway", serif;
  font-weight: 900;
  font-size: 20px;
  transition: background-color 0.5s;
}

.theme-button-dark:hover {
  background-color: rgb(53, 43, 80);
  cursor: pointer;
}
