@font-face {
    font-family: notosans;
    src: url(notosans.ttf);
}

@font-face {
    font-family: kaushanscript;
    src: url(kaushanscript.ttf);
}

* {
  font-family: 'notosans', sans-serif;
  line-height: 1.2em;
}

body {
  margin: 0;
  min-height: 100vh;
  background: whitesmoke;
}

#controls {
  margin: 0 auto;
  background: rgba(255, 165, 0, 0.73);
  text-align: center;
  padding: 25px;
  border: 12px double white;
  color: #272b2e;
}
#controls h1 {
  font-family: 'kaushanscript', cursive;
  text-decoration: underline overline white dotted;
  text-decoration-thickness: 5px;
  text-underline-offset: 7px;
  font-size: 23px;
}
#controls .title p {
  color: white;
  margin-top: -3px;
  font-size: 1.2em;
}
#controls label {
  font-weight: 600;
}
#controls label em {
  font-weight: initial;
}
#controls input, #controls textarea {
  caret-color: purple;
  width: 40%;
  min-width: 200px;
  box-sizing: border-box;
  border: none;
}
#controls input:focus, #controls textarea:focus {
  outline: 4px dotted rgba(50, 30, 165, 0.73);
}
#controls input {
  font-size: 1em;
}
#controls textarea {
  height: 20vh;
  resize: none;
}
#controls #cardInfoInput {
  background-color: white;
  border: 4px solid white;
  padding: 5px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bolder;
}
#controls #cardInfoInput:hover {
  border: 4px solid rgba(50, 30, 165, 0.73);
  color: rgba(50, 30, 165, 0.73);
}

.printHelp {
  background: rgba(50, 30, 165, 0.73);
  margin: 0 auto;
  margin-top: 40px;
  padding: 15px 40px 30px 40px;
  border-radius: 9px;
  color: white;
  border: 2px dashed white;
  text-align: left;
  max-width: 590px;
}

section {
  display: grid;
  grid-template-columns: calc(297mm / 3) calc(297mm / 3) calc(297mm / 3);
  grid-template-rows: calc(210mm / 4) calc(210mm / 4) calc(210mm / 4) calc(210mm / 4);
  height: 210mm;
  width: 297mm;
  margin: 0 auto;
}

.box {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpi2r9//38gYGAEESAAEGAAasgJOgzOKCoAAAAASUVORK5CYII=);
  padding: 2px;
  overflow: hidden;
  color-adjust: exact;
}
.card {
  height: 100%;
  background-color: white;
}

.card p {
  margin: 0;
  text-align: center;
  font-size: large;
}

.card p.word {
  font-size: xx-large;
}

@media screen and (min-width: 460px) {
    #controls h1 {
      font-size: 42px;
    }
    #controls .title p {
      margin-top: -14px;
    }
}
@media screen and (min-width: 768px) {
  #controls {
    width: 80%;
  }
}

@media screen and (min-width: 992px) {
  #controls {
    width: 40vw;
  }
}
@media print {
    @page {
      size: A4 landscape;
      margin: 0;
    }
    section {
      break-after: page;
    }
    body {
      background: none;
    }
}

section.chrome {
  margin-top: -2px;
}
