:root {
  --main-bg-color: hsl(0, 0%, 99%);
  --general-color: hsl(220, 20%, 18%);
}

body {
  font-family: -apple-system, sans-serif;
  font-size: 12pt;
  line-height: 1.45rem;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0.8rem;
  margin-right: 0.6rem;
  background-color: var(--main-bg-color);
  color: var(--general-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /*Only large viewports should restrict the max-width,*/
  /*otherwise mobile is not wide enough!*/
  @media (width >= 1200px) {
    max-width: 50vw;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Override anchor styles */
a {
  text-decoration: none;
  color: hsl(220, 70%, 50%);
}

a:hover {
  color: hsl(220, 70%, 42%);
}

button {
  cursor: pointer;
}

h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

main {
  flex: 1;
  padding-top: 1rem;
}
