/* ==========================================================================
   Christmas Vacation theme for bbpoker.ca
   Switched on from the control panel (/control/). Loaded after the page's own CSS.

   Every rule starts with  html.bbp-theme body:not([class*="theme-"])  so that a player-details
   picture theme (body class "theme-...") keeps its own look. The plain "default-theme" class on
   player-details doesn't contain "theme-", so it still gets this theme.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&display=swap');

html.bbp-theme body:not([class*="theme-"]) {
  /* Colours the site's own CSS reads (css-new.css, theme-styles.css) */
  --body-bg: #0b1a2c;
  --container-bg: transparent;
  --page-content-bg: #fbf6ea;
  --text-color: #2b2420;
  --link-color: #8e1b1b;
  --link-hover-color: #1d5c34;
  --border-color: #8e1b1b;
  --footer-bg: transparent;
  --footer-hover-bg: rgba(255, 255, 255, 0.14);
  --table-caption-bg: #8e1b1b;
  --table-caption-color: #fff4dc;
  --table-caption-font: 'Oswald', 'Open Sans', sans-serif;
  --table-header: #1f5a37;
  --table-alt-row-bg: #f6edd8;
  --table-odd-row-bg: #fffaf0;
  --table-hover-bg: #f1e0b8;
  --awards-title-bg: #8e1b1b;
  --awards-title-color: #fff4dc;
  --dropdown-bg: #fffaf0;
  --dropdown-border: #c9b48a;
  --event-th-bg: #1f5a37;
  --event-th-color: #ffffff;

  /* Theme palette */
  --xmas-red: #9b211d;
  --xmas-red-dark: #6f1210;
  --xmas-green: #1f5a37;
  --xmas-green-dark: #133d25;
  --xmas-gold: #f3c55a;
  --xmas-cream: #fff4dc;
  --xmas-paper: #fbf6ea;

  /* Snowy night sky behind everything; falling snow (snow.js) is drawn between this and the page */
  background:
    radial-gradient(ellipse 110% 60% at 50% -5%, #24477a 0%, #13284a 40%, #0a1628 75%, #070f1c 100%) fixed;
  background-color: #0a1628;
  min-height: 100vh;
}

/* ---------- Page frame: see-through, so the header sits in the night sky ---------- */
html.bbp-theme body:not([class*="theme-"]) #container {
  position: relative;
  background: transparent;
  box-shadow: none;
}

/* ---------- Header: station wagon | sign | house, standing in snow ---------- */
html.bbp-theme body:not([class*="theme-"]) #page_header {
  position: relative;
  height: 250px !important;
  margin: 0 !important;
  background: url('img/snow-pile.webp') repeat-x left bottom / 300px auto;
}
html.bbp-theme body:not([class*="theme-"]) #page_header a {
  position: relative;
  z-index: 3;
  display: block;
  width: 46%;
  height: 100% !important;
  margin: 0 auto;
  background: url('img/logo.webp') center 6px / contain no-repeat !important;
  opacity: 1 !important;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}
html.bbp-theme body:not([class*="theme-"]) #page_header::before,
html.bbp-theme body:not([class*="theme-"]) #page_header::after {
  content: '';
  position: absolute;
  bottom: 6px;
  z-index: 2;
  width: 29%;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
html.bbp-theme body:not([class*="theme-"]) #page_header::before {
  left: 0;
  height: 78%;
  background-image: url('img/wagon.webp');
  background-position: left bottom;
}
html.bbp-theme body:not([class*="theme-"]) #page_header::after {
  right: 0;
  height: 92%;
  background-image: url('img/house.webp');
  background-position: right bottom;
}
/* Empty headings that header.php carries */
html.bbp-theme body:not([class*="theme-"]) #page_header h1,
html.bbp-theme body:not([class*="theme-"]) #page_header h3 {
  display: none;
}

/* ---------- Menu bar: red banner with holly at both ends ---------- */
html.bbp-theme body:not([class*="theme-"]) #footer {
  position: relative;
  border-top: 0;
  border-radius: 8px;
  padding: 12px 74px;
  background: linear-gradient(180deg, #b12a24 0%, var(--xmas-red) 45%, var(--xmas-red-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 4px 14px rgba(0, 0, 0, 0.45);
}
/* The top menu wears a cap of snow and icicles */
html.bbp-theme body:not([class*="theme-"]) #page_header + #footer {
  padding-top: 22px;
  background:
    url('img/snow-icicles.webp') repeat-x left -2px / auto 30px,
    linear-gradient(180deg, #b12a24 0%, var(--xmas-red) 45%, var(--xmas-red-dark) 100%);
}
html.bbp-theme body:not([class*="theme-"]) #footer::before,
html.bbp-theme body:not([class*="theme-"]) #footer::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 78px;
  height: 46px;
  margin-top: -21px;
  background: url('img/holly-cluster.webp') center / contain no-repeat;
  pointer-events: none;
}
html.bbp-theme body:not([class*="theme-"]) #footer::before { left: -4px; transform: scaleX(-1); }
html.bbp-theme body:not([class*="theme-"]) #footer::after { right: -4px; }

