html {
  width: 100vw;
  overflow-x: hidden;
  background-color: #fcfcfc;
}

body {
  margin: 4% 18%;
  color: #0f0b0b;
}

h1 {
  font-family: "Grenze Gotisch", cursive;
  font-weight: 800;
  font-size: 4em;
  margin-bottom: 22px;
  color: #0f0b0b;
  text-align: center;
}

h2 {
  font-family: "Times New Roman", serif;
  font-size: 2em;
  margin-bottom: 14px;
}

p, nav {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1em;
}

nav {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 20px 0 14px;
  margin: -8px -14px;
}

nav a {
  text-align: center;
  flex-grow: 1;
  padding: 4px;
  margin: 8px 14px;
  border: solid rgba(0, 0, 0, 0.5) 1px;
  border-radius: 1px;
  color: #0f0b0b;
}

header, section, img {
  margin-bottom: 25px;
}

header img {
  height: 280px;
  width: auto;
}

.am-buttons .am-button {
  border: solid 2px;
  border-radius: 1px;
  color: #0f0b0b;
}

.am-buttons .am-button:hover, .am-buttons .am-button:active, .am-buttons .am-button:focus {
  border: solid 2px;
  border-radius: 1px;
  background-color: #0f0b0b;
  color: #fcfcfc;
}

figure {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.profile {
  width: auto;
  display: block;
  float: right;
}

footer {
  margin-top: 40px;
}

footer img {
  width: 32px;
}

footer p {
  font-style: italic;
  font-size: 0.7em;
  text-align: center;
}

/* links */
nav a, p a {
  color: #0f0b0b;
  text-decoration: none;
}

p a:hover, p a:active, p a:focus {
  text-decoration: underline;
}

nav a:hover,
nav a:active,
nav a:focus {
  text-decoration: none;
  border: solid 2px;
  padding: 3px;
}

/* AUTOMAD OVERRIDE */
.am-block {
  max-width: none;
}

:root {
  --am-gallery-max-height: 80%;
  --am-gallery-max-width: 80%;
}

/* desktop */
@media (min-width: 1600px) {
  body {
    margin: 4% 25%;
  }
}

@media (min-width: 667px) and (max-width: 1600px) {}

/* phone */
@media (max-width: 480px) {
  h1 {
    font-size: 2.5em;
  }

  nav {
    flex-direction: column;
    padding: 0;
  }

  nav a {
    margin: 4px 0;
  }

  header, section {
    margin-bottom: 20px;
  }

  header img {
    width: 200px;
    height: auto;
  }
}

/* big phone */
@media (min-width: 375px) and (max-width: 667px) and (-webkit-min-device-pixel-ratio: 2) {
  h1 {
    font-size: 3em;
  }

  header img {
    width: 240px;
    height: auto;
  }
}