@import url(https://fonts.googleapis.com/css?family=Lato:400,900|Raleway:400);
@import "colors.css";

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

body,
html {
  color: #2C2C2C;
  min-width: 600px;
  height: 100%;
  background: white;
  font: 400 1em 'Lato';
  -webkit-font-smoothing: antialiased;
}

#timeline {
  padding-top: 5%;
}

.timeline {
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline figcaption {
  font: 900 120% 'Lato';
  -webkit-text-stroke: .25px;
}

.timeline h2 {
  font: 400 300% 'Raleway';
  padding: 0 1.5rem 3rem 1.5rem;
  color: #b2cde9;
}

.timeline h3 {
  font: 900 200% 'Lato';
  text-transform: uppercase;
  clear: both;
}

.timeline h6 {
  color: #0090F5;
  font: 400 100% Tahoma;
}

.timeline p {
  font: 400 95% 'Raleway';
  padding: 3px 0 20px 0;
  color: #575757;
  text-align: justify;
  width: 70%;
}

.timeline figure {
  max-width: 48em;
}

.timeline article {
  position: relative;
  /* width: 38%; */
  overflow: hidden;
  margin-bottom: 100px;
}

.timeline article:first-of-type {
  text-align: right;
}

.timeline article .era h3,
.timeline article .era h6,
.timeline article .era p,
.timeline article .era figure
{
  margin-left: 0;
  margin-right: auto;
  padding-left: 0.5rem;
}

.timeline article:first-of-type .era h3,
.timeline article:first-of-type .era h6,
.timeline article:first-of-type .era p,
.timeline article:first-of-type .era figure
{
  margin-left: auto;
  margin-right: 0;
  padding-right: 0.5rem;
  padding-left: 0;
}

.timeline article:last-of-type {
}

.timeline article:last-of-type h2 {
  color: #c6e0aa;
}

.timeline article:last-of-type h6,
.timeline article:last-of-type a {
  color: #40aa00;
}

.timeline article:last-of-type a:hover {
  color: #95D40D;
}

/* Make era introductions bold italic */
.timeline article .era h3 + h6 + p {
  font-weight: 700;
  font-style: italic;
}

/* Style ULs so they fit in with the rest */
ul {
  margin-left: 2rem;
  font: 400 95% Raleway;
}

li {
  padding-left: 0;
}

section:not(#timeline) {
    min-width: 40em;
    margin: 1em auto;
    max-width: 80vw;
    padding-top: 0.5em;
    clear: both;
    border-top: solid 1px black;
}

.timeline article {
  order: 1;
}

.marker-bar {
  order: 2;
  display: none;
}

.marker-bar.right {
  order: 3;
  display: none;
}

.timeline article.right {
  order: 4;
}

.era {
  border: 0 solid black;
  border-right-width: 1rem;
}

.right .era {
  border: 0 solid black;
  border-left-width: 1rem;
}

.marker-bar {
  position: relative;
  width: 4em;
  margin: 10rem 1em 0 4em;
}

.marker-bar.right {
  margin: 10rem 4em 0 1em;
}

.marker-era {
  position: absolute;
  width: 100%;
}

/* Mark an event with a line and text */
.marker-event {
  display: block;
  display: none;
  position: absolute;
  border-top: solid 1px black;
  height: 0;
  content: ' ';
  width: 6em;
  left: -3.5em;
  text-align: center;
  z-index: 2;
  text-shadow: 0 0 10px hsla(0, 0%, 10%0, 0.9);
}

.right .marker-event {
  left: auto;
  right: -3.5em;
}
