/* 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: black;
}
iframe {
    min-width: 100%; min-height: 100%;
}


h1, h2, h3 {
  text-align: center;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: black;
  opacity: 1.0;
}

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

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

h3 {
  font: 26px "Lato", sans-serif;
}


/*a {
  color: #f2a2e8;
  text-decoration: none;
}

a:hover {
  color: deeppink;
  background-color: lavenderblush;
}*/

a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: inherit;
  z-index: 1;
  color: #f2a2e8;
}

a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: .07em;
  height: 0em;
  width: 100%;
   background: linear-gradient(to right, #fea3aa,#f8b88b,#faf884,#baed91,#b2cefe,#f2a2e8);
  z-index: -1;
}

a:hover::after {
  height: .1em;
}


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

section .textbox {
    color: black;
    background-color: #fea3aa;
    text-align: center;
    padding: 30px 30px;
    text-align: left;
    /* width: 20%;
    height: 564px;
    top: 5px;*/
}

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

/* BACKGROUND IMAGES for parallax effect */
.divider.bgimg1 {
  background-image: url("../img/marilynheader.jpg");
  min-height: 400px;
  opacity: 1.0;
  filter: grayscale(40%);
}

/* miscellaneous */

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

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

.navbar {
  position: fixed;
  top: 0;
  display: none;
  z-index: 100;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: white;
  position: relative;
  left: 440px;
  font-size: 18px;
}

li {
  float: left;
}

li a {
  display: block;
  color: black;
  text-align: center;
  padding: 8px 10px;
  font-weight: lighter;
  font-style: oblique;
  font-variant-caps: titling-case;
}

/* Change the link color to #111 (black) on hover */
li a:hover {
   border: white;
   color: #f2a2e8;
}

/* DIVIDERS */

.divider {
  position: relative;
}

.divider .caption {
  position: absolute;
  top: 10%;
  text-align: center;
  color: #fff;
  letter-spacing: 2px;
  width: 27%;
  padding: 20px;
  font-size: 1.1em;
  left: 32%;
  text-shadow: 2px 2px 8px white;
}

/* 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: snow;
  width: 100%;
  font-size: 53px;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 4px 4px 6px black;
}


.title h2 {
  opacity: 1;
  color: white;
  font-size: 31px;
  margin-bottom: 10%;
  text-shadow: 4px 4px 6px #000000;
}

.byline {
  color: black;
  padding: 11px;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
}

.byline:hover::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    height: 2px;
    width: 100%;
    background: #444;
    background: linear-gradient(to right, #fea3aa,#f8b88b,#faf884,#baed91,#b2cefe,#f2a2e8);
}

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

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

.title0 h2 {
  opacity: 1;
  color: white;
  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 */;
  padding-bottom:40px;
}

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


/* Text embed teasers */

.teaser {
  border-top: 15px solid black; /*adds fat line above */
  border-left: 2px solid black; /*adds thin line on left */
  width: 350px;
  height: auto;
  margin: 30px;
  padding: 20px;
  transition: color 0.25s;
}

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

.tright, .tleft {
  font-size: 0.9em;
}

.tright {
  float: right;
}

.tleft {
  float: left;
}

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

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

