body {
  max-width: 50em;
  margin: 0 auto;
  padding: 0;
  font-family: 'Source Sans Pro', sans-serif;
}

@media(max-width:38.9rem){
  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1em;
  }

  #about {
    width: 100%;
    text-align: center;
    margin-bottom: -1em;
  }

  #curriculum {
    width: 100%;
  }

  h1, h2 {
    text-align: center;
  }

}

@media(min-width:39rem){
  main {
    margin: 0;
    padding: 0 1em;
  }

  #about {
    width: 14rem;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
  }

  #curriculum {
    padding: 19.5rem 0 0 15rem;
  }
}

h1 {
  font-size: 1.6em;
  line-height: 1.6em;
  padding: 0;
  margin: 0.7em 0;
  color: #333;
  font-weight: 600;
}

h2 {
  font-size: 1.6em;
  line-height: 1.6em;
  padding: 0;
  margin: 0.7em 0;
  font-weight: 300;
  color: #555;
}

#curriculum a {
  text-decoration: none;
  color: black;
  background: rgba(255, 198, 0, 0.2);
}

#portrait {
  width: 100%;
  max-width: 13rem;
  box-shadow: 0 15px 15px -20px #000;
  margin: 0 auto;
  padding: 0;
  display: block;
}

@media  (max-height: 38rem) and
        (min-width:39rem) {

  body:after{
    content: ' ';
    display: block;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    box-shadow: inset 0 -4em 2em -2em white;
  }

  #portrait {
    width: auto;
    height: 50%;
    max-width: unset;
  }

  #about {
    padding-bottom: 4em;
  }

  #curriculum {
    padding: 0 0 4em 15rem;
  }
}

#about {
  text-align: center;
}

#skills {
  margin: 1em 0;
}

#social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1em 0;
}

#social a {
  height: 1.6em;
  display: block;
}

#social img {
  height: 100%;
}

.tag {
  display: inline-flex;
  border-radius: 3px;
  border: 1px solid #aaa;
  padding: 0.1em 0.4em;
  color: #666;
  margin: 0.1em 0;
}

.tag-container {
  flex-direction: row;
}

ul.timeline {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  margin-top: -1em;
  margin-bottom: -1em;
}

ul.timeline li {
  min-height: 2em;
  margin: 0;
  padding: 1em 0 1em 2em;
  background-image: url("images/timeline-dot.svg"), url("images/timeline.svg");
  background-size:  auto auto, auto auto;
  background-repeat: no-repeat, no-repeat;
  background-position: left center, left center;
}

ul.timeline li:first-child {
  background-image: url("images/timeline-dot.svg"), url("images/timeline-bottom.svg");
}

ul.timeline li:last-child {
  background-image: url("images/timeline-dot.svg"), url("images/timeline-top.svg");
}
