/* styles.css 
   Project: 
   Author: 
   Date: 
	
*/

/*google font*/

@import url('https://fonts.googleapis.com/css2?family=Lato&family=Montserrat&family=Open+Sans&family=Raleway&family=Roboto&display=swap');

/*main css*/

* {
  box-sizing: border-box;
}

img, video {
  width: 100%;
  display: block;
}

audio {
  display: block;
}

body {
    margin: 0;
}

html, body {
  width: 100%;
}

.page-wrapper {
  overflow-x: hidden;
  width: 100%;
}


/*link style*/

a {
  text-decoration: none;
  color: lightblue;
}

a:visited {
  color: gray;
}

a:hover, a:active {
  color: darkgray;
} 

body, html {
  font-family: 'Times New Roman', sans-serif; 
}

h1, h2, h3, .pullquote {
  font-family: 'Times New Roman', sans-serif;

}

header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: -1;
  background-color: black;
  /*max-height: 600px;*/
}

header img {
  /* this opacity makes the header image dark so you can read the headline text more easily. remove the opacity if you do not have your headline on top of the image.*/
  opacity: 0.6;
}

.title1 {
  position: absolute;
  width: 100%;
  top: 20%;
  color: white;
  text-align: center;
  padding: 3%;
}

.title1 h1 {
  font-size: 5.1em;
  margin-bottom: -4px;
}

.title1 h2 {
  font-size: 2em;
}

.title1 h3 {
  margin-top: 10%;
  font-size: 1.2em;
  font-style: italic;
}

.title2 {
  width: 100%;
  color: darkslategray;
  text-align: center;
  padding: 3% 10%;
}

.title2 h1 {
  font-size: 4.7em;
  margin-bottom: -4px;
}

.title2 h2 {
  font-size: 1.7em;
  color: lightgray;
  text-shadow: 3px 1px 3px gray;

}

.title2 h3 {
  margin-top: 3%;
  margin-bottom: 0;
  font-size: 1.1em;
  font-style: italic;
  color: lightgray;
}

.content {
  width: 100%;
  background-color:#201e1f;

}

.maintext {
  max-width: 950px;
  margin: auto;
  font-size: 1.2em;
  line-height: 1.7em;
  text-align: justify;
  padding: 1%;
  color: white;
}

.chart-title {
  color: white;
  text-align: center;
}

.slidecontainer {
    height: 200vh; /* tall enough to scroll through each panel */
    position: relative;
}

.slidescroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: sticky;
    top: 0;            /* THIS is what makes it stick */
    height: 100vh;     
}

.picside {
    height: 100vh;
    background-color: #201e1f;
    top: 0;
    display: grid;
}


.picside img {
    width: 65%;
    margin: auto;
    object-fit: cover;
    display: block;
}

.photocaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    color: white;
    background-color: rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.imgwrap:hover .photocaption {
    opacity: 1;
    transform: translateY(0);
}

.imgwrap {
    width: 65%;
    margin: auto;
    position: relative;
}

.imgwrap img {
    width: 100%;
    display: block;
}

.quotesideslide {
    background-color: #201e1f;
    padding: 20px;
    padding-right: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    height: 100vh;
}

.quotesideslide audio {
    margin-top: 20px;
    width: 80%;
}

.pullquote {
  width: 50%;
  font-size: 1.4em;
  line-height: 1.6em;
  font-style: italic;
  text-align: left;
}

.name {
  font-size: 0.7em;
  text-align: center;
  line-height: 0.1em;
  padding-bottom: 30px;
}

.left {
  float: left;
  padding-right: 20px;
  margin-left: -40px;
}

.floatingpic {
  float: right;
  width: 200px;         /* controls whole card size */
  margin-left: 30px;   /* space from text */
  padding-left: 12px;

}

.floatingpic video {
  width: 100%;
  height: auto;
  display: block;
}

.floatingcap {
  margin-top: 8px;
}

.floatingcap {
  margin-top: 0px;
  font-size:  0.8em;
  text-align: center;
  width: 200px; 
}