.teaser blockquote {
  display: block;
  background: white;
  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: black;
  text-align: left;
  font-style: italic;


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

.teaser blockquote::before{
  content: "\201C"; /*Unicode for Left Double Quote*/

  /*Font*/
  font-family: Georgia, serif;
  font-size: 60px;
  font-weight: bold;
  color: black;

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

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

aside.sound {
    height: 200px;
    width: 200px;
    padding: 54px;
    margin: 2px;
    float: left;
    border: 2px solid;
    border-image-source: linear-gradient(to right, #fea3aa,#f8b88b,#faf884,#baed91,#b2cefe,#f2a2e8);
    border-image-slice: 2;
    background-color: white;
    position: relative;
}

aside.sound img {
    width: 70%;
    align-items: center;
    position: relative;
    left: 23px;
}

aside.sound p {
    position: relative;
    right: 12px;
    bottom: 6px;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    font-style: oblique;
    font-weight: bold;
}

aside.sound audio {
  width: 90%;
  height: 25px;
  padding-bottom: 4px;
}

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

/* Hanky Code Section */


#hankycode {
  width: 800px;
  margin: 0 auto;
}

.hankycodetitle {
  color: black;
  padding: 11px;
  margin-top: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  text-align: center;
}

.hcodetext {
  color: black;
  background-color: white;
  text-align: justify;
}

.jayquote p {
  text-align: justify:
  padding: 10%;
  margin: 0;
  text-indent: 2em;
}


.rainbowbar {
  width: 100%;
  height: 4px;
  margin-top: 21px;
  background: linear-gradient(to right, #fea3aa,#f8b88b,#faf884,#baed91,#b2cefe,#f2a2e8);
}

/* .squarecontainer{
  width: 56%;
  display: inline-block;
  vertical-align: top;
}


.lefttext {
  width: 24%;
  display: inline-block;
  vertical-align: top;
  text-align: right;
  padding-right: 55px;
}

.righttext {
  width: 24%;
  display: inline-block;
  vertical-align: top;
}

.leftcol {
  width: 27%;
  float: right;
}

.rightcol {
  width: 27%;
  float: left;
  margin-left: 25px;
}

.midcol {
  width: 10%;
  float: left;
  text-align: center;
  border: 1px solid black;
  vertical-align: top;
} */

.hanky-cols {
  width: 800px;
  margin: 0 auto;
}

.col {
  width: 10%;
  display: inline-block;
  vertical-align: top;
}

.col p {
  padding-left: 15px;
}

#lefttext {
  text-align: right;
  padding-top: 5px;
}

#rightttext .text {
  text-align: left;
  padding-top: 40px;
}

#lefttext, #righttext {
  width: 27%;
}


#colornames {
  width: 11%;
  text-align: center;
  padding-top: 65px;
}


.hankyleft {
  font-size: 24px;
  color: black;
  text-align: center;
}

.hankyright {
  font-size: 24px;
  color: black;
  text-align: center;
}

.square {
  width: 80px;
  height: 90px;
}

.text {
  width: 200px;
  padding-top: 25px;
}

.dkblue_left {
  background-color: darkblue;
}

.dkblue_left p {
   color: oldlace;
  padding: 32px;
}

.dkblue_right {
    background-color: darkblue;
}

.dkblue_right p {
   color: oldlace;
    padding: 32px;
}

.red_left {
  background-color: crimson;
}

.red_left p {
   color: oldlace;
    padding: 32px;
}

.red_right {
    background-color: crimson;
}

.red_right p {
   color: oldlace;
    padding: 32px;
}

.lblue_left {
  background-color: lightblue;
}

.lblue_left p {
   color: oldlace;
    padding: 32px;
}

.lblue_right {
    background-color: lightblue;
}

.lblue_right p {
   color: oldlace;
    padding: 32px;
}

.orange_left {
  background-color: darkorange;
}

.orange_left p {
   color: oldlace;
    padding: 32px;
}

.orange_right {
    background-color: darkorange;
}

.orange_right p {
   color: oldlace;
    padding: 32px;
}


.yellow_left {
  background-color: gold;
}

.yellow_left p {
   color: oldlace;
    padding: 32px;
}

.yellow_right {
    background-color: gold;
}

.yellow_right p {
   color: oldlace;
    padding: 32px;
}

.green_left {
  background-color: forestgreen;
}

.green_left p {
   color: oldlace;
    padding: 32px;
}
.green_right {
    background-color: forestgreen;
}

.green_right p {
   color: oldlace;
    padding: 32px;
}


.brown_left {
  background-color: saddlebrown;
}

.brown_left p {
   color: oldlace;
    padding: 32px;
}
.brown_right {
    background-color: saddlebrown;
}

.brown_right p {
   color: oldlace;
    padding: 32px;
}


.gray_left {
  background-color: slategray;
}

.gray_left p {
   color: oldlace;
    padding: 32px;
}

.gray_right {
    background-color: slategray;
}

.gray_right p {
   color: oldlace;
}

.black_left {
  background-color: black;
}

.black_left p {
   color: oldlace;
}

.black_right {
    background-color: black;
}

.black_right p {
   color: oldlace;
}

/* GLOSSARY */

#glossary-slider {
  width: 700px;
  margin: 0 auto;
}

.slide {
  width: 95%;
  margin: 0 auto;
  display: none;
  min-height: 330px;
  padding: 20px 0px;
}

