/* Additions to style.css (the original Kirby theme). */

/* long links wrap instead of making the page wider than a phone (words in titles stay whole) */
main {
  overflow-wrap: break-word;
}

/* the icons (Font Awesome 5's, now inline: src/components/Icon.astro) */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  overflow: visible;
}
.print-button {
  font-size: 30px;
  line-height: 1;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
  align-self: flex-start;
}
#breadcrumb .icon {
  margin-top: 0.15em;
}

/* the animated picture on the Game page, now a video */
aside video {
  width: 100%;
  display: block;
}

/* phones: the quickscan question above its 10 answers, the answers on two rows */
@media (max-width: 767.98px) {
  .question-item > .flex {
    flex-wrap: wrap;
  }
  .question-item .number {
    flex: 0 0 60px !important;
    width: 60px;
    height: 60px;
    margin-right: 1rem;
  }
  .question-item .question {
    flex: 1 1 calc(100% - 80px);
    min-width: 0;
  }
  .question-item .radios {
    flex-wrap: wrap;
  }
  .question-item .radios .radio {
    margin-right: 1.25rem;
    margin-bottom: 1rem;
  }
  .question-item .extra {
    width: 100%;
  }
}

/* toolbox items: the text block is w-full plus side margins, 2rem wider than the page on phones */
#content {
  min-width: 0;
  width: 100%;
}
#content > * {
  max-width: calc(100% - 2rem);
}

/* long words in headings break at a Dutch syllable (html lang="nl") instead of anywhere */
h1,
h2 {
  hyphens: auto;
  /* only long words (12+ letters), at least 5 letters on each side */
  hyphenate-limit-chars: 12 5 5;
}
