@import url(https://fonts.googleapis.com/css?family=Yellowtail);

/*Page layout*/
html {
  height: 100%;
}

/*This layout is for smaller screens*/
body {
  display: grid;
  grid-template-areas:
    "head head head" 
    "main main main"
    "foot foot foot";

  margin: 0;
  line-height: 1.5;
  font-size: 1.1rem;
  background-color: var(--bg1);
  color: var(--main-text);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100%;
}

* {
  page-break-after: 0;
}

/*Aplies across the whole page*/
h1,
h2,
h3 {
  line-height: 1.1;
  font-weight: 700;
}

.head-text {
  color: var(--head-text);
}

a {
  text-decoration: underline blue;;
  color: var(--main-text);
}

a:hover {
  color: lightblue;
}

/*Header is at the top of the page*/
header {
  grid-area: head;
  background-color: var(--bg2);
  padding: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img {
  height: auto;
  max-width: 100%;
}

hgroup > h2, h3 {
  font-family: Yellowtail;
  text-align: center;
}

.content {
  padding: 1em;
  min-width: auto;
  max-width: 50rem;
  margin: 0 auto;
  background-color: var(--bg4);
}

.content :is(h2, h3, p) {
  max-width: 65ch;
  color: var(--text);
}

main {
  grid-area: main;
}

/*Footer is at the bottum of the page*/
footer {
  grid-area: foot;
  background-color: var(--bg2);
  padding: 1em;
  margin-top: auto;
  font-style: italic;
  text-align: center;
}

/*Media quries for larger screen sizes*/
@media only screen and (min-width: 800px) {
  body {
    grid-template-areas:
      "head head head"
      "main main main"
      "foot foot foot";
    font-size: 1.25rem;
  }

  h1,
  h2 {
    font-weight: 900;
  }

  
}
