/* idiot-test.com: a small, sincere website. */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.page {
  max-width: 34em;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

a { color: #0000ee; }
a:visited { color: #551a8b; }

hr {
  border: 0;
  border-top: 1px solid #aaa;
  margin: 12px 0;
}

.masthead { text-align: center; }
.wordmark { font-size: 0.875rem; }

main {
  min-height: 50vh;
  padding: 40px 0 48px;
}

h1 {
  font-size: 1.375rem;
  line-height: 1.35;
  margin: 0 0 1.25em;
}

h1:focus { outline: none; }
h1:focus-visible { outline: 2px dotted #000; outline-offset: 4px; }

.line { display: block; }
.line + .line { margin-top: 0.9em; }

.intro { text-align: center; }
.intro h1 { font-size: 1.75rem; margin-bottom: 0.75em; }
.intro .lead { font-size: 1.125rem; }

.progress {
  font-size: 0.875rem;
  color: #555;
  margin: 0 0 1em;
}

.ack {
  font-style: italic;
  margin: 0 0 2em;
}

.actions,
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 1.75em 0 0;
}

.intro .actions { justify-content: center; }

button {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.4em 1em;
  min-height: 2.5em;
  min-width: 4.5em;
}

input[type="text"],
textarea {
  font-family: inherit;
  font-size: 1rem; /* keeps iOS from zooming the page on focus */
  padding: 0.35em 0.45em;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #0000ee;
  outline-offset: 2px;
}

label { display: block; margin: 0 0 0.5em; }

.mirror-field {
  width: 10em;
  max-width: 100%;
  letter-spacing: 0.08em;
}

.text-field { width: 16em; max-width: 100%; box-sizing: border-box; }

.checks { border: 0; padding: 0; margin: 0; }
.check { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.check input { width: 1.25em; height: 1.25em; margin: 0; }
.check label { margin: 0; }

.confirm-prompt,
.detour { font-weight: bold; margin: 0; }
.confirm-prompt:focus,
.detour:focus { outline: none; }

.review { padding-left: 1.5em; }
.review li + li { margin-top: 1.25em; }
.review p { margin: 0.2em 0; }

.word-feedback { font-style: italic; margin: -0.5em 0 1.25em; }
.word-feedback:empty { display: none; }

.small { font-size: 0.875rem; }
.late { margin-top: 2.5em; }

.error {
  font-weight: bold;
  min-height: 1.5em;
  margin: 0.75em 0 0;
}

.verdict {
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.25em;
}

.according { margin: 0 0 1.75em; color: #333; }

.observations {
  padding-left: 1.25em;
  margin: 0 0 1.5em;
}
.observations li + li { margin-top: 0.6em; }

.copy-fallback textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.footer {
  text-align: center;
  font-size: 0.8125rem;
  color: #555;
}
.footer p { margin: 0.5em 0; }

.restart button {
  font-size: 0.8125rem;
  min-height: 2.25em;
  min-width: 0;
  padding: 0.25em 0.75em;
  margin: 0.25em 0.25em 0;
}

.linklike {
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  min-width: 0;
  color: #0000ee;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  main { padding: 28px 0 36px; }
  h1 { font-size: 1.25rem; }
  .verdict { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
