/* template.css 
   Project: Template for USC Annenberg MS and UG programs
   Author: Prof. Peggy Bustamante
   Date: July 2018
  
   Helpful links: 
    Web colors: 
      https://en.wikipedia.org/wiki/Web_colors#X11_color_names
  Color picker tool:
    https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Colors/Color_picker_tool
    http://colorpicker.com


*/

/********* MAIN *********/
body, html {
  height: 100%;
  margin: 0;
  font: 400 16px/1.8 "Helvetica", sans-serif;
  color: #777;
}
iframe {
    min-width: 100%; min-height: 100%;
}


h1, h2, h3 {
  text-align: center;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #999;
}

h1 {
  font: 43px "Freight Text";
}

h2 {
  font: 29px "Freight Text";
}

h3 {
  font: 26px "Freight Text";
  color: black;
  width: 60%;
  margin: auto;
  padding-bottom: 2%;
  padding-top: 2%;
}

a {
  color: #A61818;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: #A61818;
  background-color: ;
  text-decoration: underline;
}

section {
  min-height: 400px;
  background-color: white;
  position: relative;
  padding: 30px 30px;
/*  display: -webkit-flex;
  display: flex;*/
}

section .textbox {  /*this is for audio text*/
  color: #BBBBBB;
  background-color: white;
  text-align: center;
  padding: 30px 30px;
  text-align: left;
  width: 45%;
}

section .textbox p {

  font-size: .9em;
  font-weight: lighter;

}

