* {
  margin: 0; 
  padding: 0;
  box-sizing: border-box;
}
html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  margin: 0;
  min-height: 100vh;
}
body, html {
  height: 100%;
}
p {
  margin: 5px 0;
}
h2.bookInfoPageSubtitle {
  font-size: 1.4em;
  font-weight: 100;
  margin: -10px 0 10px 0;
}
h2.bookInfoPageAuthor {
  margin-bottom: 0px
}
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
textarea {
  resize: vertical;
}
header {
  height: 78px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background-color:   rgba(230, 237, 235, 1);
  border-bottom: #c5c5c5 2px solid;
	/* box-shadow: 
    0px 1px 2px 0px #cacaca, 
    0px 2px 11px -2px #e2e4e2; */
}
header > nav {
  position: relative;
  height: 60px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  background-color: var(--grey);
}

.main {
  max-width: 90vw;
  margin: auto;
  margin-top: 40px;
}
.logo {
  background-color:  rgba(230, 237, 235, 1);
  height: 46px;
  padding-top: 6px;
  display: flex;
  align-items: center;
  position: absolute;
  top: 14px;
  left:20px;
  border-radius: 10px;
  transition: all .15s linear;
  cursor: pointer;
}
.navLogo { 
  padding: 0;
  margin: 10px;
  height: 50px;
}

header nav .menu {
  position: absolute;
  right: 20px;
  top: 20px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  margin-right: 20px;
}

div.menu > a {
  text-decoration: none;
  color: var(--pageBlack);
  font-size: 18px;
  display: block;
  padding: 10px 8px;
}

/*Responsive Hamburger*/
.hamburger {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 50px;
}
.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: #222222;
  margin: 6px 0;
  transition: 0.4s;
  border-radius: 14px;
}

/* Grid Container for Script Pages */
.pdfViewer {
  height: 860px;
  width: 720px;
  scrollbar-width: 0;
}
.scriptReader object {
  width: 100%;
  height: 100%;
}
h1.bookInfoPageHeader {
  font-weight: 100;
  display: block;
  margin-top: 30px;
  margin-bottom: 8px;
}
.scriptReader {      
  margin: 10px 0 50px 0;
}

a.backButton {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 1em;
  transition: all .1s linear;
  color: rgba(45, 62, 66, 0.8);
}

div.scriptReader a.backButton {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 1.1em;
  transition: all .1s linear;
  color: rgba(73, 90, 94, 0.6);
  margin-bottom: 18px;
}
div.scriptReader a.backButton:hover {
  color: rgb(61, 77, 80);
}
div.scriptReader a.downloadButton:hover {
  color: rgb(26, 39, 41);
}
div.scriptReader  a.downloadButton {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 1em;
  transition: all .1s linear;
  color: rgba(45, 62, 66, 0.8);
}
.scriptPage {
  min-height: 1100px;
}

/* SCRIPT CARD */
.scriptLinks {
  grid-column: 4 /-2;
  width: 80vw;
  min-height: 70vh;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: flex-start;
  gap: 10px;
}
.scriptLinks a {
  text-decoration: none;
  color: black;
}
.scriptCard h2 {
  margin-bottom: 10px;
  font-size: 28px;
}
.scriptCard button a {
  text-decoration: none;
  display: block;
  margin-left: -2px;
  color: #777;
}
.scriptCard p {
  font-size: 18px; 
  margin-bottom: 4px;
}
.scriptCard {
  position: relative;
  margin: 20px;
  width: 200px;
  height: 218px;
  padding: 20px 30px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgb(223, 223, 223);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.scriptCard:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  cursor: pointer;
  transition: all .1s;
}
.scriptCardContent button:hover {
  background-color: #19313e;
  cursor: pointer;
}
.scriptCardContent button:hover a {
  color: white;
}
.scriptCard button {
  margin-top: 10px;
  font-size: 14px;
  display: inline-block;
  color: #777;
  padding: 6px 10px;
  font-weight: 600;
  line-height: 18px;
  font-size: 1.1em;
  background-color: white;
  border-radius: 3px;
  box-shadow: 0 2px 20px rgba(0,0,0,.05);
  border: 1px solid rgb(223, 223, 223);
}
/*  Script Reader option links - especially for Apple Devices  */

