/* -------------------- UNIVERSAL TEXT STYLING -------------------- */

body.hidden {
  display: none;
}

body {
  color: #eee;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  text-align: center;

  /* 20px/28px */
  font-size: 1.25em;
  line-height: 1.4em;

  /* gets rid of horizontal scroll from the timeline */
  overflow-x: hidden;
}

h1 {
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 20px 20px 20px;
  align-self: center;

  /* 44px/51px */
  font-size: 2.2em;
  line-height: 1.15em;
}

h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  padding-bottom: 30px;

  /* 40px/40px */
  font-size: 2em;
  line-height: 1em;
}

h2::after {
  content: ' ';
  display: block;
  height: 4px;
  width: 50px;
  margin: auto;
  background: linear-gradient(to right, #f49639, #c13658);
  margin-top: 20px;
  transition: all 1s ease-out;
}

h2.lineGrows::after {
  width: 150px;
}

h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  padding-bottom: 30px;

  /* 30px/33px */
  font-size: 1.5em;
  line-height: 1.1em;
}

h4 {
  font-weight: 700;
  padding-bottom: 4px;

  /* 21px/25px */
  font-size: 1.05em;
  line-height: 1.1667em;
}

p {
  padding-bottom: 18px;
}

.boldText {
  font-weight: 700;
}

.italicText {
  font-style: italic;
}

.largerPText, .quoteSection p:first-child {
  font-weight: 300;

  /* 22px/37px */
  font-size: 1.1em;
  line-height: 1.7em;
}

.mediumPText {
  font-weight: 300;

  /* 20px/30px */
  font-size: 1em;
  line-height: 1.5em;
}

.quoteSection p:first-child {
  padding-bottom: 100px;
}

.descriptionText {
  padding-bottom: 50px;
  max-width: 610px;
  margin: 0 20px;
}

.firstLineHeading {
  display: block;
  font-size: 0.5em;
  margin-bottom: -8px;
}

.lineBreak {
  display: block;
}

/* This is for part of the h1 */
.hiddenText {
  display: block;
  text-indent: -9999px;
  font-size: 0px;
  line-height: 0px;
}





/* -------------------- UNIVERSAL LAYOUT -------------------- */
body {
  background-color: #32383f;
  margin: 0 auto;
}

#movieIntroSection, .fadeInOutSimple, .fadeInOutPlus, .fadeInOutStagger, #compositeIconSection {
  display: flex;
  align-items: center;
  height: 100vh;
}

.fadeInOutSimple, .fadeInOutPlus, .fadeInOutStagger {
  margin-bottom: -900px;
}

.centerView {
  width: 100%;
}

.width850, .width1070, .width1170, .quoteSection p {
  max-width: 610px;
  margin: 0 20px;
}

#moviesSection img, #outcomesSection img, #logisticsSection img, #toneMVPs img {
  max-width: 60%;
  padding-bottom: 4px;
}





/* -------------------- SECTION STYLING -------------------- */



/* ------ Header Section ------ */

header {
  margin-bottom: 0;
}

#headerTop {
  background: url('../img/introSection/textured-bg.jpg') no-repeat left/cover;
  padding-top: 180px;
}

#headerTop::after {
  content: ' ';
  display: block;
  height: 40px;
  background: linear-gradient(to right, #f49639, #c13658);
}

#headerFirstLine {
  display: flex;
  flex-direction: column;
}

#headerTop div:nth-child(2) {
  width: 100%;
  margin: 0 auto;
}

.timeTravelText {
  max-height: 210px;
}

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



/* ------ Centered Sections ------ */
.centerView ul {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.centerView li {
  width: 200px;
}

.centerView li {
  padding-right: 20px;
}

.centerView li:last-child {
  padding-right: 0;
}



/* ------ Quote Sections ------ */
.quoteSection {
  background: linear-gradient(to right, #f49639, #c13658);
  padding: 150px 0;
  width: 100%;
}

.quoteSection p:first-child {
  padding-bottom: 30px;
}

.quoteSection p:nth-child(2) {
  padding-bottom: 0;
}

/* ------ Video Sections ------ */
.videoSpot img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}



/* ------ Movies Section ------ */

/* --- Movie Intro Section --- */
#compositeIcon {
  visibility: hidden;
}

