@import url("https://fonts.googleapis.com/css?family=Catamaran&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primaryColor: rgb(253, 250, 39);
  --secondaryColor: rgb(160, 153, 93);
  --mainWhite: #fff;
  --mainBlack: #000;
  --mainFont: "Catamaran", sans-serif;
}

body {
  color: var(--mainWhite);
  font-family: var(--mainFont);
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
    center/cover no-repeat fixed url("../img/intro.jpg");
}

/* global */

h1 {
  font-size: 2rem;
  text-transform: uppercase;
}

h2 {
  color: var(--primaryColor);
}

p,
li {
  color: var(--mainWhite);
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: var(--mainBlack);
}

.fas {
  font-size: 2.3rem;
  margin-top: 2rem;
  color: var(--secondaryColor);
}

/* navigation */

nav {
  background: var(--primaryColor);
  color: var(--mainBlack);
  position: fixed;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  z-index: 2;
  animation: show 4s ease-in-out 1;
}

nav a {
  padding: 0.8rem 2rem;
}

nav a:hover {
  background: var(--mainBlack);
  color: var(--mainWhite);
}

/* main */

#main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 95vh;
  text-align: center;
  overflow: hidden;
}

.main-container h1 {
  margin: 2rem 0;
  animation: fromRight 4s ease-in-out 1;
}

.main-container h2 {
  margin: 0.5rem 0;
  animation: fromLeft 4s ease-in-out 1;
}

@keyframes show {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fromLeft {
  0% {
    transform: translateX(1000px);
  }
  50% {
    transform: translateX(-100px);
  }
  75% {
    transform: translateX(50px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes fromRight {
  0% {
    transform: translateX(-1000px);
  }
  50% {
    transform: translateX(100px);
  }
  75% {
    transform: translateX(-50px);
  }
  100% {
    transform: translateX(0);
  }
}

/* download */

#download {
  width: 25%;
  margin: auto;
background: black;
}

/* target */

#target {
  display: flex;
  justify-content: space-around;
}

.target-divide {
  margin: 5rem 0;
  text-align: center;
  width: 50%;
}

.target-article {
  background: var(--mainBlack);
  padding: 1.5rem 3rem;
  margin: 3rem;
  border-radius: 0.7rem;
}

.target-article h1 {
  color: var(--primaryColor);
  margin-bottom: 0.7rem;
}

.target-article p,
.target-article li {
  text-align: left;
}

/* structure */

#structure {
  background: var(--secondaryColor);
  padding: 2rem;
  text-align: center;
}

#structure h1 {
  border-bottom: 2px solid var(--primaryColor);
  display: inline-block;
  width: 40%;
}

#structure li {
  padding: 0.3rem 0;
  width: 20%;
  margin: auto;
}

/* timeline */

#timeline {
  max-width: 1300px;
  margin: 3rem auto;
  text-align: center;
}

#timeline h2 {
  color: var(--mainBlack);
}

.timeline-wrapper {
  position: relative;
  margin-top: 2rem;
  width: 95%;
  margin: auto;
}

.timeline-wrapper::after {
  content: "";
  position: absolute;
  width: 8px;
  background-color: var(--mainWhite);
  top: 0;
  bottom: 0;
  left: 50%;
}

.timeline-container {
  position: relative;
  padding: 0.7rem 1.5rem;
  width: 50%;
  border-radius: 10px;
  background: var(--mainWhite);
  color: var(--mainBlack);
  margin: 3rem 0;
}

.timeline-container p {
  color: var(--mainBlack);
}

.timeline-container::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: -19px;
  border: 4px solid var(--mainBlack);
  width: 30px;
  height: 30px;
  background: var(--mainWhite);
  border-radius: 50%;
  z-index: 1;
}

.timeline-container:nth-child(odd) {
  left: 0;
}
.timeline-container:nth-child(even) {
  left: 50%;
}

.timeline-container:nth-child(even)::after {
  left: -20px;
}

.sources ul {
  width: 100%;
  text-align: left;
}

#sources-wrapper {
  width: 33%;
  margin: auto;
}

#sources-wrapper li {
  width: 100%;
  list-style-type: none;
}

#prototype {
  text-align: center;
  margin: 3rem;
  display: flex;
  align-items: baseline;
}

#prototype div {
text-align: left;
}

#prototype a {
  color: var(--mainWhite);
}

.prototype-wrapper {
  margin: auto;
  padding: 1.5rem;
}

.prototype-wrapper:first-child {
  width: 60%;
}

.prototype-wrapper:nth-child(2) {
  width: 33%;
}

.prototype-wrapper p {
  text-align: left;
}

.prototype-wrapper a {
color: white;
}

footer {
  padding: 1rem;
  background: var(--primaryColor);
  color: var(--mainBlack);
  text-align: center;
  border-top: 2px solid var(--mainBlack);
  margin-top: 3rem;
}

@media only screen and (max-width: 822px) {
  nav a {
    padding: 0 2rem;
  }

  #target {
    display: block;
  }

  .target-divide {
    width: 100%;
  }
}
