@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Open+Sans:wght@300&display=swap");

* {
  margin: 0;
  padding: 0;
  border: none;
}

/*Website title style*/
#title {
  font-family: "Bebas Neue", cursive;
  text-transform: uppercase;
  font-size: 70px;
  text-align: center;
  position: relative;
  margin: 60px;
}
/*Responsiveness for website title*/
@media all and (max-width: 640px) {
  #title {
    display: flex;
    font-size: 40px;
  }
}

/*Navigation bar*/
nav {
  font-size: 25px;
  background-color: black;
}

a {
  text-decoration: none;
  color: white;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  /* justify-content: space-around; */
}

nav ul li {
  cursor: pointer;
  padding: 0.5rem;
  flex: auto;
  text-align: center;
}

nav ul li:hover {
  background-color: grey;
}

/*Navigation bar responsiveness for smaller screens*/
@media all and (max-width: 640px) {
  nav ul {
    flex-direction: column;
  }
  nav ul li {
    text-align: center;
  }
  nav {
    font-size: 20px;
  }
}

/*Style for headline and image on the home page*/
#headline {
  text-align: center;
  margin: 30px;
  margin-bottom: -20px;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 25%;
}

/*Responsiveness for image in the center of home page*/
@media only screen and (max-width: 768px) {
  .center {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 50%;
  }
}

/*Introductory text style*/
#introduction {
  margin-bottom: 20px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
}

/*Introduction textbox style*/
#intro {
  min-height: 5vh;
  line-height: 100%;
  max-width: 950px;
  margin: 30px;
  padding: 30px;
  background: beige;
  border: 1px solid black;
  color: black;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  text-align: justify;
  border-radius: 2em;
  font-size: clamp(14px, 5vw, 22px);
  word-spacing: 2px;
  font-family: Garamond;
}

/*Responsiveness for the introductory text*/
@media only screen and (max-width: 768px) {
  #intro {
    max-height: 55em;
    width: 75%;
    font-size: 100%;
    word-spacing: normal;
  }
}

/*Headline for the timeline*/
.headline {
  text-align: center;
  position: relative;
  width: 100%;
  top: 0;
  background-color: black;
}

/*Timeline code inspired and adapted from "Web Cifar's" and "Online Tutorials" Youtube video tutorials */
/*Home page timeline style */
/*Container style */
.container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  background-color: white;
}

/*Timeline sizing and position */
.timeline {
  width: 80%;
  height: auto;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/*Removed bullet points*/
.timeline ul {
  list-style: none;
}

/*Style for list items*/
.timeline ul li {
  padding: 20px;
  background-color: beige;
  color: black;
  border-radius: 10px;
  margin-bottom: 20px;
}

/*Rule for the margin bottom for the last element as there is no other element after that */
.timeline ul li:last-child {
  margin-bottom: 0;
}

/*Content style for headings of the timeline boxes*/
.timeline-content h2 {
  font-size: 20px;
  font-weight: 750;
  line-height: 30px;
  margin-bottom: 10px;
}

/*Content style for paragraphs of the timeline boxes*/
.timeline-content p {
  font-size: 18px;
  line-height: 30px;
  font-weight: 300;
  font-family: Garamond;
}

/*Responsiveness of home page & timeline shape and style*/
@media only screen and (min-width: 768px) {
  .timeline:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 88%;
    background-color: gray;
  }
  .timeline ul li {
    width: 50%;
    position: relative;
    margin-bottom: 50px;
  }
  .timeline ul li:nth-child(odd) {
    float: left;
    clear: right;
    transform: translateX(-70px);
    border-radius: 20px 0px 20px 20px;
  }
  .timeline ul li:nth-child(even) {
    float: right;
    clear: left;
    transform: translateX(70px);
    border-radius: 0px 20px 20px 20px;
  }
  .timeline ul li::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: gray;
    top: 0px;
  }
  .timeline ul li:nth-child(odd)::before {
    transform: translate(50%, -50%);
    right: -30px;
  }
  .timeline ul li:nth-child(even)::before {
    transform: translate(-50%, -50%);
    left: -30px;
  }
  .timeline-content .date {
    position: absolute;
    top: -30px;
  }
  .timeline ul li:hover::before {
    background-color: beige;
  }
}

/*Headings across all pages*/
h1,
h2,
h3 {
  font-family: Arial, Helvetica, sans-serif;
}