#moviesSection .centerView li {
  width: 100%;
}

#moviesSection ul {
  display: flex;
  flex-direction: column;
}

#moviesSection ul li {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
}

#moviesSection li img {
  width: 80px;
  padding-right: 20px;
  padding-bottom: 18px;
}



/* --- Movie Detail Section --- */
#movieDetailSection {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: space-between;
  width: 100%;
}

#plotBackFuture::before {
  content: url("../img/icons/thumb-BackFuture.png");
  margin-bottom: 20px;
  display: block;
}

#plotBillTed::before {
  content: url("../img/icons/thumb-BillTed.png");
  margin-bottom: 20px;
  display: block;
}

#plotTerminator::before {
  content: url("../img/icons/thumb-Terminator.png");
  margin-bottom: 20px;
  display: block;
}

#plotLooper::before {
  content: url("../img/icons/thumb-Looper.png");
  margin-bottom: 20px;
  display: block;
}

#plotEndgame::before {
  content: url("../img/icons/thumb-Endgame.png");
  margin-bottom: 20px;
  display: block;
}

.movieDetailItem {
  max-width: 930px;
  /*width: 100%;*/
}

.movieDetailItem .centerView {
  width: 90%;
}

.goodVsBad {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.goodVsBad h3:after {
  content: ' ';
  display: block;
  height: 4px;
  margin: auto;
  background: linear-gradient(to right, #f49639, #c13658);
  margin-top: 20px;
}

.versusText {
  display: none;
}

.badGuys {
  margin-top: 30px;
}

.characterText {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.characterImages {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  max-height: 140px;
  margin-bottom: 8px;
}

#endgameSection .goodGuys .characterImages {
  justify-content: center;
}

#endgameSection .badGuys .characterImages {
  max-height: 200px;
}

.characterImages img {
  max-width: 100%;
}

.badGuyThanos img {
  height: 130px;
}

#sarahConnorImg, #tedImg {
  z-index: 1;
}

.characterText div {
  width: 45%;
}

.overlapSmall {
  margin-right: -80px;
}

.overlapLarge {
  margin-right: -60px;
}

.badGuys .characterImages {
  display: flex;
  justify-content: center;
}

#cycleImg {
  align-self: center;
}

/* Adjusting spacing for Avengers, which has just 1 text item */
#endgameSection .characterText div {
  width: 100%;
}

#endgameSection .characterText {
  justify-content: center;
}



/* --- Time Machine Section --- */
#timeMachineSection ul {
  align-items: center;
}

#timeMachineSection li {
  width: 100%;
}

#timeMachineSection img {
  max-width: 100%;
}

#timeMachineSection li:nth-child(3) {
  flex-grow: 2;
  width: 125%;
}



/* --- Stakes Section --- */
#stakesSection {
  width: 100%;
}

#stakesSection svg, #stakesSection img {
  max-width: 100%;
  max-height: 100%;
}



/* --- Logistics Section --- */
#logisticsQuoteSpot1 ul, #logisticsQuoteSpot2 ul {
  flex-direction: column;
}

#logisticsQuoteSpot1 li, #logisticsQuoteSpot2 li {
  width: 100%;
}

#logisticsQuoteSpot1 li:first-child, #logisticsQuoteSpot2 li:first-child {
  padding-bottom: 30px;
}

#logisticsQuoteSpot1 img {
  width: 30%;
}

#logisticsQuoteSpot1 p {
  padding: 0 30px;
}

#logisticsQuoteSpot2 .characterText div:nth-child(2) {
  width: 80%;
}

#logisticsQuoteSpot2 .characterImages {
  justify-content: space-between;
  margin-bottom: 0;
}

#termLogisticsImg img {
  width: 70%;
}

#logisticsQuoteSpot2 .characterText div:first-child {
  margin-right: 8px;
}

/* Looper image is spacing differently -- not sure why, but this compensates */
#looperLogisticsImg {
  margin-top: -8px;
  padding-bottom: 8px;
}

#looperLogisticsImg img {
  width: 20%;
}

#logisticsQuoteSpot2 li:nth-child(2) .characterImages, #logisticsQuoteSpot2 li:nth-child(2) .characterText {
  justify-content: center;
}

#logisticsQuoteSpot3 .characterText {
  flex-direction: column;
}