.active-slide {
  display: block;
  position: relative;
}

.slide-wrapper {
  width: 90%;
  margin: 20px 0 0 11%;
}

.line-arrow {
  position: absolute;
  overflow: hidden;
  display: inline-block;
  font-size: 16px;
  /*set the size for arrow */
  width: 2em;
  height: 2em;
  top: 30px;
}

.line-arrow.left {
  border-top: 6px solid #333;
  border-left: 6px solid #333;
  transform: rotate(-54deg) skew(-20deg);
  left: 1%;
}

.line-arrow.right {
  border-top: 6px solid #333;
  border-right: 6px solid #333;
  transform: rotate(54deg) skew(20deg);
  right: 1%;
}

.line-arrow:active, .line-arrow.active {
  border-width: 6px;
}

.line-arrow:hover {
  cursor: pointer;
  opacity: 0.5;
}

.slide-header {
  font-size: 2.3rem;
  font-weight: 900;
  width: 90%;
  text-transform: uppercase;
  padding-bottom: 10px;
  text-align: center;
}

.slide-title {
  font-size: 1.5rem;
  font-weight: 700;
  width: 90%;
  text-align: center;
}

.slide-desc {
  font-size: 1.2rem;
  padding: 4px 0;
  width: 90%;
  line-height: 1.3;
}

.source, .credit {
  display: inline-block;
}

.credit {
  float: right;
}

@media only screen and (max-width: 640px) {
    #embed-container p {
        font-size: 1.32rem;
        line-height: 1.05;
    }

    .slide img {
      width: 95%;
    }

    .slide-wrapper {
      width: 63%;
      margin: 10px 0 0 0;
    }

    .slide-desc {
      width: 86%;
    }

    .line-arrow {
      position: absolute;
      overflow: hidden;
      display: inline-block;
      font-size: 13px;
      /*set the size for arrow */
      width: 2em;
      height: 2em;
      top: 40%;
    }

    .line-arrow.left {
      border-top: 6px solid #333;
      border-left: 6px solid #333;
      transform: rotate(-54deg) skew(-20deg);
      left: 1%;
      top: 65px;
    }

    .line-arrow.right {
      border-top: 6px solid #333;
      border-right: 6px solid #333;
      transform: rotate(54deg) skew(20deg);
      right: 44%;
      top: 62px;
    }

    .slide-title {
        font-size: 1.32rem;
        line-height: 1;
        padding: 0px;
    }

}


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

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

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

*/

section.footer {
  background-color: white;
  color: black;
  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: 768px) and (max-device-width: 1024px) and (orientation : portrait) {

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

    section.mainvideo {
      display: block;
    }

    section.textbox h3 {
      right: 20px;
      position: relative;
    }

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

    .hankycodetitle {
        text-align: center;
        position: relative;
        right: 9px;
    }

    .hankycodetitle:hover::after {
      display: none;
    }


    #hankycode {
      width: 100%;
    }

    .col {
      position: relative;
      right: 100px;
    }

    .col p {
        font-size: 12px;
       position: relative;
      margin: -3px;
      top: 24px;
  }

    #colornames {
      font-size: 12px;
      width: 64px;
    }

    .square {
      width: 58px;
      height: 40px;
    }

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

   #Lane h1, h3 {
    right: 118px;
    position: relative;
    text-align: center;
    bottom: 60px;
  }

  #Hannah h1, h3 {
    right: 118px;
    position: relative;
    text-align: center;
    bottom: 60px;
  }

  #Jay h1, h3 {
    right: 118px;
    position: relative;
    text-align: center;
    bottom: 60px;
  }

   #Alystair h1, h3 {
    right: 118px;
    position: relative;
    text-align: center;
    bottom: 60px;
  }

  #Haley2 h1, h3 {
    right: 118px;
    position: relative;
    text-align: center;
    bottom: 60px;
  }

  .help {
    position: relative;
    left: 100px;
    padding-top: 50px;
  }

  .navbar li a {
    display: none;
  }

    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%;
      height: 900px;
      display: block;
    }

  aside.sound {
        /* border: 3px solid #333; */
        width: 32%;
    margin: 1%;
    padding: 7%;
    height: 179px;
  }

  aside.sound audio {
        width: 100%;
  }

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


}
