/* Bigbunny theme colors matching https://bigbunny.casino/ */
:root {
  /* Page body: deep purple; header/nav share header purple */
  --bb-main-bg: rgb(37, 36, 86);
  --bb-main-text: rgb(255, 255, 254);
  --bb-header-bg: rgb(37, 36, 86);
  --bb-header-color: rgb(254, 255, 254);
  --bb-footer-bg: rgb(37, 35, 85);
  --bb-footer-color: rgb(254, 254, 255);
  --bb-login-btn: rgb(121, 84, 29);
  --bb-reg-btn: rgb(51, 45, 127);
  /* Match bottom nav bar to top header bar */
  --bb-nav-bg: rgb(37, 36, 86);
  --bb-table-even: rgb(43, 42, 100);
  --bb-table-odd: rgb(32, 30, 79);
  --bb-table-border: rgb(254, 253, 253);
  --bb-accent: rgb(212, 175, 88);
  --bb-link: rgb(180, 170, 255);
  --fs-color-primary: rgb(51, 45, 127);
  --fs-color-secondary: rgb(121, 84, 29);
  --fs-color-success: rgb(121, 84, 29);
  /* Kill leftover 77JL greens from flatsome CSS */
  --wp--preset--color--vivid-green-cyan: rgb(54, 49, 126);
}

html,
body,
body.page,
body.wp-theme-flatsome {
  background-color: var(--bb-main-bg) !important;
  background-image: none !important;
  color: var(--bb-main-text) !important;
}

/* Accessibility skip link: hide until focused (works even if flatsome incomplete) */
.skip-link.screen-reader-text {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
}
.skip-link.screen-reader-text:focus {
  left: 8px !important;
  top: 8px !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  z-index: 100000;
  padding: 8px 12px;
  background: #fff;
  color: #000;
}

/* Prevent double logo if both light/dark logos are present */
.header-logo-dark {
  display: none !important;
}

/* Minimal nav fallback if framework CSS fails */
#wide-nav .header-bottom-nav {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none !important;
  margin: 0;
  padding: 8px 10px;
  gap: 4px 14px;
}
#wide-nav .header-bottom-nav > li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
#wide-nav .header-bottom-nav > li > a {
  display: inline-block;
  padding: 6px 4px;
  text-decoration: none;
  white-space: nowrap;
}
#wide-nav .header-bottom-nav ul.sub-menu {
  list-style: none;
}

/* Beat flatsome: #wrapper,#main,#main.dark{background-color:#011d00} */
#wrapper,
#main,
#main.dark,
#content,
#content.content-area,
.content-area,
.page-wrapper {
  background-color: var(--bb-main-bg) !important;
  background-image: none !important;
}

body {
  font-family: "Segoe UI", "Roboto Condensed", system-ui, sans-serif;
}

#wrapper {
  min-height: 100vh;
}

/* Content blocks stay on the same purple ground */
.col-inner,
.row,
.bb-content-wrap,
.section,
.section-content,
.bg-fill {
  background-color: transparent !important;
  background-image: none !important;
}

/* Header & nav */
#header .header-wrapper,
#masthead.header-main,
.header-main,
.header-bg-color,
.header-wrapper {
  background-color: var(--bb-header-bg) !important;
  background-image: none !important;
}

#wide-nav.header-bottom,
.header-bottom.wide-nav,
.nav-dark {
  background-color: var(--bb-nav-bg) !important;
  color: var(--bb-header-color) !important;
}

.header-nav a,
.header-bottom-nav a,
.nav-dark .nav > li > a,
.nav-dark .header-nav > li > a,
.nav-sidebar a,
.mobile-nav a {
  color: var(--bb-header-color) !important;
}

.header-nav a:hover,
.header-bottom-nav a:hover,
.nav-dark .nav > li > a:hover {
  color: var(--bb-accent) !important;
}

.nav-dark .header-nav.nav > li.active > a,
.header-bottom-nav .current-menu-item > a,
.header-bottom-nav .active > a {
  color: var(--bb-accent) !important;
}

.top-divider {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Logo sizing */
.header_logo,
.header-logo,
.header-logo-dark {
  max-height: 48px;
  width: auto;
  height: auto;
}

/* Buttons */
.button.success,
.button.success.is-gloss,
a.button.success {
  background-color: var(--bb-login-btn) !important;
  border-color: var(--bb-login-btn) !important;
  color: #fff !important;
}

.button.secondary,
.button.secondary.is-gloss,
a.button.secondary {
  background-color: var(--bb-reg-btn) !important;
  border-color: var(--bb-reg-btn) !important;
  color: #fff !important;
}

.button.primary,
a.button.primary {
  background-color: var(--bb-reg-btn) !important;
  border-color: var(--bb-reg-btn) !important;
  color: #fff !important;
}

.button:hover {
  filter: brightness(1.12);
}

/* Content area */
#main,
.content-area,
.col-inner {
  color: var(--bb-main-text);
}

h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
}