.pdfLinks {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.pdfLinks svg {
  fill: grey;
  width: 20px;
  height: 20px;
  align-self: baseline
}
span.pdfLinks {
  margin-right: 20px;
  /* margin-right: 5px; */
}
span.pdfLinks:hover {
  color: black;
}
span.pdfLinks:hover svg{
  fill: black;
}

/* Script Details - for all sites, but especially for iphones */
.bookInfo {
  max-width: 800px;
  margin: 10px 0 20px 0;
}
.bookInfo h2 {
  margin-bottom: 4px;
  font-size: 1.3em;
}
.bookInfo h3 {
  margin: 6px 0 4px 0;
  font-size: 1.05em;
  font-weight:bold;
}

/* Image Carousel from w3Schools tutorial ... https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_slideshow*/

.mySlides {display: none}
img {vertical-align: middle;}
.modal {
  padding: 60px 40px 0px 40px;
  overflow: auto;
  transition: all linear 2s;
}
/* Slideshow container */
.slideshow-container {
  background-color: white;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  padding-bottom: 20px;
  padding-right: 2px;
}
.mySlides {
  display: none;
  width: 88%;
  margin: 4px 0px 8px 8px;
  padding: 0;
  border-radius: 12px;
  text-align: center;
  line-height: 430px;
  position: relative;
  height: 440px;
  box-shadow: 0px 1px 3px 1px rgba(110, 110, 110, 0.2), 0px 3px 6px 2px rgba(99, 99, 99, 0.15);
  cursor: pointer;
  border: none;
  overflow: hidden;
}
.imgContainer {
  max-height: 98%;
  max-width: 70%;
  margin: auto;
  border: none;
  background-color: transparent;
  overflow: hidden;
  border-radius: 12px;
  vertical-align: middle;
}
.imgContainer img {  
  max-height: 400px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}
.thumbColumn {
  width: 10%;
}
.slideThumb {
  background-color: white;
  width: 90%;
  height: auto;
  padding: 2px;
  margin: 4px 0px 8px 10px;
  border-radius: 6px;
  transition: 0.2s ease;
  box-shadow: 
  0px 1px 3px 1px rgba(110, 110, 110, 0.2), 
  0px 3px 6px 2px rgba(99, 99, 99, 0.15);
}
.slideThumb:hover {
  cursor: pointer;
  box-shadow: 
  0 2px 5px 1px rgba(115, 127, 130, 0.55),
  0 1px 10px 2px rgba(115, 127, 130, 0.2) ;
}
/* Hide the slides by default */
img.demo {
  width: 100%;
}
/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 42%;
  width: 60px;
  height: 60px;
  padding: 12px 16px 16px 16px;
  color: rgb(0, 0, 0);
  font-weight: bold;
  font-size: 34px;
  line-height: 34px;
  transition: 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  background-color: rgba(255, 255, 255);
  border-radius: 50%;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.4), 0px 4px 8px 3px rgba(0, 0, 0, 0.15);
}
/* Position the "next button" to the right */
.next {
  right: 13%;
  padding-left: 22px;
}
.prev {
  margin-left: 24px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgb(233, 233, 233);
}

/* Caption text */
.caption-container {
  text-align: center;
  padding: 2px 16px;
  color: rgb(28, 28, 28);
  width: 88%;
  margin-top: 8px;
}
.active,
.demo:hover {
  opacity: 1;
}
img.hover-shadow {
  transition: 0.3s;
}
.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
footer {
  margin: 0;
  background-color: #ddd;
  width: 100%;
  text-align: center;
  height: 90px;
}
footer p {
  line-height: 80px;
}

@media only screen and (max-width: 1200px) {
  .pdfViewer {
    height: 820px;
    max-width: 520px;
  }
  main {
    min-height: 1300px;
  }
}  

