/* Tetra's banners across the top of the page (site/banners.js puts them in; banners.py keeps them).
   One class per design: .bb-<design>. The admin page (/gamble/admin/banners) shows its previews with
   this same file, so what she picks is what visitors see. */
@font-face { font-family: "BBAnton"; src: url("/anton.woff") format("woff"); font-display: swap; }
#banners { text-align: center; }
.bb { position: relative; box-sizing: border-box; padding: 9px 42px; font: 15px/1.35 sans-serif; overflow-wrap: anywhere; }
.bb p { margin: 0; }
.bb a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bb a:hover { text-decoration-thickness: 2px; }
.bb-x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit;
        font: 22px/1 sans-serif; padding: 4px 10px; margin: 0; width: auto; min-width: 0; border-radius: 0; box-shadow: none;
        text-shadow: none; cursor: pointer; opacity: 0.75; }
.bb-x:hover, .bb-x:active, .bb-x:focus { background: none; border: 0; color: inherit; opacity: 1; }

.bb-info { background: #10243f; color: #dbeaff; border-bottom: 2px solid #3d7bd9; }
.bb-good { background: #0f2e1a; color: #d6f5df; border-bottom: 2px solid #35b465; }
.bb-warn { background: #ffcc00; color: #111; font-weight: bold; }
.bb-bad { background: #3a0f0f; color: #ffdcdc; border-bottom: 2px solid #e04545; }
/* rainbow that slides along */
.bb-party { color: #fff; font-weight: bold; text-shadow: 0 1px 2px #000, 0 0 6px #000;
            background: linear-gradient(90deg, #ff5a5a, #ffb03c, #ffe14d, #4ddb7a, #5aa2ff, #b57bff, #ff5a5a) 0 0 / 200% 100%;
            animation: bbslide 6s linear infinite; }
@keyframes bbslide { to { background-position: 200% 0; } }
/* meme text: white Impact-style capitals with a black outline, on Brian's purple */
.bb-meme { background: linear-gradient(180deg, #6a3a9e, #3f2470); color: #fff; font: 21px/1.2 BBAnton, Impact, "Arial Narrow Bold", sans-serif;
           text-transform: uppercase; letter-spacing: 0.5px; padding-top: 10px; padding-bottom: 10px;
           text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000; }
/* Brian's plaid vest */
.bb-plaid { color: #fff; font-weight: bold; text-shadow: 0 1px 3px #000, 0 0 2px #000;
            background-color: #7a1f2b;
            background-image: repeating-linear-gradient(0deg, transparent 0 14px, rgba(20, 40, 110, 0.55) 14px 28px, transparent 28px 34px, rgba(255, 210, 90, 0.35) 34px 36px),
                              repeating-linear-gradient(90deg, transparent 0 14px, rgba(20, 40, 110, 0.55) 14px 28px, transparent 28px 34px, rgba(255, 210, 90, 0.35) 34px 36px); }
.bb-plaid p { display: inline; background: rgba(0, 0, 0, 0.45); padding: 2px 8px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* under construction: the yellow/black hazard stripes of the 2026-11-09 "server moving" banner */
.bb-hazard { padding: 7px 0; background: repeating-linear-gradient(-45deg, #ffcc00 0 16px, #111 16px 32px); }
.bb-hazard p { padding: 5px 42px; background: #ffcc00; color: #111; border-top: 3px solid #111; border-bottom: 3px solid #111;
               font: 20px/1.25 BBAnton, Impact, "Arial Narrow Bold", sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.bb-hazard .bb-x { color: #111; }

@media (max-width: 440px) {
  .bb { font-size: 14px; padding-left: 12px; padding-right: 38px; }
  .bb-meme { font-size: 18px; }
  .bb-hazard { padding-left: 0; padding-right: 0; }
  .bb-hazard p { font-size: 17px; padding: 5px 38px 5px 12px; }
}
@media (prefers-reduced-motion: reduce) { .bb-party { animation: none; } }
/* a banner visitors can't close has no × to make room for */
.bb.bb-open { padding-left: 12px; padding-right: 12px; }
.bb-hazard.bb-open { padding-left: 0; padding-right: 0; }
.bb-hazard.bb-open p { padding-left: 12px; padding-right: 12px; }