.parallax {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

header {
  background-image: url("../img/chinatown.png");
  height: 90%;
}

/* BACKGROUND IMAGES for parallax effect */
.divider.bgimg1 {
  background-image: url("../img/block.JPG");
  min-height: 500px;
}

.divider.bgimg2 {
  background-image: url("../img/psychic.JPG"); /* ../img/img_parallax2.jpg */
  min-height: 400px;
}

.divider.bgimg3 {
  background-image: url("../img/coverphoto.jpg");
  min-height: 400px;
}

.divider.bgimg4 {
  background-image: url("../img/griffith.jpg");
  min-height: 400px;
}

.divider.bgimg5 {
  background-image: url("../img/beach.jpg"); /* ../img/img_parallax2.jpg */
  min-height: 400px;
}

.divider.bgimg6 {
  background-image: url("../img/coverphoto.jpg");
  min-height: 400px;
}

.divider.bgimg7 {
  background-image: url("../img/griffith.jpg");
  min-height: 400px;
}

.divider.bgimg8 {
  background-image: url("../img/beach.jpg"); /* ../img/img_parallax2.jpg */
  min-height: 400px;
}

.divider.bgimg9 {
  background-image: url("../img/coverphoto.jpg");
  min-height: 400px;
}

/* miscellaneous */

span.hilite {
  background-color: yellow;
  border: 2px solid black;
  padding: 5px;
}

.words {
  color: #ddd;
  background-color: #282E34;
  text-align: center;
  padding: 50px 80px;
  text-align: justify;
}

/*this is for the slideshow*/

.vertically-padded-text{
  padding-top: 300px;
  padding-bottom: 400px;
  /*background: rgb(255, 255, 255, 0.5);*/
}

/*.captionbox{
  background: rgb(255, 255, 255, 0.6);
  width: 80%;
  margin: auto;
  padding: -50% -50%;

}*/

.small-text-black {
  font: 22px "Freight Text";
  color: black;
  /*width: 60%;*/
  margin: auto;
  padding-bottom: 2%;
  padding-top: 2%;
  /*text-shadow: 1px 1px #9b9b9b;*/
}

.small-text-white {
  font: 22px "Freight Text";
  color: white;
  /*width: 60%;*/
  margin: auto;
  padding-bottom: 2%;
  padding-top: 2%;
  /*text-shadow: 1px 1px #9b9b9b;*/
}


/*INFOGRAM SECTION*/

.infogram{
  width: 50%;
  margin: auto;
}

/*Imagebox Section*/ /*THIS PART IS THE IMAGE SCROLLING THING*/

.imagebox{
  width: 100%;
  position: sticky;
  position: -webkit-sticky;
  top: 0px;
  /*z-index: -1;*/ /*image disappears with this code*/
}

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

.imageboxcap{
  width: 40%;
  position: absolute;
  top: 30%;
  left: 30%;
  color: white;
}

/* DIVIDERS */

.divider {
  position: relative;
}

.divider .caption {
  position: absolute;
  bottom: 3%;
  text-align: right;
  color: #fff;
  letter-spacing: 2px;
  /*width: 27%;
  border: 1px solid black;*/
 /* background-color: rgba(255,255,255, 0.4);*/
  padding: 20px;
  font-size: 0.9em;
  /*box-shadow: 2px 2px 8px #000000;*/
  right: 3%;
}

/* MAIN HEADLINE AND BYLINES */
/* plus ALL TEXT */




.title {
  position: absolute;
  left: 0%;
  top: 0%;
  width: 90%;
  padding: 5%;
  text-align: center;
}

.title h1 {
  opacity: 1;
  color: MintCream;
  font-size: 53px;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 2px 2px 8px #000000;
}

.title h2 {
  opacity: 1;
  color: MintCream;
  font-size: 31px;
  font-weight: bold;
  margin-bottom: 10%;
  text-shadow: 2px 2px 8px #000000;
}

.byline {
  background-color:
  color: black;
  padding: 11px;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: Freight Text;
}

.title0 {
  background-color: white;
  text-align: center;
  margin-bottom: 37px;
}

.title0 h1 {
  color: #333;
  font-size: 49px;
  font-weight: ;
  text-transform: uppercase;
}

.title0 h2 {
  opacity: 1;
  color: #333;
  font-size: 27px;
  font-weight: bold;
  margin-left: 8%;
  width: 55%;
  padding: 0% 15%;
  text-align: left;
}

.title0 h4 {
  color: #333;
  font-size: 20px;
  font-family: "Freight Text";
  margin-bottom: 5%;
  margin-left: 23%;
  width: 55%;
  font-weight: normal;
  text-align: left;
  line-height: 1.3;

}


/* MAIN TEXT */

section.maintext {
  position: relative;
  color: #000000;
  background-color: white;
  text-align: center;
  text-align: justify;
  display: block; /* removes display: flex */;
  padding-bottom:40px;
  /*font-family: courier;*/
}

section.maintext p {
  line-height: 1.7em;
  padding: 0% 23%;
}


/* Text embed teasers */

.teaser {
  border-top: 0px solid #333; /*adds fat line above */
  border-left: 2px solid #333; /*adds thin line on left */
  width: 350px;
  height: auto;
  margin: 30px;
  padding: 20px;
}

.teaser .caption {
    line-height: 1.7em;
    font-style: italic;
    left: 0;
    bottom: -1.2em;
    font-size: .9em;
    color: #333;
}

.tright {
  float: right;
}

.tleft {
  float: left;
}

.teaser video {
  height: 100%;
  width: 100%;
}

.teaser img {
  width: 100%;
  height: 1000%;
  border: 1px solid #333;
}

.teaser blockquote {
  display: block;
  background: #fff;
  padding: 15px 20px 15px 45px;
  margin: 0 0 20px;
  position: relative;
  
  /*Font*/
  font-family: Freight Text, serif;
  font-size: 2.1em;
  line-height: 1.2;
  color: #666;
  text-align: left;
  font-style: ;
  

  
  /*Box Shadow */
 /* -moz-box-shadow: 2px 2px 15px #ccc;
  -webkit-box-shadow: 2px 2px 15px #ccc;
  box-shadow: 2px 2px 15px #ccc;*/
}

.teaser blockquote::before{
  content: "\201C"; /*Unicode for Left Double Quote*/
  
  /*Font*/
  font-family: Georgia, serif;
  font-size: 60px;
  font-weight: bold;
  color: #999;
  
  /*Positioning*/
  position: absolute;
  left: 10px;
  top:5px;
}

.teaser blockquote::after{
  /*Reset to make sure*/
  content: "";
}



/* MAIN VIDEO CSS */

.newyoutube {
  width: 60%;
  margin: auto;
  padding: 4% 0% 0% 0%;
}

.videotext{
  width: 100%;
  margin: auto;
  color: #454545;
  padding: 0% 0% 4% 0%;
  font-family: Freight Text;
  font-size: 0.9em;
  /*border: 1px solid #333;*/
}

section.mainvideo {
  -webkit-flex-direction: row-reverse;
  flex-direction: row-reverse;
}

/*.videotext {
  width: 27%;
  min-height: 98%;
}*/


/* This fixes the collapsing */
.youtube { min-width: 73%; min-height: 100%; }

/* MAIN AUDIO */

section.mainaudio {
  /*background-image: url("../img/beach.jpg");*/
  /* -webkit-flex-direction: row-reverse;
  flex-direction: row-reverse;*/
}

.audiotext {
  width: 100%;
  margin: auto;
  border: 1px solid #333;
}


section.mainaudio .audio {
  width: 60%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
}

aside.sound {
  width: 47%;
  margin: 0% 0% 2% 2%; 
}

aside.sound img {
  width: 100%;
  border: 1px solid #333;
}

.audiopic1 {  /*new div i made*/
  width: 100%;
  position: relative;
}

.audiopic2 {  /*new div i made*/
  width: 100%;
  position: relative;
}

.audiopic3 {  /*new div i made*/
  width: 100%;
  position: relative;
}

.audiopic4 {  /*new div i made*/
  width: 100%;
  position: relative;
}

.cap1 { /*this is audio hover thing; slidetoggle*/
   position: absolute;
   bottom: 10px;
   left:0px;
   background-color: rgba(255,255,255,0.8);
   width: 101%;
   height: 70%;
   text-align: center;
   font-size: 0.9em;
   padding-top: 20%;
   display: none;
}


.cap2 { 
   position: absolute;
   bottom: 10px;
   left:0px;
   background-color: rgba(255,255,255,0.8);
   width: 101%;
   height: 70%;
   text-align: center;
   font-size: 0.9em;
   padding-top: 20%;
   display: none;
}

.cap3 { 
   position: absolute;
   bottom: 10px;
   left:0px;
   background-color: rgba(255,255,255,0.8);
   width: 101%;
   height: 70%;
   text-align: center;
   font-size: 0.9em;
   padding-top: 20%;
   display: none;
}

.cap4 { 
   position: absolute;
   bottom: 10px;
   left:0px;
   background-color: rgba(255,255,255,0.8);
   width: 101%;
   height: 70%;
   text-align: center;
   font-size: 0.9em;
   padding-top: 20%;
   display: none;
}

aside.sound audio {
  width: 100%;

}

/* VR AND 360 VIDEO */
section.vr360video {
  -webkit-flex-direction: row-reverse;
  flex-direction: row-reverse;
}

.vr360videotext {
  width: 27%;
}

/* This fixes the collapsing */
.vr360youtube { min-width: 73%; min-height: 100%; }


/* PHOTO GALLERY / SLIDESHOW */

section.slideshow {
  /*background-image: url("../img/beach.jpg");*/
  /*-webkit-flex-direction: row-reverse;
  flex-direction: row-reverse;*/

}

.slideshowtext {
  width: 23%;
}

.slideshowcontent {
   width: 77%;
   height: 100%;
   background-color: black;
}

.cycle-slideshow { 
    width: 100%; max-width: 1400px; margin: 0px auto; 
}

.cycle-slideshow img { 
    width: 100%; height: auto;  
}


/* GOOGLE MAP */


section.gmapmain {
  -webkit-flex-direction: row-reverse;
  flex-direction: row-reverse;
}

.gmaptext {
  width: 27%;
}


.gmap { 
  min-width: 73%; min-height: 100%; 
}


/* TIMELINE AND STORYMAP */

section.knightlab {
  /*background-image: url("../img/beach.jpg");*/
  -webkit-flex-direction: row-reverse;
  flex-direction: row-reverse;
  display: -webkit-flex;
  display: flex;
}

section.knightlab .timelinetext {
  width: 33%;
}


/* This fixes the collapsing */
section.knightlab .timeline { 
  width: 100%; min-height: 100%; 
}


/* DATA VIZ */
section.datavizmain {
  /*-webkit-flex-direction: row-reverse;
  flex-direction: row-reverse;*/
}

.dataviztext {
  width: 37%;
}

.dataviz { 
  margin: 1% auto;
}

.dataviz img {
  width: 100%;
}

section.footer {
  background-color: black;
  color: white;
  padding: 10px 20px;
  min-height: 30px;
  text-align: left;
  font-size: 0.8em;
}




/* MAKING IT MOBILE FRIENDLY */

/* Turn off parallax scrolling for iPad and smaller */


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

    .parallax {
        background-attachment: scroll;
    }

    .newyoutube {
      width: 90%;
    }
}    

