@import url('fonts/SecularOne-Regular.ttf');
@import url('fonts/AbrilFatface-Regular.ttf');

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body, html {
  margin: 0;
  padding: 0;
} 

body {
  background-color: #d35f5f;
  color: white;
  font-family: 'Secular One', sans-serif;
  font-size: 100%;
  line-height: 1.7;
  display: grid;
  grid-template-rows: 20vh 60vh 20vh;
  grid-template-areas: 
  "header"
  "main"
  "footer";
  justify-items: center;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Abril Fatface', serif;
  font-weight: normal;
}

h1 {
  font-size: 3.0em;
}

h2 {
  font-size: 2em;
}

h1 a {
  text-decoration: none;
  color: white;
}

h1 a:hover {
  text-decoration: underline;
  cursor: pointer;
}

header {
  align-self: center;
  overflow: hidden;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

header nav ul li a {
  display: inline-block;
  width: 100%;
}

header nav ul li:first-child {
  width: 100%;
}

header nav ul a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
}

header nav ul a:hover {
  color: white;
  cursor: pointer;
  text-decoration: underline;
}

header nav ul a.active {
  color: white;
  cursor: pointer;
}

header nav ul li:nth-child(n+2) {
  width: 50%;
}

main {
  overflow-y: auto;
  scrollbar-width: none;
  width: 80vw;
}

section {
  min-height: 80vh;
}

footer {
  width: 100%;
  align-self: stretch;
  grid-area: footer;
}

footer img {
  height: 100%;
  width: 100%;
}

@media(min-width: 768px) {
  body {
    display: grid;
    grid-template-rows: 80vh 20vh;
    grid-template-columns: 150px 1fr;
    grid-template-areas: 
    "header main"
    ". footer";
    justify-items: center;
  }

  main {
    margin-top: 10vh;
    width: 40vw;
  }

  header nav ul {
    padding: 35px;
  }

  header nav ul li:nth-child(n+2) {
    width: 100%;
  }

}
