/*
 * A small nudge for the two buttons that get a visitor into the site.
 *
 * Log in and Sign up are the only things a visitor who is not sure about
 * the site can do about it, so they move a little every few seconds. The
 * movement is two millimetres and lasts a fraction of a second, so it
 * reads as a nudge rather than as a wobble, and it is the same movement
 * every time so it does not become the thing a visitor watches.
 *
 * The animation runs on the whole cycle, so the button is never in the
 * middle of a shake when the visitor arrives.
 *
 * A visitor who has asked the operating system to reduce motion does not
 * get it.
 */
@keyframes cb-nudge {
  0%, 88%  { transform: translateX(0); }
  91%      { transform: translateX(-2px); }
  94%      { transform: translateX(2px); }
  97%      { transform: translateX(-1px); }
  100%     { transform: translateX(0); }
}

.cb-nudge {
  animation: cb-nudge 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cb-nudge {
    animation: none;
  }
}
