/* Kyselylomakkeen tyylimäärittely. Tarkoituksellisesti vähäinen. */
body {
  font-family: "Times New Roman", Times, "Liberation Serif", serif;
  font-size: 17px;
  line-height: 1.45;
  color: #000;
  background: #fff;
  max-width: 780px;
  margin: 0 auto;
  padding: 14px 16px 40px;
}
hr { border: 0; border-top: 1px solid #000; margin: 10px 0 18px; }
.org { font-weight: bold; font-size: 15px; letter-spacing: .02em; }
.org2 { font-size: 14px; }
#progress { margin-top: 8px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.pbar { display: inline-block; width: 200px; height: 11px; border: 1px solid #000; background: #fff; }
#pfill { display: block; height: 100%; width: 0; background: #808080; transition: width .6s linear; }
h1 { font-size: 23px; margin: 0 0 6px; }
h2 { font-size: 19px; margin: 24px 0 6px; }
h3 { font-size: 17px; margin: 20px 0 4px; }
.meta { font-size: 13px; color: #444; margin: 0 0 14px; }
p { margin: 0 0 11px; text-align: justify; }
.small { font-size: 13px; }
.q { margin: 0 0 22px; padding: 0 0 4px; }
.q .qn { font-weight: bold; }
.q .qhelp { font-size: 14px; font-style: italic; margin: 2px 0 6px; }
.opts label { display: block; margin: 3px 0; cursor: default; }
.opts.inline label { display: inline-block; margin-right: 14px; }
input[type=text], input[type=number], select, textarea {
  font-family: inherit; font-size: 16px; padding: 2px 4px; border: 1px solid #767676; border-radius: 0;
}
textarea { width: 100%; box-sizing: border-box; min-height: 110px; }
button {
  font-family: Arial, sans-serif; font-size: 14px; padding: 4px 12px; cursor: default;
  background: #efefef; border: 1px solid #767676; border-radius: 2px; color: #000;
}
button:hover { background: #e5e5e5; }
button.next { margin-top: 10px; }
.err { color: #c00000; border: 1px solid #c00000; padding: 6px 8px; margin: 0 0 14px; font-size: 15px; }
table.grid { border-collapse: collapse; width: 100%; font-size: 15px; margin: 6px 0; }
table.grid th, table.grid td { border: 1px solid #999; padding: 4px; text-align: center; vertical-align: middle; }
table.grid td.st { text-align: left; }
table.grid th { font-weight: normal; font-size: 13px; background: #f2f2f2; }
.rank li { margin: 4px 0; }
.rank button { padding: 0 6px; font-size: 12px; margin-left: 4px; }
.counter { font-size: 13px; text-align: right; }
.loading { padding: 40px 0 60px; text-align: center; }
.loading .lt { font-size: 18px; margin-bottom: 14px; }
.loading .lbar { width: 320px; max-width: 90%; height: 16px; border: 1px solid #000; margin: 0 auto 10px; text-align: left; }
.loading .lfill { display: block; height: 100%; width: 0; background: #000080; transition: width .4s linear; }
.loading .ls { font-size: 14px; min-height: 2.8em; }
.loading .ln { font-size: 12px; color: #555; margin-top: 30px; text-align: center; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; border: 2px solid #000; padding: 16px 20px; max-width: 440px; font-size: 15px; }
.verdict { border: 3px double #000; padding: 12px 16px; margin: 14px 0; }
.verdict .big { font-size: 26px; font-weight: bold; text-align: center; margin: 6px 0; }
#foot { font-size: 12px; color: #444; }
@media (max-width: 560px) {
  table.grid { font-size: 13px; }
  table.grid th { font-size: 11px; }
}
.codebox {
  border: 2px solid #000; padding: 12px 10px; margin: 14px 0; text-align: center;
  font-family: "Courier New", Courier, monospace; font-size: 21px; font-weight: bold; letter-spacing: .06em; line-height: 1.7;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
@media (max-width: 560px) { .codebox { font-size: 15px; letter-spacing: .02em; } }
@media print { .codebox { visibility: hidden; } }