.sectionhead {
  text-align: center;
  color: lightgray;
  text-shadow: 3px 1px 3px gray;
  padding-top: 5%;

}

.bigphoto {
  position: relative;
}

.sidebyside {
  display: flex;
}

.photoleft {
    flex-direction: row;
}

.photoright {
    flex-direction: row-reverse;
}

.sidephoto {
  flex: 2;
}

.sidecaption {
  flex: 1;
  background-color: black;
  color: white;
  font-size: 1.2em;
  display: grid;
  align-items: center;
  text-align: center;
  padding: 20px 40px;
}

.photogrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 5px;
}

.gridpic {
  position: relative;
}

.gridpic .photocaption {
  display: none;
}

.cycle-slideshow {
  max-width: 700px;
  margin: auto;
}

.knightlab {
  max-width: 700px;
  margin: auto;
}

.slidewrapper {
  position: relative;
}

.slides {
  position: sticky;
  position: -webkit-sticky;
  top: 0px;
  z-index: -1;
}

.bottomcredit {
  position: absolute;
  right: 0px;
  bottom: 0px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 10px;
  color: white;
}

.backgroundimage {
  height: 100vh;
  position: sticky;
  position: -webkit-sticky;
  top: 0px;
  z-index: -1;
}

.backgroundimage img {
  height: 100%;
  object-fit: cover;
}

.textbox {
  max-width: 640px;
  margin: 100vh auto;
  background-color: white;
  color: darkslategray;  
  padding: 20px;
}

.googlemap {
  overflow:hidden;
  padding-bottom:56.25%;
  position:relative;
  height:0;
  max-width: 700px;
  margin: auto;
}

.googlemap iframe {
  left:0;
  top:0;
  height:100%;
  width:100%;
  position:absolute;
}

.youtube {
  max-width: 700px;
  margin: auto;
}

.responsivecontainer {
  position: relative; 
  padding-bottom: 56.25%; 
  padding-top: 30px; 
  height: 0; 
  overflow: hidden;
}

.responsivecontainer iframe, .responsivecontainer object, .responsivecontainer embed { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
}

.clickhere {
  font-style: italic;
  font-size: 0.7em;
  text-align: right;
  padding-right: 1%;
}

.voxpop {
  max-width: 700px;
  margin: auto;
}

.voxgrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 10px;
}

.person {
  border-radius: 5px;
  box-shadow: 2px 3px 3px lightslategrey;
  overflow: hidden;
  align-self: center;
}

.person audio {
  width: 100%;
  display: block;
}

.headshot {
  position: relative;
  text-align: center;

}

.popup {
  cursor: pointer;
}

.infographic {
  max-width: 700px;
  margin: auto;
}



/*TIMELINE BOATS*/


.timeline {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
}

.timeline img {
  width: 100vw;
  height: auto;
  display: block;
}

.boatbox {
  position: absolute;
  width: 100%;
  left: 0;
}

.boat {
  position: absolute;
}

.boat h1 {
  color: white;
  font-family: Courier, monospace;
  font-size: 1.6em;
  font-weight: 900;
  margin: 0;
}

.timetext {
  position: absolute;
  width: 38%;
  font-family: Courier, monospace;
  color: white;
  font-size: 0.85em;
  line-height: 1.6;
  text-align: center;
  display: none;
}

.timetext p {
  margin: 0 0 4px;
}

/* 1914 */
.boatbox:nth-child(2) {
  top: 18%;
}
.boatbox:nth-child(2) .boat {
  left: 16%;
}
.boatbox:nth-child(2) .timetext {
  right: 2%;
  top: 0;
}

/* 1922 */
.box2 {
  top: 33%;
}
.box2 .boat {
  right: 8%;
}
.box2 .timetext {
  left: 2%;
  top: -98px;
}

/* 1928 — year left, text right */
.box3 {
  top: 42%;
}
.box3 .boat {
  left: 6%;
}
.box3 .timetext {
  right: 4%;
  top: 0;
}

