* {
  box-sizing: border-box;
}

:root {
  --fg: black;
  --fg-light: #414141;
  --bg: #fffce6;
  --bg-light: #fcfcf8;
  --bg-alternative: #e0ffd8;
  --link: #346aff;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 1rem 0;
  height: 100vh;
  background-color: var(--bg);
  line-height: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

a,
a:hover,
a:active,
a:visited {
  text-decoration: none;
}

a {
  color: var(--link);
  border-bottom: 1px solid var(--link);
}

a:hover {
  opacity: 0.8;
}

a:active {
  opacity: 1.2;
}

main.main {
  align-self: center;
  max-width: 80ch;
  border: 2px solid var(--fg);
  box-shadow: 5px 5px var(--fg-light);
  padding: 1rem;
  background-color: var(--bg-light);
  transition: background-color 1s;
}

main.main:hover {
  background-color: var(--bg-alternative);
  transition: background-color 1s;
}

main.main h1 {
  font-size: 2em;
}

.col {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

button {
  background-color: var(--bg-alternative);
  border: 2px solid var(--fg);
  box-shadow: 2px 2px;
  padding: 1rem;
  border-radius: 3px;
}

button:hover {
  box-shadow: 3px 3px;
  transform: translate(-1px, -1px);
}

button:active {
  box-shadow: 1px 1px;
  transform: translate(0, 0);
}