/* Turn off flex for iPad portrait mode  */

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation : portrait) { 

    .tright, .tleft {
      float: none;
      width: 90%;
    }

    section.mainvideo {
      display: block;
    }

    section.mainvideo .videotext {
      width: 98%;
      margin: 1%;
    }

    section.vr360video {
      display: block;
    }
    
    section.vr360video .vr360videotext {
      width: 89%;
      margin: 1%;
    }

    section.gmapmain {
      display: block;
    }
    
    section.gmapmain .gmaptext {
      width: 89%;
      margin: 1%;
    }

    section.socialmedia {
      display: block;
    }
    
    section.socialmedia .twittertext {
      width: 89%;
      margin: 1%;
    }

    section.socialmedia .twitter {
      width: 95%;
      margin-bottom: 10px;
      padding: 2%;
    }

}

@media only screen and (max-width: 768px) {
    section.maintext p {
      padding: 1% 11%;
   }
   
    .parallax {
      background-attachment: scroll;
    }
}

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

    .parallax {
      background-attachment: scroll;
    }

    iframe {
      min-height: 600px;
      width: 97%;

    }

    section {
      display: block;
      padding: 1%;
    }

    section .textbox {
      width: 87%;
      margin: 1%;
    }

    section .content {
      width: 100%;
      height: 100%;
    }

    .title h1 {
      font-size: 47px;
    }

    .title h2 {
      font-size: 20px;
    }

    .title0 {
      padding: 2%;

    }

    .title0 h1 {
      font-size: 41px;
    }

    .title0 h2 {
      font-size: 21px;
    }

    .byline {
      padding: 9px;
      font-size: 12px;
      letter-spacing: 3px;
    }

    section.maintext {
      padding-bottom: 14%;
    }

    section.maintext p {
      line-height: 1.3em;
      padding: 1% 7%;
      text-align: left;
    }

    section.maintext span.readfull {
      margin: 4.7%;
    }

    section.maintext span.readfull2 {
      margin: 4.7%;
    }

    .teaser {
      width: 77%;
      margin: 7%;

    }

    .tright, .tleft {
      float: none;

    }

    .teaser blockquote {
      font-size: 1.7em;
    }

    .divider .caption {
      position: absolute;
      top: auto;
      bottom: 2%;
      width: 82%;
 
    }

    section.mainvideo .content {
      height: 400px ;
    }

    section.mainaudio .audio {
      width: 100%;
      display: block;
    }

    aside.sound {
      /* border: 3px solid #333;*/
      background-color: #aaa;
      width: 82%;
      height: 100%;
      margin: 1%;
      padding: 7%;
    }

    section.gmapmain .content {
      width: 98%;
      height: 400px;
    }

    section.knightlab .timeline {
      width: 100%;
      height: 800px;
    }

    .twitter {
      width: 95%;
      margin-bottom: 10px;
      padding: 2%;
    }

    section.footer p {
      font-size: 14px;
    }


}





