
/* Fonts */

@font-face {
  font-family: 'Hind';
  font-style: normal;
  font-weight: 400;
  src: local('Hind'), local('Hind-Regular'), url(assets/fonts/hind-regular.woff) format('woff');
}

@font-face {
  font-family: 'Hind';
  font-style: normal;
  font-weight: 600;
  src: local('Hind SemiBold'), local('Hind-SemiBold'), url(assets/fonts/hind-semibold.woff) format('woff');
}

@font-face {
  font-family: 'Hind';
  font-style: normal;
  font-weight: 700;
  src: local('Hind Bold'), local('Hind-Bold'), url(assets/fonts/hind-bold.woff) format('woff');
}

/* Reset */

* {
  padding: 0;
  margin: 0;
  font-family: 'Hind', sans-serif;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: #222;
}

body > header {
  display: none;
  overflow: hidden;
  height: 80px;
  color: #f0f0f0;
  background-color: #000;
  background-image: url('assets/images/header-background.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (min-width: 1920px) and (min-height: 1080px) {
  body > header {
    display: block;
  }
}

body > header > * {
  float: left;
}

body > header .logo {
  display: block;
  margin: 16px 30px 0 30px;
}

body > header h1 {
  line-height: 80px;
  font-size: 16px;
  font-weight: bold;
}

main {
  display: none;
  overflow: hidden;
  position: relative;
  height: calc(100% - 80px);
}

@media (min-width: 1920px) and (min-height: 1080px) {
  main {
    display: block;
  }
}

main > * {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transition: opacity 0.5s, visibility 0.5s;
  visibility: visible;
  opacity: 1;
}


main > *[hidden] {
  display: initial;
  visibility: hidden;
  opacity: 0;
}

#attract {
  z-index: 2;
}

#attract video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}

#attract .inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 670px;
  transform: translate(-50%, -50%);
}

#attract img {
  display: block;
  margin-bottom: 4px;
}

#attract button {
  display: block;
  padding: 20px 40px 15px 40px;
  margin: 60px auto 0 auto;
  font-size: 26px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(46, 135, 26, 0.85);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

#timeline {
  z-index: 1;
}

#timeline .title {
  position: absolute;
  top: 25px;
  left: 30px;
  width: 350px;
  z-index: 4;
}

#timeline .title img {
  display: block;
  width: 100%;
}

#timeline .title img:first-child {
  margin-bottom: 4px;
}

#timeline .entries {
  overflow: hidden;
  position: relative;
  height: calc(100% - 180px);
}

#timeline .entries > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: visibility 0.75s;
  visibility: hidden;
  z-index: 1;
}

#timeline .entries > div[aria-selected] {
  visibility: visible;
  z-index: 2;
}

#timeline .entries > div:after {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  content: '';
  background: rgba(0, 0, 0, 0.1);
  z-index: 2;
}

#timeline .entries > div > *:not(.map) {
  z-index: 3;
}

#timeline .entries .big-image {
  display: block;
  position: absolute;
  top: -100%;
  left: 30%;
  width: 47%;
  opacity: 0;
  box-shadow: 5px 6px 19px -8px rgba(0, 0, 0, 0.85);
  transition: top 1s, opacity 0.5s;
  transform: translate(-50%, -50%);
}

#timeline .entries > div[aria-selected] .big-image {
  top: 50%;
  opacity: 1;
}

#timeline .entries .description {
  position: absolute;
  bottom: 7%;
  left: calc(100% + 256px);
  width: 480px;
  padding: 50px 75px 50px 50px;
  color: #000;
  opacity: 0;
  box-shadow: -9px -8px 19px -8px rgba(0, 0, 0, 0.25);
  transition: left 1s, opacity 0.5s;
  transform: translateX(-50%);
}

#timeline .entries > div[aria-selected] .description {
  left: 50%;
  opacity: 1;
}

#timeline .entries .description:before,
#timeline .entries .description:after {
  position: absolute;
  content: '';
  z-index: 1;
}

#timeline .entries .description:before {
  top: 0;
  left: 0;
  width: calc(100% - 59px);
  height: 100%;
  background: #fff;
}

#timeline .entries .description:after {
  top: 0;
  right: 0;
  height: calc(100% - 60px);
  border-left: 60px solid #fff;
  border-bottom: 60px solid transparent;
}

