/* 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: %;
  margin: 0;
  font: 400 18px "Neue Helvetica", sans-serif;
  color: black;

}

iframe {
    min-width: 100%; min-height: 100%;
}


.bigimage {
	position: =webkit- sssticky;
	position: sticky;
	top: 0;
	z-index: -1;
	height: 80%;
}


.bigimage img {
	width: 100%;
	height: 100%;
}


.words {
	background-color: white;
	padding: 20px 40px;
}


h1, h2, h3, {
  text-align: center;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: black;
}


h1 {
  font: 43px "Neue Helvetica", sans-serif;
  font-style: normal;
  color: black;
  font-weight: bold;
  text-transform: capitalize;
}

h2 {
  font: 29px "Neue Helvetica", sans-serif;
}

h3 {
  font: 18px "Neue Helvetica", sans-serif;
  font-style: italic;
  color: black;
  font-weight: bold;
}

h4, h5, {
  text-align: center;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: white;
}

h4 {
  font: 20px "Neue Helvetica", sans-serif;
  color: black;
  font-weight: bold;
  color: red;
  padding-bottom: 20%;
} 


h5 {
  font: 20px "Neue Helvetica", sans-serif;
}


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

a:hover {
  color: black;
  background-color: yellow;
  text-decoration: none;
}

section {
  min-height: 400px;
  background-color: pink;
  position: relative;
  padding: 10px 10px;
  display: -webkit-flex;
  display: flex;
}

section .textbox {
  color: #ddd;
  background-color: #282E34;
  text-align: center;
  padding: 20px 20px;
  text-align: left;
  width: 23%;
}

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/coverphoto.jpg");
  height: 100%;
}

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

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

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

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

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

.divider.bgimg6 {
  background-image: url("../img/1-4.jpeg");
  min-height: 500px;
}


/* miscellaneous */

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

.words {
  color: black;
  background-color: white;
  text-align: center;
  padding: 30px 30px;
  text-align: justify;
}


/* DIVIDERS */

.divider {
  position: relative;
}

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

/* 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: gold;
  color: black;
  font-weight: bold;
  padding: 14px;
  font-size: 25px;
  letter-spacing: 1px;
  text-transform: capitalize;
}

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


/* MAIN TEXT */

section.maintext {
  position: relative;
  color: black;
  background-color: white;
  text-align: center;
  text-align: justify;
  display: block; /* removes display: flex */;
}

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


/* Text embed teasers */

.teaser {
  border-top: none; /*adds fat line above */
  border-left: none; /*adds thin line on left */
  width: 300px;
  height: auto;
  margin: 20px;
  padding: 20px;
}

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

.tright {
  float: right;
}

.tleft {
  float: left;
}

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

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

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

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

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


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



/* MAIN AUDIO */

.container {
  position: relative;
  width: 50%;
}

.image {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.container:hover .image {
  opacity: 0.3;
}

.container:hover .middle {
  opacity: 1;
}

.text {
  background-color: #4CAF50;
  color: white;
  font-size: 16px;
  padding: 16px 32px;
}


/* PHOTO GALLERY / SLIDESHOW */

{
  box-sizing: border-box;
}

/* Position the image container (needed to position the left and right arrows) */
.container {
  position: relative;
}

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

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

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

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

/* Container for image text */
.caption-container {
  text-align: center;
  background-color: #222;
  padding: 2px 16px;
  color: white;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side */
.column {
  float: left;
  width: 16.66%;
}

/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}


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

}
/*
.slideshowcontent {
   width: 77%;
   height: 50%;
   background-color: none;
   padding: 20px;
}

.cycle-slides*//*how { 
    width: 100%; max-width: 1400px; margin: 0px auto; 
}

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




/* 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: pink;
  color: black;
  padding: 10px 10px;
  min-height: 30px;
  text-align: left;
  font-size: 1em;
}




/* 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: 768px) and (max-device-width: 1024px) and (orientation : portrait) { 

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

    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: 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: 27px;
    }

    .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 ;
      padding: 10px;
    }

    section.mainaudio .audio {
      width: 100%;
      display: block;
      padding-top: 20px;
    }

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

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


}





