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

body {
  width: 70%;
  margin: 0 auto;
}


/* Header */

header {
  margin-top: 20px;
  margin-bottom: 20px;
}

header h1 {
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
}

/* Nav */

nav {
  display: flex;
  margin-bottom: 10px;
}

nav * {
  display: flex;
}

nav ul {
  padding: 0;
  list-style-type: none;
  flex: 2;
  align-items: center;
  margin: 0;
}

nav li {
  display: inline;
  text-align: center;
  flex: 1;
}

nav ul a {
  display: inline;
  flex: 1;
  text-align: center;
}

/* Main Layout */

main {
  display: flex
}

section {
  flex: 4;
}

aside {
  flex: 1;
}

footer {
  margin-top: 10px;
}

/* footer */

#footer {
  display: flex;
  justify-content: space-between;
}


/* Common Grid layout stuff */

.gridcontainer {
  display: grid;
  list-style-type: none;
  padding: 0;
}

.gridelement {
  text-align: center;
  padding: 10px;
}

/* Figure layouts */

figure {
  display: inline-block;
}

figure img {
  vertical-align: top;
}

figure figcaption {
  text-align: center;
}

.thumbnail {
  text-align: center;
}

/* aside */

aside {
  margin-right: 10px;
}

aside p {
  margin-left:16px;
  margin-right:16px;
}

aside section {
  display: inline-block;
}

/* misc */

.center-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}