html,body{
    height: 297mm;
    width: 210mm;
}

nav {
    display: inline-block;
    text-align: center;
    width: 100%;
}

h1 {
    font-size: 2.7em;
    line-height: 0;
    text-align: center;
}

h2 {
    text-align: center;
}

h3 {
    text-align: center;
    text-transform: uppercase;
}

figure.tarot {
    display: inline-block;
    width: 70px;
    margin: 10px;
    padding: 1px;
}

figure.tarot img {
  width: 100%;
  border: 1px solid gray;
  border-radius: 1px;
  color: transparent;
}

figure.tarot figcaption {
    width: 100%;
    height: 2.5em;
    color: #000;
    font-size: 0.6em;
    padding-bottom: 0.3em;
    text-align: center;
    text-transform: capitalize;
}

section {
    position: relative;
    page-break-after: always;
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    row-gap: 0.5em;
    border: 1px dashed #000;
    min-height: 297mm;
}

section:last-child {
    page-break-after: avoid;
}

section div {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

section:first-child div {
  margin-top: 1.5rem;
}

section div.stretch {
    justify-content: center;
    column-gap: 6em;
}

section footer {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.2rem;
  text-align: center;
  font-size: 8px;
  font-style: italic;
  color: gray;
}

section footer a {
  color: gray;
  text-decoration: none;
}

.paper {
    margin: 1em;
    margin-top: 5em;
    background-color: #fff;
    background-image: linear-gradient(#ddd .1em, transparent .1em);
    background-size: 100% 4em;
}

@media print {
    nav {
        display: none;
    }
    section {
        border: 0;
        min-height: inherit;
    }
}