/* 1960 — year right, text left */
.box4 {
  top: 55%;
}
.box4 .boat {
  right: 8%;
}
.box4 .timetext {
  left: 2%;
  top: 0;
}

/* 1974 — year left, text right */
.box5 {
  top: 68%;
}
.box5 .boat {
  left: 6%;
}
.box5 .timetext {
  right: 2%;
  top: 0;
}

/* 1976 — year right, text left */
.box6 {
  top: 81%;
}
.box6 .boat {
  right: 8%;
}
.box6 .timetext {
  left: 2%;
  top: 0;
}

/* 1989 — year right, text left */
.box8 .boat {
  right: 4% !important;
  left: auto !important;
  top: 0;
}
.box8 .timetext {
  left: 2% !important;
  right: auto !important;
  width: 35%;
  top: 0;
}

/* 1990 — year right, text left */
.box9 {
  top: 35%;
}
.box9 .boat {
  left: 6%;
}
.box9 .timetext {
  right: 4%;
  top: 0;
}



/* 1992 — year left, text right */
.box10 {
  top: 65%;
}
.box10 .boat {
  right: 4%;
  top: 0;
}
.box10 .timetext {
  left: 2%;
  right: auto;
  top: -20px;
}

.box11 {
  top: 12%;
}

.box11 .boat {
  right: 20% !important;
  left: auto !important;
  top: 0;
}
.box11 .timetext {
  left: 2% !important;
  right: auto !important;
  width: 35%;
  top: 0;
}

.box12 {
  top: 40%;
}
.box12 .boat {
  left: 6% !important;
  right: auto !important;
  top: 0;
}
.box12 .timetext {
  right: 4% !important;
  left: auto !important;
  width: 35%;
  top: -35px;
}

.box13 {
  top: 65%;
}


.box13 .boat {
  right: 6% !important;
  left: auto !important;
  top: 0;
}
.box13 .timetext {
  left: 2% !important;
  right: auto !important;
  width: 35%;
  top: -35px;
}
.box14 {
  top: 10%;
}
.box14 .boat {
  left: 6% !important;
  right: auto !important;
  top: 0;
}
.box14 .timetext {
  right: 4% !important;
  left: auto !important;
  width: 35%;
  top: 0;
}

.box15 {
  top: 30%;
}
.box15 .boat {
  right: 10% !important;
  left: auto !important;
  top: 0;
}
.box15 .timetext {
  left: 2% !important;
  right: auto !important;
  width: 35%;
  top: 0;
}

.box16 {
  top: 43%;
}
.box16 .boat {
  left: 6% !important;
  right: auto !important;
  top: 0;
}
.box16 .timetext {
  right: 4% !important;
  left: auto !important;
  width: 35%;
  top: 0;
}

.box17 {
  top: 55%;
}
.box17 .timetext {
  left: 6% !important;
  right: auto !important;
  top: 0;
}
.box17 .boat {
  right: -20% !important;
  left: auto !important;
  width: 35%;
  top: 0;
}



.box18 {
  top: 65%;
}
.box18 .boat {
  left: 6% !important;
  right: auto !important;
  top: 0;
}
.box18 .timetext {
  right: 4% !important;
  left: auto !important;
  width: 35%;
  top: 0;
}

.box19 {
  top: 78%;
}
.box19 .boat {
  right: 4% !important;
  left: auto !important;
  top: 0;
}
.box19 .timetext {
  left: 2% !important;
  right: auto !important;
  width: 35%;
  top: 0;
}



@media (max-width: 600px) {
  .box14, .box15, .box16, .box17, .box18, .box19 {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 2rem;
    width: 100%;
  }

  .box14 .boat, .box15 .boat, .box16 .boat,
  .box17 .boat, .box18 .boat, .box19 .boat {
    position: static;
    flex: 0 0 auto;
  }

  .box14 .timetext, .box15 .timetext, .box16 .timetext,
  .box17 .timetext, .box18 .timetext, .box19 .timetext {
    position: static;
    width: auto;
    flex: 1;
    text-align: left;
    font-size: 0.82em;
  }
}


