
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,700");

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.05em;
  background-color: #B4C4D9;
  color: #FFFFFF !important;
}


body,
body p,
body li,
body span,
body strong,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body div {
  color: #FFFFFF !important;
}

header {
  background-color: #A1BAD4;
  color: #FFFFFF !important;
  text-align: left;
  padding: 40px 20px;
}

header h1 {
  font-size: 3.5em;
  margin: 0;
  font-weight: 700;
  color: #FFFFFF !important;
}

/* Timeline */
.timeline {
  margin: 4em auto;
  padding: 0 20px;
  position: relative;
  max-width: 55em;
  list-style: none;
}

.timeline::before {
  content: "";
  background-color: #AED0FA;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2em;
  width: 3px;
}

.timeline-event {
  position: relative;
}

.timeline-event-icon {
  position: absolute;
  top: 0.5em;
  left: 1.5em;
  width: 1em;
  height: 1em;
  display: block;
  background-color: #E1FAF8;
  outline: 10px solid #779DB3;
  transform: rotate(45deg);
  transition: transform 0.2s ease-in,
              background-color 0.2s ease-in;
}

.timeline-event .timeline-event-icon {
  transform: rotate(-45deg);
  background-color: #779DB3;
}

/* Event content */
.timeline-event-copy {
  position: relative;
  top: -1.5em;
  margin-left: 4em;
  padding: 2em;
  width: calc(100% - 4em);
  overflow-wrap: break-word;
  color: #FFFFFF !important;
}

.timeline-event-copy h3 {
  margin: 0 0 0.5em;
  font-size: 2em;
  font-weight: 700;
  color: #FFFFFF !important;
}

.timeline-event-copy h4 {
  margin-bottom: 1.2em;
  font-size: 1.5em;
  font-weight: 700;
  color: #FFFFFF !important;
}

.timeline-event-copy p {
  padding-bottom: 1.2em;
  font-size: 1.1em;
  font-weight: 400;
  color: #FFFFFF !important;
}

.timeline-event-copy strong {
  font-weight: 700;
  color: #FFFFFF !important;
}

.timeline-event-thumbnail {
  display: inline-block;
  margin-bottom: 1.2em;
  padding: 0.4em 1.2em;
  background-color: #335B92;
  color: #FFFFFF !important;
  font-size: 1.2em;
  font-weight: 700;
  box-shadow: inset 0 0 0 0 #335B92;
  transition: box-shadow 0.5s ease-in 0.1s;
}

.timeline-event .timeline-event-thumbnail {
  box-shadow: inset 40em 0 0 0 #335B92;
}

footer {
  margin-top: 60px;
  padding: 30px 20px;
  background-color: #A1BAD4;
  color: #FFFFFF !important;
  text-align: center;
}

footer p {
  margin: 5px;
  font-size: 1em;
  font-weight: 700;
  color: #FFFFFF !important;
}

.scroll-event {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-event.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  header {
    padding: 30px 20px;
  }

  header h1 {
    font-size: 2em;
  }

  .timeline {
    margin: 2em auto;
    padding: 0 10px;
  }

  .timeline::before {
    left: 1.5em;
  }

  .timeline-event-icon {
    left: 1em;
  }

  .timeline-event-copy {
    top: -1em;
    margin-left: 2.5em;
    padding: 1.5em 1em;
    width: calc(100% - 2.5em);
  }

  .timeline-event-copy h3 {
    font-size: 1.4em;
  }

  .timeline-event-copy h4 {
    font-size: 1.2em;
  }

  .timeline-event-copy p {
    font-size: 1em;
  }

  .timeline-event-thumbnail {
    font-size: 1em;
  }

  .timeline-event .timeline-event-thumbnail {
    box-shadow: inset 20em 0 0 0 #335B92;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-event,
  .timeline-event-icon,
  .timeline-event-thumbnail {
    transition: none;
  }

  .scroll-event {
    opacity: 1;
    transform: none;
  }
}