@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 . ."
        ". sidebar . main . blog ."
        ". sidebar . OC . blog ."
        ". . .  OC . blog .";
    grid-template-columns: 0.5fr 2.5fr 1fr 4fr 1fr 2fr 1fr;
    grid-template-rows: auto auto auto 3fr auto;
    background: url("background.jpg");
    padding-left: 15px;
    padding-right: 15px;
}

img {
    max-width: 250px;
    max-height: auto;
}

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

aside {
    grid-area: sidebar;
    text-align: center;
    height: 275px;
    display: grid;
    grid-template-areas: 
        "avatar text"
        "buttons buttons";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

aside img {
    border: solid 1px #d48544;
    border-radius: 128px;
}

aside img:hover {
    border-color: #f0dac8;
}

.textInfo {
    grid-area: text;
}

.buttonAside {
    grid-area: buttons;
}

.buttonGroup {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

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

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

.blog {
    grid-area: blog;
    max-height: 750px;
    overflow: scroll;
    background: #3a2d52;
    color: white;
    padding: 0;
    border: solid 1px #d48544;
    border-radius: 10px;
}

.blog article {
    border-bottom: solid 1px white;
}

.blog article p, .blog h2 {
  margin: 5px;
  padding: 2px;
}
  

.ocPlace {
    grid-area: OC;
}

.noDraw {
    display: none;
}

#cyberheaven {
    font-size: 85%;
    text-align: center;
}

button {
    color: #d48544;
    border: none;
    background: none;
}

button:hover {
    color: #f0dac8;
}

.sticky {
  position: sticky;
  top: 0;
  background: #31234d;
  text-align: center;
  border-radius: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  font-weight: bold;
  margin: 0 !important;
}

@media only screen and (max-width: 768px) {
    body {
        grid-template-areas: 
            "header header"
            "nav nav"
            "sidebar 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;
  }
}