@media only screen and (max-width: 1090x) {
  .scriptPage {
    min-height: 1000px;
  }
}
@media only screen and (max-width: 955px) {
  .mySlides {
    display: none;
    height: 340px;
    line-height: 330px;
  }
  .mySlides img {  
    max-width: 400px;
    max-height: 330px;  
  }
  .thumbColumn {
    width: 10%;
  }
  .slideThumb {
    margin: 4px 6px 8px 10px;
  }
  .next {
    right: 14%;
    padding-left: 22px;
  }
  .prev {
    margin-left: 20px;
  }
}
@media only screen and (max-width: 745px) { 
  .mySlides {
    height: 300px;
    display: none;
    width: 100%;
    line-height: 280px;
  }
  .mySlides img {  
    max-width: 380px;
    max-height: 280px;  
  }    
  .caption-container {
    width: 100%;
    margin-top: 8px;
  }
  .thumbColumn {
    width: 80%;
    margin: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .slideThumb {
    max-width: 120px;
    margin: 8px 6px 8px 10px;
    border-radius: 6px;
  }
  .prev,
  .next {
    top: 40%;
    width: 50px;
    height: 50px;
    padding-top: 8px;
    font-weight: normal;
    font-size: 32px;
    line-height: 32px;
  }
  .next {
    right: 4%;
    padding-left: 18px;
  }
  .prev {
    padding-left: 14px;
  }
}

@media only screen and (max-width: 620px) {
  .pdfViewer {
    max-width: 450px;
    max-height: 640px
  }
  main {
    min-height: 1000px;
  }
}  
@media only screen and (max-width: 614px) {
  .scriptLinks {
    justify-content: center;
  }
}
@media only screen and (max-width: 550px) {
  .imgContainer, .imgContainer img {
    border-radius: 0;
  }
  header nav div.menu {
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    left:-9999px;
    z-index: 997;
    padding: 0;
    margin: 0;
    margin-left:40px;
    background-color: rgba(192, 191, 191, .98);
  }
  header nav div.menu a {
    border: none;
    box-shadow: none;
    display: block;
    border-radius: 0;
    width: 100vw;
    background-color: transparent;
    margin: 0;
    padding: 12px;
  }
  header nav div.menu a:hover {
      background-color:rgba(153, 153, 153, 0.9);
      border: none !important; 
  }    /* Adds the blue to the hover in the menu */
  nav .menu.showMenu {
    left: calc(60vw - 60px);
    top: 75px;
  }
  .hamburger {
    display: block;
    cursor: pointer;
    z-index: 999;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 50px; 
  }
  .bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 14px;
  }
  .change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
  }
  .change .bar2 {opacity: 0;}
  .change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
  }
  .mySlides {
    height: 300px;
    display: none;
    width: 98%;
    line-height: 280px;
  }
  .mySlides img {  
    max-width: 320px;
    margin: 8px;
    max-height: 280px;  
  }  
}
@media only screen and (max-width: 420px) {
  .navLogo { 
    height: 34px;
  }
  .mySlides {
    height: 210px;
    display: none;
    max-width: 98%;
    line-height: 200px;
  }
  .imgContainer {
    border-radius: none;
  }
  .mySlides img {  
    max-width: 260px;
    max-height: 200px;  
    border-radius: none;
  }
  .thumbColumn {
    width: 76%;
    margin: auto;
  }
  .slideThumb {
    width: 18%;
    margin: 2px;
  }  
  .prev,
  .next {
    top: 40%;
    width: 30px;
    height: 30px;
    padding-top: 4px;
    font-weight: bold;
    font-size: 20px;
    line-height: 20px;
  }
  .next {
    right: 4%;
    padding-left: 12px;
  }
  .prev {
    padding-left: 8px;
  }
}
/* @media only screen and (max-width: 400px) {
  .pdfViewer {
    max-width: 260px;
    max-height: 418px;
  }
}  */