a {
  color: var(--bb-link);
}

a:hover {
  color: var(--bb-accent);
}

p, li, td, th, span, em, strong {
  color: inherit;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25em 0;
  color: var(--bb-table-border);
}

table th,
table td {
  border: 1px solid rgba(254, 253, 253, 0.25);
  padding: 0.7em 0.9em;
  text-align: left;
}

table thead th {
  background-color: var(--bb-nav-bg);
  color: #fff;
}

table tbody tr:nth-child(odd) td {
  background-color: var(--bb-table-odd);
}

table tbody tr:nth-child(even) td {
  background-color: var(--bb-table-even);
}

/* Footer */
.footer-wrapper .section.dark,
.footer-wrapper section,
#footer section {
  background-color: var(--bb-footer-bg) !important;
  color: var(--bb-footer-color) !important;
}

.absolute-footer,
.absolute-footer.dark {
  background-color: rgb(24, 23, 58) !important;
  color: var(--bb-footer-color) !important;
}

.footer-wrapper a {
  color: var(--bb-link);
}

/* Breadcrumbs */
.breadcrumbs,
.breadcrumbs a,
.rank-math-breadcrumb {
  color: var(--bb-accent) !important;
}

/* FAQ accordion */
.accordion-title,
.accordion-item {
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #fff;
}

.accordion-inner {
  color: rgba(255, 255, 254, 0.92);
}

/* Game grid */
.bb-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.bb-game-card {
  background: var(--bb-table-odd);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.bb-game-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 170 / 230;
  object-fit: cover;
}

.bb-game-card span {
  display: block;
  padding: 8px 6px 12px;
  font-size: 0.85rem;
  color: #fff;
}

/* Hero banner carousel — slightly smaller, no crop (object-fit: contain) */
.bb-hero {
  width: 100%;
  display: block;
  padding: 10px 0 0;
  box-sizing: border-box;
}

.bb-hero-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.bb-hero-frame {
  position: relative;
  width: 100%;
  /* Match large original banners ~1190x400 */
  aspect-ratio: 1190 / 400;
  background: rgba(20, 18, 55, 0.45);
  border-radius: 0;
  overflow: hidden;
}

.bb-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.bb-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

/* All slides fill the same large frame */
.bb-hero-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
}

.bb-hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 18, 55, 0.72);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.bb-hero-btn:hover {
  background: rgba(54, 49, 126, 0.95);
}

.bb-hero-prev { left: 8px; }
.bb-hero-next { right: 8px; }

.bb-hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.bb-hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.bb-hero-dots button.is-active {
  background: rgb(212, 175, 88);
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .bb-hero {
    padding: 6px 0 0;
  }
  .bb-hero-slider {
    width: 100%;
  }
  .bb-hero-frame {
    aspect-ratio: 1190 / 400;
  }
  .bb-hero-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

.bb-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px 0 28px;
}

.bb-cta-row .button {
  min-width: 140px;
  text-align: center;
}

.bb-feature-list {
  columns: 1;
}

@media (min-width: 768px) {
  .bb-feature-list {
    columns: 2;
    column-gap: 2rem;
  }
}

/* Article cards on promo / index */
.bb-article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .bb-article-list {
    grid-template-columns: 1fr 1fr;
  }
}

.bb-article-card {
  background: var(--bb-table-odd);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 18px 20px;
}

.bb-article-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.bb-article-card p {
  margin-bottom: 12px;
  opacity: 0.92;
}

/* Mobile sidebar */
.mobile-sidebar,
#main-menu {
  background-color: var(--bb-header-bg) !important;
}

/* Content max width helper */
.bb-content-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 15px 40px;
}

figure.wp-caption,
figure.aligncenter {
  margin: 1.5em auto;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.wp-caption-text {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 8px;
}

.bb-bonus-banner {
  background: linear-gradient(135deg, var(--bb-nav-bg), var(--bb-header-bg));
  border: 1px solid rgba(212, 175, 88, 0.35);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  margin: 28px 0;
}

.bb-bonus-banner strong {
  color: var(--bb-accent);
  font-size: 1.25rem;
}

.bb-caret, .bb-menu-ico {
  display: inline-block;
  font-style: normal;
  margin-left: 4px;
  opacity: 0.9;
  font-family: inherit;
}
.nav-icon .bb-menu-ico {
  font-size: 1.4rem;
  margin: 0;
  line-height: 1;
}

/* Hide broken dropdown icon/glyph after Registration (and any nav caret from flatsome) */
.header-bottom-nav .icon-angle-down,
.header-nav .icon-angle-down,
.nav-sidebar .icon-angle-down,
.header-bottom-nav .menu-item-has-children > a > i,
.header-bottom-nav .has-dropdown > a::after,
.header-bottom-nav .menu-item-has-children > a::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
}