#logisticsQuoteSpot3 .characterText div {
  width: 100%;
}

#logisticsQuoteSpot3 img {
  max-width: 80%;
}



/* --- Timeline Section --- */
#timelineImage {
  width: 6400px;
}

#addYellowLine {
  font-style: italic;
  font-size: 0.9em;
  line-height: 6em;
  border: 1px solid #6a6a6a;
  padding: 18px;
}

#addYellowLine:before {
  content: ' ';
  display: inline-block;
  height: 3px;
  width: 40px;
  background-color: #f49639;
  margin: 0 12px 4px 0;
}

#timelineSection .descriptionText {
  padding-bottom: 120px;
}



/* --- Tone Section --- */
#toneMVPs .centerView {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.MVPBox {
  max-width: 100%;
}

.MVPBox h3 {
  /* 28px */
  font-size: 1.4em;
}

.MVPBox:nth-child(2) h3 {
  margin-top: 40px;
}

.MVPBox:first-child img {
  margin-top: -30px;
}

.MVPBox:nth-child(2) img {
  margin-top: -10px;
}

#toneMVPs .centerView div:first-child h3:after {
  content: ' ';
  display: block;
  height: 4px;
  margin: auto;
  background-color: #f49639;
  margin-top: 20px;
}

#toneMVPs .centerView div:nth-child(2) h3:after {
  content: ' ';
  display: block;
  height: 4px;
  margin: auto;
  background-color: #c13658;
  margin-top: 20px;
}



/* --- Outcomes Section --- */
#outcomesSection ul {
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
}

#outcomesSection ul li {
  width: 26%;
}

#outcomesSection ul li:last-child {
  margin-top: 20px;
  padding-right: 0;
}

#outcomesSection ul li:nth-child(3) {
  padding-right: 0;
}



/* --- Quiz Section --- */
#lastVideo {
  margin-bottom: 1px;
  object-fit: cover;
}

#quizSection {
  padding-top: 150px;
  width: auto;
}

#quizSection .centerView {
  width: auto;
}

#quizSection .largerPText {
  border-left: 10px solid;
  border-image: linear-gradient(to bottom, #f49639, #c13658);
  border-image-slice: 1;
  padding: 0 0 0 30px;
  margin: -10px 0 40px 0;
  text-align: left;
  font-size: 1em;
}

#answerButtons button {
  border: none;
  background-color: transparent;
  transition: 0.05s ease-in-out;
  padding: 0;
  cursor: pointer;
  width: 100%;
  max-width: 100px;
}

.answerBtnHover:hover {
  transform: scale(0.97);
}

#answerButtons img {
  width: 100%;
}

#answerButtons li {
  padding-right: 20px;
}

#answerButtons li:last-child {
  padding-right: 0;
}

#getNewQuoteBtn {
  border: 2px solid;
  border-image: linear-gradient(45deg, #f49639, #c13658);
  border-image-slice: 1;
  font-size: 1em;
  padding: 18px;
  color: #fff;
  background-color: transparent;
  min-width: 150px;
  width: 150px;
  margin-left: 30px;
  cursor: pointer;
}

#getNewQuoteBtn:hover {
  background: linear-gradient(45deg, #f49639, #c13658);
}

#retakeQuizBtn {
  border: none;
  font-size: 1em;
  padding: 18px;
  color: #fff;
  background-color: #c13658;
  min-width: 150px;
  width: 150px;
  transition: 0.3s ease-in-out;
  align-self: flex-start;
  margin-top: 18px;
}

#retakeQuizBtn:hover {
  background-color: rgba(193, 54, 88, 0.9);
}

#feedbackContainer, #quizScoreContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

#quizFeedback {
  text-align: left;
  padding-bottom: 0;
  font-style: italic;
}

#quizScoreContainer p {
  text-align: left;
  padding-bottom: 0;
}

#quizScoreContainer {
  border-top: 3px solid #2b3037;
  padding-top: 40px;
  margin-top: 40px;
  flex-direction: column;
}

button:focus {
  outline: none !important;
  border: 1px solid #eee;
  box-shadow: 0 0 2px #eee;
}



/* --- Footer --- */
footer {
  background-color: #272b32;
  margin-top: 150px;
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
}

footer li {
  width: 24px;
  display: inline-block;
  padding: 18px 10px 0 10px;
}