/* ── MOBILE ── */
@media (max-width: 600px) {

  .timeline img {
    display: none;
  }

  .timeline {
    padding: 1.5rem 1rem;
  }

  .boatbox {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 2rem;
    width: 100%;
  }

  .boat {
    position: static;
    flex: 0 0 auto;
  }

  .boat h1 {
    font-size: 1.1em;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    padding: 4px 10px;
  }

  .timetext {
    position: static;
    width: auto;
    flex: 1;
    text-align: left;
    font-size: 0.82em;
  }

  .boatbox .boat     { order: 1; }
  .boatbox .timetext { order: 2; }
}

@media (max-width: 600px) {

  .box8, .box9, .box10 {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 2rem;
    width: 100%;
  }

  .box8 .boat,
  .box9 .boat,
  .box10 .boat {
    position: static;
    flex: 0 0 auto;
  }

  .box8 .timetext,
  .box9 .timetext,
  .box10 .timetext {
    position: static;
    width: auto;
    flex: 1;
    text-align: left;
    font-size: 0.82em;
  }

  .box8 .boat  { order: 1; }
  .box8 .timetext { order: 2; }
  .box9 .boat  { order: 1; }
  .box9 .timetext { order: 2; }
  .box10 .boat { order: 1; }
  .box10 .timetext { order: 2; }
}



/*END TIMELINE BOATS*/




/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.slidetext {
  color: #f2f2f2;
  font-size: 15px;
  padding: 12px;
  position: absolute;
  bottom: 0px;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dots {
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  text-align: center;
}

.active, .dot:hover {
  background-color: #717171;
}

 
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}


/*footer */

footer {
  background-color: black;
  color: white;
  padding: 1%;
  text-align: right;
}

/*popup modal*/

.overlay {
  position: fixed;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow-y: scroll;
  display: none;
  z-index:  10;
}

.modal {
  width: 70%;
  margin: 2% auto;
}

.closer {
  position: absolute;
  right: 1vh;
  top:  1vh;
  width: 10%;
  cursor: pointer;
}

/*media query for responsive design */

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

  .title1 {
    top: 5%;
  }

  .title1 h1 {
    font-size: 3.5em;
  }

  .title1 h2 {
    font-size: 1.5em
  }

  .title1 h3 {
    font-size: 1.1em;
  }

}


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

  .pullquote {
    width: 100%;
    margin: 0px;
    padding: 0px;
    text-align: center;
    display: none; /* remove this line if you want the pullquotes to display on mobile*/ 
  }

  .left, .right {
    margin: 0px;
    padding: 10px;
  }

  .floatingpic {
    width:  100%;
    margin: 0px;
    padding:  0px;
  }

  .popup {
    margin-bottom: 15px;
  }

  .popup .floatingcap {
    display: none;
  }  

}


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

  .title1 {
    top: 1%;
  }

  .title1 h1 {
    font-size: 3em;
  }

  .title1 h2 {
    display: none;
  }

  .title1 h3 {
    font-size: 0.9em;
  }

  .title2 h1 {
    font-size: 2em;
  }

  .title2 h2 {
    font-size: 1.3em;
  }

  .title2 h3 {
    font-size: 1em;
  }

  .maintext {
    font-size: 1.4em;
    line-height: 1.6em;
    text-align: left;
    margin: 0px 15px;
  }

  .maintext2 {
  font-size: 1.4em;
  line-height: 1.6em;
  text-align: left;
  margin: 0px 15px;
  background: black;
  color: white; 
  padding: 20px; 
}

  .voxgrid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .person audio {
    background-color: black;  
  }

  .modal {
    width: 97%;
    margin: 10% auto;
  }

  .sidebyside {
    display: block;
  }

  .sidecaption {
    font-size: 1em;
    padding: 10px 20px;
  }

  .textbox {
    margin: 100vh 20px;
  }

}











