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

:root{
  --green: rgb(50, 140, 45);
  --pink: rgb(255, 131, 164);
  --orange: rgb(255, 175, 76);
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

a {
  color: inherit;
}

body {
  font: normal 16px/1.5 "Helvetica Neue", sans-serif;
  background: white;
  color: #fff;
}

/* .section SECTION
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.section {
  padding: 50px 0;
}

.section .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

h2{
    text-align: center;
}
/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline {
  white-space: nowrap;
  overflow-x: scroll;
  padding-top: 130px;
  padding-bottom: 60px;
  margin-left: 25px;
  margin-right: 25px;
}

.timeline ol {
  font-size: 0;
  width: 100vw;
  padding: 250px 0;
  transition: all 1s;
}

.timeline ol li {
  position: relative;
  display: inline-block;
  list-style-type: none;
  width: 300px;
  height: 5px;
  background: black;
}

.timeline ol li:last-child {
  width: 280px;
}

.timeline ol li:not(:first-child) {
  margin-left: 14px;
}

.timeline ol li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  bottom: 0;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: black;
}

.timeline ol li div {
  position: absolute;
  left: calc(100% + 7px);
  width: 400px;
  padding: 15px;
  font-size: 1rem;
  white-space: normal;
  color: white;
  background: var(--pink);
  border-radius: 10px;
  border-style: solid;
  border-color: var(--pink);
  border-width: 2px;
}

.timeline ol li div::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ol li:nth-child(odd) div {
  top: -20px;
  transform: translateY(-100%);
  background: var(--orange);
  border-color: var(--orange);
}

.timeline ol li:nth-child(3n) div {
  background: var(--green);
  border-color: var(--green);
}

.timeline ol li:nth-child(odd) div::before {
  top: 100%;
  left: 2px;
  border-width: 15px 20px 0 0;
  border-color: var(--orange) transparent transparent transparent;
}





.timeline ol li:nth-child(even) div {
  top: calc(100% + 16px);
}

.timeline ol li:nth-child(even) div::before {
  top: -9px;
  border-width: 15px 0 0 35px;
  border-color: transparent transparent transparent var(--pink);
}

.timeline ol li:nth-child(3n) div::before {
  border-width: 15px 20px 0 0;
  border-color: var(--green) transparent transparent transparent;
}
.timeline time {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* TIMELINE ARROWS
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline .arrows {
    position:absolute;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

.timeline .arrows .arrow__prev {
  margin-right: 20px;
}

.timeline .disabled {
  opacity: 0.5;
}

.timeline .arrows img {
  width: 45px;
  height: 45px;
}

.pictures{
    height: 150px;
    width: 100%;
}

.header{
  height: 600px;
  width: 100%;
}
.header div{
  height: 600px;
  width: 100%;
  position: absolute;
  background-color: black;
  z-index: 8;
  opacity: 0.4;
}

.header img{
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 768px){
    .timeline ol,
    .timeline ol li {
      width: auto;
    }
  
    .timeline ol {
      padding: 0;
      transform: none !important;
    }
  
    .timeline ol li {
      display: block;
      height: auto;
      background: transparent;
    }
  
    .timeline ol li:first-child {
      margin-top: 25px;
    }
  
    .timeline ol li:not(:first-child) {
      margin-left: auto;
    }
  
    .timeline ol li div {
      position: static;
      width: 94%;
      height: auto !important;
      margin: 0 auto 25px;
    }
  
    .timeline ol li:nth-child(odd) div {
      transform: none;
    }
  
    .timeline ol li:nth-child(odd) div::before,
    .timeline ol li:nth-child(even) div::before {
      left: 50%;
      top: 100%;
      transform: translateX(-50%);
      border: none;
      border-left: 2px solid black;
      height: 25px;
    }
  
    .timeline ol li:last-child,
    .timeline ol li:nth-last-child(2) div::before,
    .timeline ol li:not(:last-child)::after,
    .timeline .arrows {
      display: none;
    }
    .timeline{
      padding-top: 25px;
    }
 
}

#hidden-dot{
  opacity: 0;
}

@media screen and (max-width: 760px) {
  .header{
    height: 400px;
    width: 100%;
    z-index: 1;
  }
  .header div{
    height: 400px;
    z-index: 3;
    opacity: 0.3;
  }
  .header img{
    z-index: 0;
  }
  nav{
    position: absolute;
    z-index: 9;
  }

}