#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: right;
	text-shadow: 2px 2px 2px rgba(126, 132, 135, 0.6);
	letter-spacing: 2px;
  font-weight: lighter;
}

header {

	grid-row: 1 / 2;
	grid-column: 2 / -2;
}

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

h2 {
  line-height: 120%;
  font-weight: lighter;
  padding-top: 40px;
  padding-bottom: 9px;
  color: #e88e10;
}

table {
  width: auto;
  float: right;
}

table td {
  padding: 10px;
  font-size: smaller;
  color: #5b7e8a;
}

main {
  grid-row: 4 / 5;
  grid-column: 2 / -2;
  margin-right: 150px;
}

nav {
  position: sticky;
  top: 0;
  grid-row: 3 / 4;
  grid-column: 2 / -2;
}

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

}

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%;
}

@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;
  }


}