#timeline .entries .description > * {
  position: relative;
  z-index: 2;
}

#timeline .entries .description h2 {
  font-size: 34px;
  font-weight: bold;
  line-height: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #d9d9d9;
  color: #303f51;
}

#timeline .entries .description p {
  font-size: 14px;
  line-height: 22px;
  color: #303f51;
}

#timeline .entries .description p > span {
  font-size: 14px;
  font-weight: bold;
  color: #303f51;
}

#timeline .entries .map {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.75s;
  transform: translate(-50%, -50%);
}

#timeline .entries > div[aria-selected] .map {
  opacity: 1;
}

#timeline .progress {
  height: 4px;
  background: #fff;
}

#timeline .progress .bar {
  width: 0;
  height: 4px;
  background: #263240;
}

#timeline .years {
  display: table;
  table-layout: fixed;
  overflow: hidden;
  width: 100%;
  height: 66px;
  background: #fff;
}

#timeline .years:before {
  display: table-cell;
  vertical-align: middle;
  width: 125px;
  height: 66px;
  text-align: center;
  font-size: 26px;
  content: 'YEAR';
  color: #6072e4;
}

#timeline .years div {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  height: 66px;
  text-align: center;
  font-size: 16px;
  color: #6072e4;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.5s;
}

#timeline .years div:not(:first-child):before {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 6px;
  height: 6px;
  content: '';
  border-radius: 5px;
  background: #6072e4;
  transform: translateY(-50%);
  border: 2px solid #fff;
}

#timeline .years div[aria-selected] {
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

#timeline .navigation {
  position: relative;
  height: 110px;
  background-color: #355f2a;
  background-image: url(assets/images/navigation-background.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#timeline .navigation:before {
  position: absolute;
  content: '';
  height: 110px;
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.25) 100%);
}

#timeline .navigation button {
  position: relative;
  float: left;
  height: 110px;
  text-transform: uppercase;
  line-height: 110px;
  font-size: 20px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(0, 0, 0, 0.35);
}

#timeline .navigation button:first-child {
  border-left: none;
}

#timeline .navigation button:last-child {
  border-right: none;
}

#timeline .navigation .back {
  width: calc(50% - 250px);
  padding-right: 150px;
  text-align: right;
}

#timeline .navigation .back:before {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -2px;
  content: '';
  width: 0;
	height: 0;
  margin-right: 80px;
	border-top: 10px solid transparent;
	border-right: 20px solid #fff;
	border-bottom: 10px solid transparent;
}

#timeline .navigation .playback {
  width: 250px;
  text-align: center;
  border-left: 1px solid rgba(0, 0, 0, 0.3);
}

#timeline .navigation .playback:before {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -2px;
  content: '';
  margin-right: 30px;
}

#timeline .navigation .playback[data-state="playing"]:before {
  width: 6px;
	height: 20px;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
}

#timeline .navigation .playback[data-state="paused"]:before {
  width: 0;
	height: 0;
	border-top: 10px solid transparent;
	border-left: 20px solid #fff;
	border-bottom: 10px solid transparent;
}

#timeline .navigation .speed {
  width: 250px;
  text-align: center;
}

#timeline .navigation .speed:before {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -3px;
  width: 30px;
  height: 30px;
  margin-right: 30px;
  content: '';
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

#timeline .navigation .speed[data-state="slow"]:before {
  background-image: url(assets/images/turtle.svg);
}

#timeline .navigation .speed[data-state="fast"]:before {
  background-image: url(assets/images/rabbit.svg);
}

#timeline .navigation .next {
  width: calc(50% - 250px);
  padding-left: 150px;
  text-align: left;
}

#timeline .navigation .next:after {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -2px;
  content: '';
  width: 0;
	height: 0;
  margin-left: 80px;
	border-top: 10px solid transparent;
	border-left: 20px solid #fff;
	border-bottom: 10px solid transparent;
}

#warning {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  text-align: center;
  transform: translate(-50%, -50%);
}

#warning .title {
  font-size: 22px;
  color: #fff;
}

#warning p {
  font-size: 16px;
  color: #eee;
}

@media (min-width: 1920px) and (min-height: 1080px) {
  #warning {
    display: none;
  }
}