footer li:last-child {
  padding-right: 0;
}

footer p, footer a {
  color: #eee;
  padding-bottom: 0px;
  text-decoration: none;
}

.socialIcons a {
  opacity: 0.75;
  transition: 0.3s ease;
}

.socialIcons a:hover {
  opacity: 0.9;
}

footer a:hover {
  text-decoration: underline;
}





/* -------------------- FOR LARGER SCREENS -------------------- */



/* ----- > 500px ----- */

@media screen and (min-width: 500px) {

  .movieDetailItem .centerView {
    width: 92%;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  footer li {
    padding: 0 10px;
  }

}



/* ----- > 600px ----- */

@media screen and (min-width: 600px) {

  /* -- Universal Styling -- */
  .movieDetailItem .centerView {
    width: 94%;
  }


  /* -- Tone Section -- */
  #toneMVPs .centerView {
    flex-direction: row;
    justify-content: space-around;
  }

  .MVPBox:first-child img, .MVPBox:nth-child(2) img, .MVPBox:nth-child(2) h3 {
    margin-top: 0;
  }

  #toneMVPs img {
    padding-bottom: 18px;
  }


}



/* ----- > 650px ----- */

@media screen and (min-width: 650px) {

  /* ------ Universal Styling ------ */

  .width850, .width1070, .width1170, .quoteSection p {
    margin: 0 auto;
  }

  #moviesSection img, #outcomesSection img, #logisticsSection img, #toneMVPs img {
    max-width: 100%;
  }


  /* ------ Text Styling ------ */

  .descriptionText {
    margin: 0 auto;
  }

  .lineBreakMedium {
    display: block;
  }

  .lineBreakOnlyMedium {
    display: block;
  }



  /* ------ Section Styling ------ */


  /* -- Movie Intro Section -- */
  #moviesSection ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  #moviesSection .centerView li {
    flex-direction: column;
    text-align: center;
    width: 27%;
    padding-right: 0;
  }

  #moviesSection li img {
    width: 90%;
    padding-right: 0;
  }

  #moviesSection ul li:nth-child(4), #moviesSection ul li:last-child {
    margin-top: 20px;
  }

  #moviesSection ul li:first-child, #moviesSection ul li:nth-child(2), #moviesSection ul li:nth-child(4) {
    margin-right: 50px;
  }


  /* -- Movie Detail Section -- */
  .movieDetailItem .centerView {
    width: 100%;
  }

  .goodVsBad {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .versusText {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    color: #f49639;
    margin-top: 10px;

    /* 28px/28px */
    font-size: 1.75em;
    line-height: 1em;

    width: 13%;
  }

  .goodGuys {
    width: 60%;
  }

  .badGuys {
    width: 27%;
    margin-top: 0;
  }

  .characterImages {
    max-height: 180px;
    height: 180px;
  }

  .historyTest img {
    height: 170px;
  }

  #endgameSection .characterImages, #endgameSection .badGuys .characterImages {
    max-height: 150px;
    height: 150px;
  }

  .overlapSmall {
    margin-right: -40px;
  }


  /* -- Logistics Section -- */
  #logisticsQuoteSpot1 .characterImages, #logisticsQuoteSpot2 .characterImages, #logisticsQuoteSpot3 .characterImages {
    max-height: 150px;
  }


  /* -- Outcomes Section -- */
  #outcomesSection ul li:first-child, #outcomesSection ul li:nth-child(2), #outcomesSection ul li:nth-child(4) {
    padding-right: 50px;
  }


  /* -- Quiz Section -- */
  #quizScoreContainer {
    flex-direction: row;
  }

  #retakeQuizBtn {
    margin-left: 30px;
    align-self: auto;
    margin-top: 0;
  }


  /* -- Footer -- */
  footer {
    padding: 40px 40px;
  }


}



/* ----- > 1250px ----- */

