/* Scroll-in motion. Keyframes adapted from Animate.css 4.1.1 (MIT): bounceIn, fadeInUp, fadeInDown.
   motion.js adds .rv (hidden) to things as they are created, then .in when they scroll into view.
   Nothing is hidden unless the script runs and the person has not asked for reduced motion. */
.rv:not(.in) { opacity: 0; }
.rv.in { animation-duration: .6s; animation-fill-mode: backwards; animation-delay: var(--rv-delay, 0s); }
.rv.in.pop { animation-name: bounceIn; animation-duration: .5s; }
.rv.in.rise { animation-name: fadeInUp; animation-duration: .4s; animation-timing-function: cubic-bezier(.22,1,.36,1); }
.rv.in.rise.from-top { animation-name: fadeInDown; } /* scrolling back up: things drop in from above */

@keyframes bounceIn {
  0%, 20%, 40%, 60%, 80%, to { animation-timing-function: cubic-bezier(.215,.61,.355,1); }
  0% { opacity: 0; transform: scale3d(.3,.3,.3); }
  20% { transform: scale3d(1.1,1.1,1.1); }
  40% { transform: scale3d(.9,.9,.9); }
  60% { opacity: 1; transform: scale3d(1.03,1.03,1.03); }
  80% { transform: scale3d(.97,.97,.97); }
  to { opacity: 1; transform: scale3d(1,1,1); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
/* A small, friendly press on every button. */
.btn:active:not(:disabled), .pick:active:not(:disabled), .fork-choice:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .rv:not(.in) { opacity: 1; }
  .rv.in { animation: none; }
}
