* {
  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%;
}
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: white;
  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;
  /* overflow: hidden; */
  background-color: var(--grey);
}

.main {
  height: calc(100vh - 90px - 80px);
  max-width: 80vw;
  margin: auto;
  margin-top: 40px;
}
.logo {
  background-color: white;
  /* border-bottom: 2px solid #8a9896; */
  /* box-shadow: 0 6px 12px -2px rgba(115, 127, 130, 0.3), 0 2px 3px rgba(115, 127, 130, 0.6); */
  /* width: 154px; */
  height: 46px;
  padding-top: 6px;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  position: absolute;
  top: 14px;
  left:20px;
  border-radius: 10px;
  transition: all .15s linear;
  cursor: pointer;
}
.logo:hover {  
  box-shadow: 0 8px 14px -2px rgba(115, 127, 130, 0.2), 0 4px 6px rgba(115, 127, 130, 0.8);
}
.navLogo { 
  padding: 0;
  margin: 10px;
  height: 50px;
  /* fill: #334952; */
}

header nav .menu {
  position: absolute;
  right: 20px;
  top: 20px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  /* border: solid thin black; */
  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;
}



/* header:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: .8;
  z-index: -1;
}
header:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index:-2;
} */

/* Grid Container for Script Pages */
.pdfViewer {
  height: 700px;
}
.scriptReader object {
  width: 100%;
  height: 100%;
}
.scriptEntryPreview {


}
.gridContainer {
  /* display: grid; */
  /* grid-template-columns: repeat(12, 1fr); */
  /* gap: 20px; */
}
.scriptReaderHeader {
  text-align: center;
  display: block;
  /* grid-column: 1 / -1; */
  /* grid-row: 1; */
  margin-top: 40px;
  margin-bottom: 10px;
}
.scriptReader {      
  margin: 30px 0 50px 0;
  /* grid-column: 2 / -2; */
  /* grid-row: 2 / 10; */
  /* aspect-ratio: 6/7; */
  /* max-height: 900px; */
  /* min-width: 400px; */
}
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);
}

.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 svg {
  fill: grey;
}
span.pdfLinks {
  margin-right: 20px;
}
span.pdfLinks:hover {
  color: black;
}

span.pdfLinks:hover svg{
  fill: black;
}

/* Script Details - for all sites, but especially for iphones */
.scriptEntry {
  max-width: 800px;
  margin: 20px 0;
}
.scriptEntry h2 {
  margin-bottom: 4px;
  font-size: 1.3em;
}
.scriptEntry 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 {
  /* display: none; */
  /* position: fixed; */
  /* z-index: 999; */
  padding: 60px 40px 0px 40px;
  /* left: 0; */
  /* top: 75px; */
  /* width: 100%; */
  /* height: 100vh; */
  overflow: auto;
  /* background-color: rgba(237, 241, 243, 0.9); */  
  transition: all linear 2s;
}

/* Slideshow container */
.slideshow-container {
  /* max-width: 1000px; */
  background-color: white;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  /* background-color: white; */
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  padding-bottom: 20px;
  padding-right: 2px;
}

.mySlides {
  display: none;
  width: 88%;
  /* background-color: rgb(86, 107, 129); */
  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 {
  /* opacity: 0.6; */
  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);
}

/* Number text (1/3 etc) */
/* .numbertext {
  color: #1c1b1b;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
} */

/* Caption text */
.caption-container {
  text-align: center;
  /* background-color: rgba(248, 248, 248, 0.95); */
  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 {
  /* padding: 14px 0 14px 0 ; */
  margin: 0;
  background-color: #ddd;
  width: 100%;
  text-align: center;
  height: 90px;
}

footer p {
  line-height: 80px;
}

@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: 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;
    /* background: rgba(255,255,255,0.99); */
    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) {
  .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;
  }
}