@media screen and (min-width: 1250px) {


  /* ------ Text Styling ------ */

  h1 {
    /* 50px/58px */
    font-size: 2.5em;
    padding: 0;
  }

  h2 {
    /* 60px/60px */
    font-size: 3em;
  }

  h3 {
    /* 32px/35px */
    font-size: 2em;
  }

  h4 {
    /* 24px/28px */
    font-size: 1.2em;
    padding-bottom: 12px;
  }

  .largerPText, .quoteSection p:first-child {
    /* 28px/48px */
    font-size: 1.4em;
  }

  .mediumPText {
    /* 24px/36px */
    font-size: 1.2em;
  }

  .lineBreakOnlyMedium {
    display: inline;
  }

  .lineBreakLarge {
    display: block;
  }

  .descriptionText {
    max-width: 690px;
  }


  /* ------ Universal Styling ------ */

  .width1170 {
    max-width: 1170px;
  }

  .width850, .quoteSection p {
    max-width: 850px;
  }

  .width1070 {
    max-width: 1070px;
  }

  #moviesSection img, #outcomesSection img, #logisticsSection img {
    padding-bottom: 18px;
  }



  /* ------ Section Styling ------ */


  /* -- Header Section -- */

  #headerFirstLine {
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
  }

  #headerTop div:nth-child(2) {
    width: 800px;
  }

  .timeTravelText img {
    width: 100%;
  }


  /* -- Movie Intro Section -- */
  #moviesSection ul {
    justify-content: space-between;
  }

  #moviesSection .centerView li, #compositeIcon, #moviesSection li img {
    width: 200px;
  }

  #moviesSection ul li:nth-child(4), #moviesSection ul li:last-child {
    margin-top: 0;
  }

  .gradientLineBg {
    background: linear-gradient(to right, #f49639, #c13658);
    height: 10px;
    z-index: -1;
    position: relative;
    top: 105px;
  }

  #moviesSection ul li:first-child, #moviesSection ul li:nth-child(2), #moviesSection ul li:nth-child(3), #moviesSection ul li:nth-child(4) {
    margin-right: 20px;
  }


  /* --- Movie Detail Section --- */
  #compositeIconSection {
    position: relative;
    justify-content: center;
  }

  .gradientLineBgVert {
    background: linear-gradient(#f49639, #c13658);
    width: 10px;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
  }

  .plotText {
    padding: 0 70px 0 70px;
  }

  #plotBackFuture::before, #plotBillTed::before, #plotTerminator::before, #plotLooper::before, #plotEndgame::before {
    content: "";
    margin-bottom: 0;
    display: none;
  }

  .badGuyThanos img {
    height: 200px;
  }

  .characterImages, #endgameSection .characterImages, #endgameSection .badGuys .characterImages {
    max-height: 230px;
    height: 230px;
  }

  .historyTest img {
    height: auto;
  }

  .overlapLarge {
    margin-right: -80px;
  }


  /* -- Logistics Section -- */
  #logisticsQuoteSpot1 ul, #logisticsQuoteSpot2 ul {
    flex-direction: row;
  }

  #logisticsQuoteSpot1 li, #logisticsQuoteSpot2 li {
    width: 48%;
  }

  #logisticsQuoteSpot1 img, #looperLogisticsImg img, #termLogisticsImg img {
    width: auto;
  }

  #logisticsQuoteSpot1 li:first-child, #logisticsQuoteSpot2 li:first-child {
    padding-bottom: 0;
  }

  #logisticsQuoteSpot2 .characterImages {
    justify-content: space-around;
  }

  #logisticsQuoteSpot3 .characterText {
    flex-direction: row;
  }

  #logisticsQuoteSpot3 .characterText div {
    width: 26%;
  }

  .characterImages, #logisticsQuoteSpot1 .characterImages, #logisticsQuoteSpot2 .characterImages, #logisticsQuoteSpot3 .characterImages {
    max-height: 260px;
    height: 260px;
  }


  /* -- Outcomes Section -- */
  #outcomesSection ul {
    justify-content: space-between;
  }

  #outcomesSection ul li {
    width: auto;
  }

  #outcomesSection ul li:first-child, #outcomesSection ul li:nth-child(2), #outcomesSection ul li:nth-child(4) {
    padding-right: 0;
    margin-top: 0;
  }


  /* -- Quiz Section -- */
  #answerButtons button {
    max-width: 130px;
  }

  #answerButtons li {
    padding-right: 50px;
  }

  #quizSection .largerPText {
    padding-left: 60px;
    margin: 20px 0 70px 0;
    font-size: 1.1em;
  }

  #quizScoreContainer {
    padding-top: 50px;
    margin-top: 50px;
  }


}