/* Quote boxes are made by using blockquote tag in HTML and adequate CSS styling provided down here */
.blockquote {
  max-width: 600px;
  margin: 10px;
  padding: 25px;
  background: beige;
  border: 1px solid black;
  color: black;
  box-sizing: border-box;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

/*Quote box border*/
.blockquote--bordered {
  border-left-width: 12px;
}

/*Quote boxes positioning and style*/
.blockquote--quoted::before {
  content: "\201c";
  font-size: 100px;
  color: black;
  display: block;
  margin-bottom: -40px;
  margin-top: -20px;
}

/*Quotes text style*/
.blockquote__text {
  font-family: "Helvetica Neue", sans-serif;
  font-style: italic;
  line-height: 1.5;
  font-size: 1.15em;
  margin: 0;
}

.blockquote__text:not(:last-child) {
  margin-bottom: 1em;
}

/*Responsiveness for smaller screen sizes for quote boxes*/
@media only screen and (max-width: 768px) {
  .blockquote {
    display: flex;
    font-size: 3vw;
    width: 80%;
  }

  .blockquote--quoted::before {
    display: flex;
    font-size: 8vw;
  }
}

/*The frameborder attribute*/
iframe {
  border-width: 0px;
}

/*Newsletter form (at the bottom of each page) style*/
.wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*Subscribe box style*/
#subscribebox {
  width: 500px;
  max-width: 100%;
  margin: auto;
  text-align: center;
  border-radius: 4px;
  padding: 60px 20px;
}

/*Form style*/
form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: auto;
}

/*Envelope icon color*/
.fa-envelope {
  color: black;
}

/*Newsletter title style*/
h3 {
  color: black;
  font-size: 20px;
  text-align: center;
  font-weight: 700;
  font-family: inherit;
}

/*Text input style*/
#email-input {
  width: 450px;
  max-width: 50%;
  font-family: inherit;
  color: black;
  text-align: left;
  font-weight: 500;
  border-radius: 2px;
  border: 0px;
  padding: 15px 0px 15px 20px;
  font-size: 14px;
  background: #f0f4ef;
}

/*Hover option for newsletter button*/
#email-input:focus,
#email-input:hover {
  outline: 0px;
}

/*Subscribe button style*/
#subscribe-button {
  border: 0px;
  width: 150px;
  max-width: 55%;
  font-size: 800px;
  padding: 15px;
  font-size: 14px;
  color: #f0f4ef;
  font-family: inherit;
  background: black;
  cursor: pointer;
  border-radius: 0px 2px 2px 0px;
  outline: 0;
  transition: all 0.2s;
}

/*Subscribe button hover over style*/
#subscribe-button:hover {
  background: grey;
}

/*Newsletter responsiveness for smaller screens*/
@media screen and (max-width: 700px) {
  #subscribe-button {
    width: 98%;
    margin: 5px;
    border-radius: 2px;
  }
  #email-input {
    width: 98%;
    margin: 5px;
    text-align: center;
  }
  #subscribebox {
    width: 100%;
  }
}

/*Media page style*/
/*Heading on top of media page*/
#documentaries {
  font-family: Arial, Helvetica, sans-serif;
  padding-top: 5%;
  text-align: center;
  min-height: 5vh;
  max-width: 900px;
  margin-top: 20px;
  padding: 5px;
  background: beige;
  border: 1px solid black;
  color: black;
  box-sizing: content-box;
  text-align: center;
  border-radius: 0.5em;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  font-size: clamp(24px, 8vw, 40px);
}

/*Media page video containers style*/
.videowrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 3em auto;
  border: 6px solid black;
}

/*Video container style*/
.videocontainer {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
}

/*Iframe wrapper div style*/
.videowrapper iframe {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/*Media page heading responsiveness*/
@media only screen and (max-width: 767px) {
  #documentaries {
    max-height: 70em;
    width: 95%;
    font-size: 150%;
    margin-top: 10px;
  }
}

/*Footer style*/
footer {
  clear: both;
  position: relative;
  background-color: black;
  height: 100%;
  text-align: center;
  padding: 30px 30px;
  width: 100%;
  margin: 0;
  padding: 0;
}

/*Social networks icons*/
.social-networks {
  text-align: center;
}

.social-networks > li {
  justify-content: center;
  text-align: center;
  display: inline;
  width: 100%;
}

.social-networks i {
  font-size: 30px;
  margin: 2%;
  padding: 10px 1px;
  color: white;
  text-align: center;
  display: inline-block;
}

/* Adds a hover effect to social media icons*/
.social-networks a:hover {
  opacity: 0.6;
}

/* Style for copyright text at the end of the footer*/
.copyright {
  color: white;
  font-size: 90%;
  font-family: Arial, Helvetica, sans-serif;
}

/*Footer responsiveness for smaller screens*/
@media screen and (max-width: 767px) {
  .footer {
    flex: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .social-networks i {
    display: inline-block;
  }
}