html.bbp-theme body:not([class*="theme-"]) #footer a.footer {
  color: var(--xmas-cream);
  font: 600 15px/1.2 'Oswald', 'Arial Narrow', Arial, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
html.bbp-theme body:not([class*="theme-"]) #footer a.footer:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.14);
}
html.bbp-theme body:not([class*="theme-"]) #footer a.footer.active {
  text-decoration-color: var(--xmas-gold);
}
html.bbp-theme body:not([class*="theme-"]) .hamburger-line {
  background-color: var(--xmas-cream);
}

/* ---------- Content: warm paper between the two menus ---------- */
html.bbp-theme body:not([class*="theme-"]) #page_content {
  background-color: var(--xmas-paper);
  border-radius: 6px;
  margin: 10px 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

/* Table titles and section titles: red banners with a snow cap */
html.bbp-theme body:not([class*="theme-"]) table caption,
html.bbp-theme body:not([class*="theme-"]) .AwardsTitle {
  background:
    url('img/snow-icicles.webp') repeat-x left -3px / auto 24px,
    linear-gradient(180deg, #b12a24 0%, var(--xmas-red) 50%, var(--xmas-red-dark) 100%) !important;
  color: var(--xmas-cream) !important;
  font-family: 'Oswald', 'Open Sans', sans-serif !important;
  letter-spacing: 0.04em;
  padding-top: 20px !important;
  border-radius: 6px 6px 0 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
html.bbp-theme body:not([class*="theme-"]) table th {
  background-color: var(--xmas-green) !important;
  color: #fff !important;
}
html.bbp-theme body:not([class*="theme-"]) table th a {
  color: #fff !important;
}

/* ---------- Home page countdown bar ---------- */
html.bbp-theme body:not([class*="theme-"]) #countdown {
  border-top: 0;
  height: auto;
  padding: 9px 12px;
  background: linear-gradient(90deg, var(--xmas-green-dark), var(--xmas-green) 50%, var(--xmas-green-dark));
  color: var(--xmas-cream);
  font: 500 15px/1.4 'Oswald', Arial, sans-serif;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
html.bbp-theme body:not([class*="theme-"]) #countdown strong {
  color: var(--xmas-gold);
}

/* ---------- Announcement banner and preview flag ---------- */
html.bbp-theme body:not([class*="theme-"]) .bbp-announcement {
  border-radius: 8px;
  margin: 10px 0;
  font-family: 'Oswald', Arial, sans-serif;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}
html.bbp-theme body:not([class*="theme-"]) .bbp-announcement-festive {
  background:
    url('img/lights-small.webp') no-repeat 10px center / auto 30px,
    url('img/lights-small.webp') no-repeat right 10px center / auto 30px,
    linear-gradient(180deg, var(--xmas-green), var(--xmas-green-dark));
  padding-left: 150px;
  padding-right: 150px;
}

/* ---------- Phones and narrow windows ---------- */
@media screen and (max-width: 900px) {
  html.bbp-theme body:not([class*="theme-"]) #page_header { height: 210px !important; }
  html.bbp-theme body:not([class*="theme-"]) #page_header a { width: 60%; }
  html.bbp-theme body:not([class*="theme-"]) #page_header::before { width: 22%; height: 55%; }
  html.bbp-theme body:not([class*="theme-"]) #page_header::after { width: 22%; height: 65%; }
}
@media screen and (max-width: 640px) {
  html.bbp-theme body:not([class*="theme-"]) #page_header { height: 160px !important; background-size: 200px auto; }
  html.bbp-theme body:not([class*="theme-"]) #page_header a { width: 92%; }
  html.bbp-theme body:not([class*="theme-"]) #page_header::before,
  html.bbp-theme body:not([class*="theme-"]) #page_header::after { display: none; }
  html.bbp-theme body:not([class*="theme-"]) #footer { padding-left: 10px; padding-right: 10px; }
  html.bbp-theme body:not([class*="theme-"]) #footer::before,
  html.bbp-theme body:not([class*="theme-"]) #footer::after { width: 56px; height: 34px; margin-top: -17px; top: 24px; }
  html.bbp-theme body:not([class*="theme-"]) .bbp-announcement-festive { padding-left: 16px; padding-right: 16px; background: linear-gradient(180deg, var(--xmas-green), var(--xmas-green-dark)); }
}
