/* PagerPals public website: early 2000s messenger look */
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 Verdana, Tahoma, sans-serif; color: #1d2733; background: #dfe8f5 linear-gradient(180deg, #b9cdea 0, #dfe8f5 320px) no-repeat; }
a { color: #1f4fb8; }
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px 20px; background: linear-gradient(180deg, #4f86d9, #2a5db0); border-bottom: 2px solid #1c4386; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font: bold 20px Tahoma, Verdana, sans-serif; text-decoration: none; text-shadow: 1px 1px 0 #1c4386; }
.brand img { height: 32px; }
.brand .tm { font-size: 11px; margin-left: -7px; align-self: flex-start; margin-top: 4px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; }
.top nav a { color: #fff; text-decoration: none; padding: 4px 10px; border-radius: 3px; font-size: 13px; }
.top nav a:hover { background: rgba(255, 255, 255, .2); }
main { max-width: 900px; margin: 0 auto; padding: 20px; }
.hero { display: flex; align-items: center; gap: 28px; margin: 10px 0 24px; flex-wrap: wrap; }
.hero div { flex: 1; min-width: 260px; }
.hero h1 { font: bold 28px/1.2 Tahoma, Verdana, sans-serif; color: #17366e; margin: 0 0 10px; }
.btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 6px 14px; color: #12305f; font-weight: bold; text-decoration: none; background: linear-gradient(180deg, #fff, #d9e4f3); border: 1px solid #7d93b8; border-radius: 4px; box-shadow: 0 1px 0 #fff inset; }
.btn:hover { background: linear-gradient(180deg, #fff, #c6d7ef); }
.btn.big { font-size: 16px; padding: 9px 20px; }
.tag { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: bold; color: #fff; background: #1b2838; border-radius: 12px; }
.box { background: #fff; border: 1px solid #9aa9c0; border-radius: 6px; margin-bottom: 18px; overflow: hidden; box-shadow: 0 2px 6px rgba(30, 60, 110, .12); }
.box h2 { margin: 0; padding: 6px 12px; font: bold 15px Tahoma, Verdana, sans-serif; color: #fff; background: linear-gradient(180deg, #6f9be0, #3f70c4); }
.bd { padding: 12px 16px; }
.feat { margin: 0; padding-left: 20px; }
.feat li { margin: 6px 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.shots img { width: 100%; border: 1px solid #9aa9c0; border-radius: 4px; display: block; }
.news { border-bottom: 1px dotted #9aa9c0; padding: 6px 0; }
.news:last-child { border-bottom: 0; }
.news time { font-size: 12px; font-weight: bold; color: #3f70c4; }
.news p { margin: 2px 0 0; }
.terms h3 { font-size: 14px; margin: 16px 0 4px; color: #17366e; }
.terms p { margin: 0 0 8px; }
.muted { color: #5b6878; }
footer { text-align: center; font-size: 12px; color: #5b6878; padding: 10px 0 30px; }

/* the pager: bounces now and then; the face swaps with a page scrolling across the screen */
.pagerart { width: 260px; max-width: 70%; }
.pagerart svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.pagerart .pager { animation: bop 4s ease-in-out infinite; transform-box: view-box; transform-origin: 384px 544px; }
.pagerart .facecycle { animation: faceshow 12s step-end infinite; }
.pagerart .tick { font: bold 56px "Courier New", monospace; fill: #16220f; animation: tick 12s linear infinite; }
@keyframes bop { 0%, 80%, 100% { transform: translateY(0) } 84% { transform: translateY(-14px) } 88% { transform: translateY(0) } 92% { transform: translateY(-6px) } }
@keyframes faceshow { 0% { opacity: 1 } 15% { opacity: 0 } 60% { opacity: 1 } }
@keyframes tick { 0%, 15% { transform: translateX(0) } 60%, 100% { transform: translateX(-1800px) } }

/* falling confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; opacity: .85; animation: fall 9s linear infinite; }
.confetti i:nth-child(6n+1) { background: #ff5fa2; }
.confetti i:nth-child(6n+2) { background: #ffd54a; }
.confetti i:nth-child(6n+3) { background: #4fc3f7; }
.confetti i:nth-child(6n+4) { background: #7ee081; }
.confetti i:nth-child(6n+5) { background: #9b5cff; }
.confetti i:nth-child(6n) { background: #ff8a3d; width: 7px; height: 7px; border-radius: 50%; }
.confetti i:nth-child(1) { left: 3%; animation-delay: 0s; animation-duration: 9s; }
.confetti i:nth-child(2) { left: 7%; animation-delay: -3s; animation-duration: 11s; }
.confetti i:nth-child(3) { left: 11%; animation-delay: -6s; animation-duration: 8s; }
.confetti i:nth-child(4) { left: 15%; animation-delay: -1s; animation-duration: 12s; }
.confetti i:nth-child(5) { left: 19%; animation-delay: -7s; animation-duration: 10s; }
.confetti i:nth-child(6) { left: 23%; animation-delay: -4s; animation-duration: 9s; }
.confetti i:nth-child(7) { left: 27%; animation-delay: -8s; animation-duration: 13s; }
.confetti i:nth-child(8) { left: 31%; animation-delay: -2s; animation-duration: 10s; }
.confetti i:nth-child(9) { left: 35%; animation-delay: -5s; animation-duration: 8s; }
.confetti i:nth-child(10) { left: 39%; animation-delay: -9s; animation-duration: 11s; }
.confetti i:nth-child(11) { left: 43%; animation-delay: -3.5s; animation-duration: 12s; }
.confetti i:nth-child(12) { left: 47%; animation-delay: -6.5s; animation-duration: 9s; }
.confetti i:nth-child(13) { left: 51%; animation-delay: -0.5s; animation-duration: 10s; }
.confetti i:nth-child(14) { left: 55%; animation-delay: -7.5s; animation-duration: 13s; }
.confetti i:nth-child(15) { left: 59%; animation-delay: -2.5s; animation-duration: 8s; }
.confetti i:nth-child(16) { left: 63%; animation-delay: -5.5s; animation-duration: 11s; }
.confetti i:nth-child(17) { left: 67%; animation-delay: -8.5s; animation-duration: 9s; }
.confetti i:nth-child(18) { left: 71%; animation-delay: -1.5s; animation-duration: 12s; }
.confetti i:nth-child(19) { left: 75%; animation-delay: -4.5s; animation-duration: 10s; }
.confetti i:nth-child(20) { left: 79%; animation-delay: -9.5s; animation-duration: 8s; }
.confetti i:nth-child(21) { left: 83%; animation-delay: -3.2s; animation-duration: 13s; }
.confetti i:nth-child(22) { left: 87%; animation-delay: -6.2s; animation-duration: 9s; }
.confetti i:nth-child(23) { left: 91%; animation-delay: -0.8s; animation-duration: 11s; }
.confetti i:nth-child(24) { left: 95%; animation-delay: -7.2s; animation-duration: 10s; }
.confetti i:nth-child(25) { left: 13%; animation-delay: -10s; animation-duration: 14s; }
.confetti i:nth-child(26) { left: 45%; animation-delay: -11s; animation-duration: 14s; }
.confetti i:nth-child(27) { left: 69%; animation-delay: -12s; animation-duration: 14s; }
.confetti i:nth-child(28) { left: 97%; animation-delay: -13s; animation-duration: 14s; }
@keyframes fall { 0% { transform: translateY(0) rotate(0deg) } 100% { transform: translateY(110vh) rotate(720deg) } }
.top, main, footer { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .pagerart .pager, .pagerart .facecycle, .pagerart .tick { animation: none; } .pagerart .ticker { display: none; } }

/* tester forms: every label sits on its own line right above its box */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.form { max-width: 440px; }
.field { margin: 0 0 14px; }
.field label, .field .lbl { display: block; font-weight: bold; font-size: 14px; margin: 0 0 4px; }
.field input:not([type=radio]) { display: block; width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #9aa9c0; border-radius: 4px; background: #fff; }
.field input:not([type=radio]):focus { outline: 2px solid #4f86d9; outline-offset: 1px; }
.field .help { font-size: 12px; color: #5b6878; margin-top: 3px; }
.field label.radio { display: flex; align-items: center; gap: 6px; font-weight: normal; margin: 4px 0; }
.form label.check { display: block; font-weight: normal; margin: 0 0 14px; }
.form label.check input { margin: 0 6px 0 0; vertical-align: middle; }
.form button { cursor: pointer; }
.err { background: #ffe8e8; border: 1px solid #e0a0a0; color: #8a1c1c; padding: 6px 10px; border-radius: 4px; }
.bd h3 { font-size: 14px; color: #17366e; margin: 14px 0 4px; }

/* Catch the Page game on the pager */
.pagerart .hint { text-align: center; font-size: 12px; color: #3f5a85; margin: 6px 0 0; }
.pagerart .pbtn { fill: transparent; cursor: pointer; }
.pagerart .pbtn:hover { fill: rgba(255, 255, 255, .12); }
.pagerart .pbtn:focus { outline: none; }
.pagerart .pbtn:focus-visible { stroke: #7dffb0; stroke-width: 4; }
.pagerart .lcd { font: bold 22px "Courier New", monospace; fill: #16220f; }
.pagerart .lcd.big { font-size: 40px; }
.pagerart .ink-o { fill: none; stroke: #16220f; stroke-width: 4; }
.pagerart .playing .facecycle, .pagerart .playing .ticker { display: none; }
.pagerart svg.playing .facecycle, .pagerart svg.playing .ticker { display: none; }
.pagerart .pager.pressed { animation: press .15s ease-out; }
@keyframes press { 50% { transform: translateY(5px) } }

/* smiley pager in the header and on the tester page */
.brand svg.logo { height: 40px; width: auto; margin: -4px 0; }
.chooser { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center; }
.chooser .mini { grid-row: span 2; }
.chooser svg.minipager { width: 150px; height: auto; display: block; }
.chooser .choices { grid-column: 2; }
@media (max-width: 600px) { .chooser { grid-template-columns: 1fr; } .chooser .mini { grid-row: auto; } .chooser .choices { grid-column: 1; } }
form + form { margin-top: 14px; }
.field select, .field textarea { display: block; width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #9aa9c0; border-radius: 4px; background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the Santa hat wobbles every time the pager bounces */
.pagerart .hat { transform-box: view-box; transform-origin: 384px 70px; animation: hatbob 4s ease-in-out infinite; }
@keyframes hatbob { 0%, 80%, 100% { transform: rotate(0) translateY(0) } 84% { transform: rotate(-9deg) translateY(-10px) } 88% { transform: rotate(7deg) translateY(0) } 92% { transform: rotate(-4deg) translateY(-4px) } 96% { transform: rotate(2deg) } }
.pagerart .pager.pressed .hat { animation: hatpress .35s ease-out; }
@keyframes hatpress { 30% { transform: rotate(-8deg) translateY(-8px) } 65% { transform: rotate(5deg) } }
@media (prefers-reduced-motion: reduce) { .pagerart .hat { animation: none; } }
/* the staff door: a dot nobody notices */
/* the company that makes PagerPals, with its logo, at the bottom of every page */
footer .maker { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 10px; font-size: 13px; color: #3d4b5c; }
footer .maker img { width: 64px; height: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }

/* phones and tablets: just the smiley face (no scrolling page), plus a note that PagerPals is for Windows PCs */
.mobile-note { display: none; }
@media (hover: none) and (pointer: coarse), (max-width: 700px) {
  .pagerart .ticker { display: none; }
  .pagerart .facecycle { animation: none; opacity: 1; }
  .mobile-note { display: block; background: #fff8d6; border: 1px solid #e6cf6e; border-radius: 6px; padding: 8px 12px; font-size: 14px; }
}
