* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 40px 16px 80px; background: #f3f1ec; color: #000; font-family: Helvetica, Arial, sans-serif; text-align: center; }
a { color: #3f8694; text-decoration: none; }
a:hover { text-decoration: underline; }

.logo { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.greeting { margin: 30px 0 40px; font-size: 24px; }

.linkrow { margin-top: 25px; font-size: 14px; }
.gold { color: goldenrod; }

/* rounded note boxes, like the donation box */
.note { width: 100%; max-width: 360px; margin: 25px auto 0; padding: 5px 12px 12px; border: 2px solid #3f8694; border-radius: 25px; background: #fbfaf7; font-size: 16px; }
.note p { margin: 10px 0 0; }
.note.wide { max-width: 650px; padding: 10px 20px 20px; }
.buttons { line-height: 2.2; }
.addr { display: block; margin-top: 4px; padding: 6px 8px; border: 1px solid #c9c4b8; border-radius: 6px; background: #fff; font: 14px/1.4 monospace; word-break: break-all; user-select: all; }
.pill { display: inline-block; margin: 0 4px; padding: 0 10px; border: 2px solid; border-radius: 12px; color: #fff; font-weight: 600; line-height: 1.6; }
.pill:hover { text-decoration: none; filter: brightness(1.1); }
.pill.dark { border-color: #000; background: #3a3a3a; }
.pill.blue { border-color: #196585; background: #29abe0; }
.bar { width: 90%; height: 24px; margin: 10px auto 0; border: 2px solid #000; border-radius: 20px; background: #d1f3ff; overflow: hidden; }
.fill { width: 100%; height: 100%; border-radius: 20px; background: #5ad5ff; font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; }

/* FAQ and contact pages */
.hometab { position: absolute; top: 12px; left: 12px; padding: 2px 16px; border: 2px solid #3f8694; border-radius: 15px; background: #fbfaf7; color: #000; font-size: 18px; }
.welcome { padding: 5px; color: #3f8694; font-size: 64px; }
.welcomesub { padding: 15px; color: #57a1b7; font-size: 22px; }
.faq { max-width: 760px; margin: 10px auto 0; text-align: left; }
.faq h1 { margin: 30px 0 10px; font-size: 32px; }
.faq dt { margin-top: 18px; font-size: 20px; font-weight: 600; }
.faq dd { margin: 5px 0 0 40px; font-size: 18px; }
.faq .last { margin-top: 30px; }
.red { color: red; }

.dropbox { max-width: 650px; margin: 0 auto; border: 2px solid #396b84; border-radius: 4px; background: #cce8ed; }
#drop { display: block; padding: 50px 16px; color: #28538f; font-size: 24px; cursor: pointer; transition: background-color 150ms linear; }
#drop:hover, #drop.over { background: #b2e7f0; }
.error, .failed #status { color: #bd4a3f; }
.types { display: block; margin-top: 10px; color: #4d7f8c; font-size: 14px; }
.error { display: block; margin-top: 12px; font-size: 16px; }

#progress { padding: 20px 16px 22px; font-size: 16px; }
.row { display: flex; justify-content: space-between; gap: 16px; text-align: left; }
#fname { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#fmeta { flex: none; color: #555; }
#status { margin-top: 6px; }
#cancel { display: inline-block; margin-top: 8px; font-size: 14px; }

/* stepped spinner: 8 bars that tick round instead of turning smoothly */
.spinner { position: relative; width: 32px; height: 32px; margin: 16px auto 0; animation: tick 1s steps(8) infinite; }
.spinner i { position: absolute; left: 50%; top: 0; width: 4px; height: 10px; margin-left: -2px; background: #205f60; transform-origin: 2px 16px; }
.spinner i:nth-child(1) { transform: rotate(0deg); opacity: 1; }
.spinner i:nth-child(2) { transform: rotate(45deg); opacity: .875; }
.spinner i:nth-child(3) { transform: rotate(90deg); opacity: .75; }
.spinner i:nth-child(4) { transform: rotate(135deg); opacity: .625; }
.spinner i:nth-child(5) { transform: rotate(180deg); opacity: .5; }
.spinner i:nth-child(6) { transform: rotate(225deg); opacity: .375; }
.spinner i:nth-child(7) { transform: rotate(270deg); opacity: .25; }
.spinner i:nth-child(8) { transform: rotate(315deg); opacity: .15; }
@keyframes tick { to { transform: rotate(360deg); } }
.failed .spinner { display: none; }

.footer { position: fixed; left: 0; right: 0; bottom: 0; padding: 8px; background: #f3f1ec; font-size: 18px; color: #3f8694; }

@media (max-width: 480px) {
  .greeting { font-size: 19px; }
  .sub { padding-top: 56px; }
  .welcome { font-size: 44px; }
  .welcomesub { font-size: 18px; }
  .faq dd { margin-left: 16px; }
  #drop { font-size: 20px; }
}

/* video page */
.watch { padding-top: 24px; }
.logo.small { width: 260px; }
.viewer { --ar: 16 / 9; width: min(100%, 860px, calc(70vh * var(--ar))); margin: 20px auto 0; border: 2px solid #396b84; border-radius: 4px; background: #cce8ed; }
.viewer video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: contain; background: #000; }
.viewer-bar { padding: 8px 12px; font-size: 14px; color: #28538f; }
