/* 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 18px/1.8 "Lato", sans-serif;
/*  color: lightskyblue;*/
}
iframe {
    min-width: 100%; min-height: 100%;
}


h1 {
  text-align: center;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #333;
}

h2 {
  text-align: center;
  letter-spacing: 2px;
  color: #333;
}

h3 {
  text-align: center;
  letter-spacing: 3px;
  color: white;
  font-size: 1.7em;
  display: block;
}

h4 {
  font-weight: normal;
  color: white;
  font-size: 1em;
  display: block;
  text-align: left;
  margin-bottom: -2%;
}

h5 {
  font-weight: bold;
  color: white;
  font-size: 1.1em;
  text-transform: capitalize;
  display: block;
}

h1 {
  font: 43px "Lato", sans-serif;
}

h2 {
  font: 23px "Lato", sans-serif;
  font-weight: bold;
}

a {
  color: #2077b6;
  text-decoration: none;
  text-decoration: underline;
}

a:hover {
  color: ##ffbc05;
/*  background-color: blanchedalmond;*/
  text-decoration: underline;
}

section {
  min-height: 400px;
  position: relative;
  padding: 30px 30px;
  display: -webkit-flex;
  display: flex;
}

section .textbox {
  color: white;
  background-color: #333;
  padding: 5px 15px;
  text-align: left;
  width: 23%;
}

section .textbox p {

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

}

.img {
  width: 100%;
}

.overlay1 {
   position: fixed;
   top: 0px;
   left: 0px;
   width: 100%;
   height: 100%;
   background-color: rgba(95, 183, 229, .80);
   display: none;
   overflow-y: scroll;
}

.content1 {
   position: absolute;
   top: 5%;
   right: 18%;
/*   border: 2px solid black;*/
   width: 60%;
   background-color: #333;
   color: linen;
   padding: 2%;
}

.close1 {
   position: absolute;
   top: -17px;
   right: -20px;
   font-size: 3em;
   padding: 10px 20px;
   border: 4px solid #333;
   color: #333;
   border-radius: 50%;
   cursor: pointer;
}

.overlay {
   position: relative;
   top: 0px;
   left: 0px;
   width: 70%;
   height: 100%;
   display: none;
   background-color: white;
  overflow-y: scroll; 
}

.overlaycontent {
    position: absolute;
    top: 5%;
    right: 25%;
    width: 45%;
    height: 89%;
    background-color: #333;
    color: linen;
    padding: 2%;
    bottom: 5%;
    margin: auto;
    }

.close {
   position: absolute;
   top: -17px;
   right: -20px;
   font-size: 3em;
   padding: 10px 20px;
   border: 4px solid #333;
   color: #333;
   border-radius: 50%;
   cursor: pointer;
}

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

header {
  background-image: url("../img/house.gif");
  width: 100%;
  height: 95vh;
}

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

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

.divider.bgimg3 {
  background-image: url("../img/cover.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 */

.inforight iframe {
  width: 100%;
  cursor: pointer;
}

.inforight a {
  text-align: center;
}

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;
}

/* DIVIDERS */

.divider {
  position: relative;
}

/*.divider .caption {
  position: absolute;
  top: 10%;
  text-align: left;
  color: #fff;
  letter-spacing: 2px;
  width: 27%;
  border: 1px solid black;
  background-color: rgba(0,0,0, 0.4);
  padding: 20px;
  font-size: 1.1em;
  box-shadow: 2px 2px 8px #000000;
  left: 4%;
}*/

.movinghousescontainer {
margin: 10px;
color: #333;
height:auto;
margin-left: auto;
margin-right: auto;
display: block;
overflow:auto;
max-width: 480px;
text-align: center;
width: 100%;
}

.slideshowcontent1{
margin: 10px;
color: #333;
height:auto;
margin-left: auto;
margin-right: auto;
display: block;
overflow:auto;
max-width: 480px;
text-align: center;
width: 100%;
}

/*.movinghouses {
  display: block;
  margin: auto;
  width: 100%;
}*/

/*.img{
  display: block;
  margin-left: auto;
  margin-right: auto;
}*/
.caption2 {
font-size: .9em;

margin-left: 0%;
color: #666;
}

.caption3 {
font-size: .9em;

margin-left: 0%;
color: #666;
}

.caption1 {
   position: absolute;
   bottom: 39.5%;
   left: 5%;
   width: 84.5%;
   background-color: rgba(0,0,0,.5);
   color: white;
   display: none;
   font-size: .8em;
   padding: 1% 3%;
}

.photocred1 {
   position: absolute;
   bottom: 0%;
   left: 93%;
   width: 6%;
   background-color: rgba(0,0,0,.5);
   color: snow;
   font-size: .5em;
   padding: .25% .25%;
}

.photocred2 {
   position: absolute;
   bottom: 0%;
   left: 90%;
   width: 11%;
   color: snow;
   font-size: .5em;
   padding: 0px;
   margin: 0 auto;
}

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




.title {
  width:60%;
  padding: 5%;
  margin-left: 15%;
  text-align: center;
}

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

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

.byline {
  background-color: #333;
  color: white;
  padding: 11px;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.gameline {
  background-color: #333;
  color: white;
  padding: 11px;
  font-size: 37px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
}

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

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

.title0 h2 {
  opacity: 1;
  color: #333;
  font-size: 27px;
  font-weight: bold;
  margin-bottom: 57px;
}


section.movinghouses {
  position: relative;
  display: block;
  text-align: justify;

}

/* MAIN TEXT */

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

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


/* Text embed teasers */

.teaser {
  border-top: 15px solid #333; /*adds fat line above */
  border-left: 2px solid #333; /*adds thin line on left */
  width: auto;
  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;
  cursor: pointer;
/*  width: 50%;*/
}

.tright2 {
  float: right;
  cursor: pointer;
  width: 30%;
  height: 30%;
}

.tleft {
  float: left;
  position: relative;
}

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

.teaser img {
  width: 100%;
  height: 1000%;
/*  border: 1px solid #333;*/
}
/*
.infogram-embed {
  display: block;
  position: relative;
  border-top: 15px solid #333; 
  border-left: 2px solid #333; 
  width: 550px;
  height: auto;
  margin-left: 575px;
  padding: 20px;
}*/

.overlay {
  position: fixed;
  background-color: #fff;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
}

.modal {
  position: absolute;
  width: 100%;
  /*top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);*/
}

.content {
  width: 60%;
  margin: auto;
}

.content iframe {
  width: 100%;
}

.infogram-embed {
  width: 75%;
  margin: auto;
}

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

  
  /*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 */

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

.videotext {
  width: 27%;
  min-height: 98%;
  float: left;
}


/* This fixes the collapsing */
.youtube { 

    min-height: 100px;
    min-width: 56.25;
    max-height: 315px;
    max-width: 560px;
           }
/* MAIN AUDIO */

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

.audiotext {
  width: 27%;
}

section.mainaudio .audio {
  width: 73%;
  display: flex;
  flex-wrap: wrap;
  margin-right: auto;
  margin-left: auto;
  display: block;
}

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

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

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: 100%;
}

/*.slideshowcontent {*/
   /*width: 54%;
   height: 100%;
   margin: auto;*/
/*}*/

/*section.slideshowcontent1 {*/



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

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


/* 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;
}

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


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

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

.twittertext {
  width: 23%;
}

.twitter { 
  width: 77%; max-height: 600px; 
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row-reverse;
  flex-direction: row-reverse;
}

.twitter aside {
  width: 100%; max-height: 600px;
  margin-left: 1%;
  overflow: scroll;
}


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

.dataviztext {
  width: 37%;
}

.dataviz { 
  margin: 1% auto;
}

.dataviz img {
  width: 100%;
}

/*RIDDLE*/
.riddle-cta.logo {
  display: none !important;
}

section.footer {
  background-color: #333;
  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;
    }
}    

