:root {
  --primary-col: darkgoldenrod;
  --secondary-col: floralwhite;
  --accent-col: indigo;
  --text-col: darkslategrey;
  --background-col: floralwhite;
}

@keyframes fadeIn {
  0% {
    opatity: 0;
  }
  100% {
    opatity: 0;
  }
}

@keyframes highlightTarget {
  50% {
    opacity: 0.25;
  }
}

:target {
  animation: highlightTarget 0.5s 2;
  text-decoration: underline;
}

* {
  padding: 0px;
  margin: 0px;
  border: 0px red solid; /* For debugging */
}

html {
  color: var(--text-col);
  background-color: var(--background-col);
  font-family: "Merriweather", serif;
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

header {
  display: flex;
  flex-direction: column;
  padding: 1rem 0rem 1rem 0rem;
  align-items: center;
}

main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1rem 0rem 1rem 0rem;
  margin: 0rem 6rem 0rem 6rem;
  max-width: 640px;
}

@media screen and (max-width: 600px) {
  main {
    margin: 0rem 1rem 0rem 1rem;
  }
}

footer {
  display: flex;
  background-color: var(--secondary-col);
  border-top: 1px solid var(--primary-col);
  padding: 2rem 0rem 2rem 0rem;
  width: 100%;
  justify-content: space-evenly;
  align-items: center;
}

img {
  border-radius: 3rem;
  box-shadow: 0 2px 5px 0 black;
  margin: 1rem 0rem 1rem 0rem;
  width: 400px;
  transition: border-radius 0.3s;
  animation: fadeIn 1s;
}

img:hover {
  border-radius: 0rem;
}

a {
  color: var(--primary-col);
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-col);
}

h1,
h2,
h3 {
  color: var(--primary-col);
}

h1 {
  margin: 0.5rem 0rem 1rem 0rem;
}

h2 {
  margin: 0.25rem 0rem 0.5rem 0rem;
}

h3 {
  margin: 0rem 0rem 0.25rem 0rem;
}

p:after {
  content: "\A\A";
  white-space: pre;
}
