@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700&display=swap');

body {
    font-size: 16px;
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-areas: 
        ". . .  header . . . "
        ". . nav nav nav . ."
        ". main main main main main .";
    grid-template-columns: 1fr 2fr 1fr 4fr 1fr 2fr 1fr;
    grid-template-rows: auto auto auto;
    background: url("background.jpg");
}

.selected {
  grid-template-areas: 
    ". . . header . . ."
    ". . nav nav nav . ."
    " . main main main info info info";
}

.info {
  background: #262627;
  display: none;
  flex-direction: column;
  align-items: center;
  grid-area: info;
  width: 90%;
  padding: 10px 10px 20px 10px;
  color: white;
  border: solid 1px #d48544;
  margin-right: 20px;
}

.info img {
  max-width: 95%;
  max-height: 95%;
  background: white;
  padding: 10px;
}

main {
  grid-area: main;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  height: 500px;
}

main img {
  max-width: 200px;
  max-height: 200px;
  height: auto;
  width: auto;
  padding: 15px;
  background: white;
  margin: 5px;
  align-self: start;
}

main img:hover {
  filter: brightness(75%);
}

.large {
  max-width: 80%;
  max-height: 80%;
}

nav, h1 {
  background: #3a2d52;
  color: white;
  padding: 5px;
  border: solid 1px #d48544;
  border-radius: 10px;
}

h1 {
  grid-area: header;
  justify-self: center;
  text-align: center;
}

nav {
  grid-area: nav;
  display: flex;
  margin-bottom: 5px;
}

nav ul {
  display: flex;
  list-style-type: none;
  justify-self: center;
  justify-content: space-evenly;
  flex-direction: row;
  width: 100%;
  padding-left: 0;
}

a {
  color: #d48544;
  text-decoration: none;
}
a:hover {
  color: #f0dac8
}

@media only screen and (max-width: 768px) {
    body {
        grid-template-areas: 
            "header header"
            "nav nav"
            "main main"
            "OC OC"
            "blog blog";
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto 1fr auto;
    }
}

@media only screen and (max-width: 480px) {
  body {
    display: flex;
    flex-direction: column;
  }
}