/* Turn off flex for iPad portrait mode  */

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

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

    section.mainvideo {
      display: block;
    }

    section.mainvideo .videotext {
      width: 89%;
      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: 813px) {
    section.maintext p {
      padding: 1% 11%;
   }
   
    .parallax {
      background-attachment: scroll;
    }

    header {
  height: 95%;
}

.overlaycontent {
  width: 90%;
  margin: auto;
  bottom: 0%;
  padding: 0%;
  margin-right: 3%;
  right: 3%;
}

.close1 {
   position: absolute;
   top: -17px;
   right: -20px;
   font-size: 2em;
   padding: 4px 15px;
   border: 4px solid #333;
   color: #333;
   background-color: white;
   border-radius: 50%;
   cursor: pointer;
}

.close {
   position: absolute;
   top: -5px;
   right: -16px;
   font-size: 2em;
   padding: 0px 15px;
   border: 4px solid #333;
   color: #333;
   background-color: white;
   border-radius: 50%;
   cursor: pointer;
}

.content1 {
    width: 80%;
   position: absolute;
   top: 5%;
   right: 8%;
/*   border: 2px solid black;*/
   width: 80%;
   background-color: #333;
   color: linen;
   padding: 2%;
}

    .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 {
  width: 65%;
  margin-left: 13%;

}

    .title h1 {
      font-size: 27px;
      margin-top: 2%;
      margin-bottom: 6%;

    }

    .title h2 {
      font-size: 18px;
      width: 88%;
      margin-left: 4%;
      margin-bottom: 5%;

    }

    .title0 {
      padding: 2%;

    }

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

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


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

    .gameline {
      padding: 9px;
      font-size: 22px;
      letter-spacing: 3px;
    }

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

    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;*/
      position: relative;
      cursor: pointer;

    }

    .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;
    }
}

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


header {
  height: 95%;
}

.overlaycontent {
  width: 90%;
  margin: auto;
  right: 3%;
}

.close1 {
   position: absolute;
   top: -9px;
   right: -9px;
   font-size: 1.1em;
   padding: 0px 9px;
   border: 4px solid #333;
   color: #333;
   background-color: white;
   border-radius: 50%;
   cursor: pointer;
}

.close {
   position: absolute;
   top: -9px;
   right: -5px;
   font-size: 1.1em;
   padding: 0px 9px;
   border: 4px solid #333;
   color: #333;
   background-color: white;
   border-radius: 50%;
   cursor: pointer;
}

.content1 {
    width: 80%;
   position: absolute;
   top: 5%;
   right: 8%;
/*   border: 2px solid black;*/
   width: 80%;
   background-color: #333;
   color: linen;
   padding: 2%;
}

    .parallax {
      background-attachment: scroll;
    }

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

    }

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

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

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

.title {
  width: 80%;
  margin-left: 6%;

}

.slideshowcontent1 {
/*  width: 85%;
  margin-left: 7%;*/
}

.movinghousescontainer {
 /* width: 86%;*/
}

    .title h1 {
      font-size: 31px;
      margin-top: 15%;

    }

    .title h2 {
      font-size: 20px;
      margin-bottom: 15%;
    }

    .title0 {
      padding: 2%;

    }

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

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


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

    .gameline {
      padding: 9px;
      font-size: 22px;
      letter-spacing: 3px;
    }

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

    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;
      position: relative;
      cursor: pointer;

    }

    .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;
    }


}





