@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;
    display: grid;
    grid-template-areas: 
        ". . .  header . . . "
        ". . nav nav nav . ."
        ". . . main . . .";
    grid-template-columns: 1fr 2fr 1fr 4fr 1fr 2fr 1fr;
    grid-template-rows: auto auto auto;
    background: url("/background.jpg");
}

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

main {
    grid-area: main;
    text-align: center;
}

a {
    color: #d48544;
    text-decoration: none;
}
a:hover {
    color: #f0dac8
}

main, aside, nav, h1{
    background: #3a2d52;
    color: white;
    padding: 5px;
    border: solid 1px #d48544;
    border-radius: 10px;
}

img {
  max-width: 650px;
  display: none;
}

.fixed {
  min-height: 902px;
  min-width: 662px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pageFix {
 min-height: 867px;
 margin-bottom: 5px;
}

@media only screen and (max-width: 768px) {
    body {
        grid-template-areas: 
            "header header"
            "nav nav"
            "main main";
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto 1fr auto;
    }
    
    .fixed {
      min-height: auto;
      min-width: 95%;
    }
    
    .pageFix {
      min-height: auto;
    }
    
    img {
      max-width: 100%;
    }
    
    #pager {
      display: flex;
      flex-direction: row;
      gap: 20px;
    }
}

@media only screen and (max-width: 480px) {
  body {
    display: flex;
    flex-direction: column;
  }
}