* {
  box-sizing: border-box;
}

#wrapper {
  display: grid;
  grid-auto-rows: minmax(0px, auto);
  grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 175px)) minmax(0px, 1fr);
  column-width: 960px;
}

#background {
	background-image: url("back.jpg");
 	height: 100%;
  background-position: center;
  background-repeat: no-repeat;
 	background-size: cover;
}


body {
	height: 100%;
	font-family: sans-serif;
	text-align: center;
	text-shadow: 2px 2px 2px rgba(126, 132, 135, 0.6);
	letter-spacing: 2px;
  font-weight: lighter;
}

header {
	grid-row: 2 / 3;
	grid-column: 2 / -2;
}

h1 {
	font-size: 60px;
	line-height: 120%;
	font-weight: lighter;
  color: #e88e10;
}

header h2 {
  line-height: 120%;
  font-weight: lighter;
  color: #e88e10;
}

nav {
  padding-top: 100px;
  padding-bottom: 50px;
  top: 0;
  grid-row: 1 / 2;
  grid-column: 2 / -2;
}

nav a {
  text-decoration: none;
  color: #5b7e8a;
  display:block;
  text-align: center;

}

nav a:hover {
  color: #e88e10;
}

nav ul {
  list-style-type: none;
  padding-left: 0; 
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-top: 0;
  display: flex;
  flex-flow: row nowrap;
}

nav ul li {
  width: 100%;
}

main {
  grid-row: 3 / 4;
  grid-column: 2 / -2;
  color: #5b7e8a;
  font-size: smaller;
  line-height: 24px;
}


.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  }


.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #5b7e8a;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}


.container {
  padding: 10px 40px;
  position: relative;
  background-color: transparent;
  width: 50%;
}


.container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: #FF9F55;
  border: 4px solid #FF9F55;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}


.left {
  left: 0;
}


.right {
  left: 50%;
}


.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid hsla(89, 43%, 100%, 0.5);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent hsla(89, 43%, 100%, 0.5);
}


.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid hsla(89, 43%, 100%, 0.5);
  border-width: 10px 10px 10px 0;
  border-color: transparent hsla(89, 43%, 100%, 0.5) transparent transparent;
}


.right::after {
  left: -16px;
}


.content {
  padding: 20px 30px;
  background-color: hsla(89, 43%, 100%, 0.5);
  position: relative;
  border-radius: 6px;
  border: medium solid hsla(89, 43%, 100%, 0.5);
}


@media only screen and (max-width: 992px) {

  #wrapper {
    grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 128px)) minmax(0px, 1fr);
    text-align: center;
  } 

  nav a {
    text-align: center;
  }

}

@media only screen and (max-width: 768px) {

  header, nav, main, footer {
    grid-column: 1 / 9;
  }

  nav ul {
    flex-flow: column nowrap;
  }

  nav a {
    text-align: center;
    padding: 6px;
  }


  .timeline::after {
    left: 31px;
  }


  .container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }


  .container::before {
    left: 60px;
    border: medium solid hsla(89, 43%, 100%, 0.5);
    border-width: 10px 10px 10px 0;
    border-color: transparent hsla(89, 43%, 100%, 0.5) transparent transparent;
  }


  .left::after, .right::after {
    left: 15px;
  }


  .right {
    left: 0%;
  }
}