:root {
  #doug {
    display: none;
  }

  --x1-transform: scale(0.9);
  --x2-transform: scale(0.4);
  --x3-transform: scale(0.7);
  --x4-transform: scale(0.3);
  --x5-transform: scale(0.5);
  --x6-transform: scale(0.8);
  --x7-transform: scale(0.4);
  --x8-transform: scale(0.3);
  --x9-transform: scale(0.6);
  --x10-transform: scale(0.3);

  --color-background-color: rgb(239, 195, 202);
  --color-bingo-letter: #ce181e;
  --color-game-back-button-color: white;
  --color-game-back-button: #007bff;
  --color-game-back-button-hover: #0056b3;
  --color-game-container-bg: #ffffff;
  --color-game-container-shadow: rgba(0, 0, 0, 0.1);
  --color-game-input-box-border: #ccc;
  --color-game-winner-border: green;
  --color-game-winner-bg: #e6ffe6;
  --color-game-loser-border: red;
  --color-game-loser-bg: #ffe6e6;

  --color-bingo-col-border-left: 2px solid rgba(0, 0, 0, 0.31);

  --color-bingo-letter-hover: #e24e53;
  --color-bingo-letter-gray: #969696;
  --color-bingo-letter-gray-hover: #808080;
  --color-bingo-letter-drop-shadow-color: rgba(0, 0, 0, 0.8);

  --color-reset-hover-bg: rgba(255, 0, 0, 0.25);
  --color-reset-active-bg: rgba(255, 0, 0, 0.5);

  --color-big-bingo-ball-bg: #9b9b9b;
  --color-big-bingo-ball-border: #333;
  --color-big-bingo-ball-letter-color: black;
  --color-big-bingo-letter-shadow: transparent;

  --color-balls-drawn-remaining-bg: rgba(179, 162, 199, 0.67);
  --color-balls-drawn-remaining-border: rgba(74, 126, 187, 0.85);

  --color-winning-patterns-box-shadow: rgba(0, 0, 0, 0.15);
  --color-winning-patterns-strikethrough-bg: var(--color-background-color);
  --color-winning-patterns-strikethrough: var(--color-background-color);
  --color-winning-pattern-active: var(--color-background-color);
  --color-winning-color-text: black;
  --color-winning-pattern-bg: rgba(242, 174, 174, 0.966);


  --color-logo-div: var(--color-background-color);

  --color-bingo-card-boarder: #7f7f7f;
  --color-bingo-card-box-shadow: #777;

  --color-bingo-card-body-bg: #f2f2f2;
  --color-bingo-card-header: #ce181e;
  --color-big-bingo-card-body-hover: #ddd;

  --color-bubble-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2),
  inset 0px 10px 30px 5px rgba(255, 255, 255, 1);

  --color-bingo-ball-bg: #9b9b9b;
  --color-bingo-ball-border: #333;
  --color-bingo-ball-color: #000;
  --color-bingo-ball-hover-opacity: 0.54;
  --color-bingo-ball-active-border: rgb(149, 55, 53);
  --color-bingo-ball-active-color: #5e2221;
  --color-bingo-ball-active-bg: radial-gradient(circle at 31.5px 12px, rgba(255, 138, 135, 0.85), rgba(221, 98, 95, 0.85));
  --color-winner-name-hover: #16639a;

  .snowdrift {
    display: none;
  }

  .snow {
    display: none;
    pointer-events: none;
  }
}

.classic {}

.bingoCol {
  border-left: var(--color-bingo-col-border-left);
  position: relative;
  height: 670px;
  z-index: 2;
}


.bigBingoBallClass {
  background: var(--color-background-color);
  /* background-image: url('../img/ring.png'); */
  background-size: contain;
  /* Changed from 100% to contain */
  background-position: center;
  background-repeat: no-repeat;
  /* Prevent repeating */
  aspect-ratio: 1 / 1;
  /* Ensure perfect circular shape */
  box-sizing: border-box;
  /* Include border in width/height calculations */
  border: 2.5px solid var(--color-big-bingo-ball-border);
  opacity: 0.21;

  border-radius: 50%;
  width: 225px;
  height: 225px;
  position: relative;
  margin: 0 auto;
}

#bigBingoBall {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 186px;
  height: 186px;
}

#bigBingoLetter {
  position: relative;
  margin-top: 0;
  z-index: 2;
  color: var(--color-big-bingo-ball-letter-color);
  text-shadow:
    -1px -1px 0 var(--color-big-bingo-letter-shadow),
    1px -1px 0 var(--color-big-bingo-letter-shadow),
    -1px 1px 0 var(--color-big-bingo-letter-shadow),
    1px 1px 0 var(--color-big-bingo-letter-shadow);
}

#bigBingoNumber {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  color: var(--color-big-bingo-ball-letter-color);
  text-shadow:
    -1px -1px 0 var(--color-big-bingo-letter-shadow),
    1px -1px 0 var(--color-big-bingo-letter-shadow),
    -1px 1px 0 var(--color-big-bingo-letter-shadow),
    1px 1px 0 var(--color-big-bingo-letter-shadow);
}



.beach {
  --color-big-bingo-letter-shadow: black;

  --color-bingo-letter: #ffe066;

  /* Transparent is fine for the background as you're using an image */
  --color-background-color: transparent;

  /* Hide logo border or background */
  --color-logo-div: none;

  /* Ocean blue for the big bingo ball */
  --color-big-bingo-ball-bg: #4db8ff;

  /* Soft sand tone for drawn balls */
  --color-balls-drawn-bg: #fdd9a0;

  /* Warm coral-pink for winning pattern */
  --color-winning-pattern-bg: #fdd9a0;

  /* Transparent strike-throughs so nothing blocks the view */
  --color-winning-patterns-strikethrough-bg: var(--color-background-color);
  --color-winning-patterns-strikethrough: var(--color-background-color);
  --color-winning-pattern-active: var(--color-background-color);

  /* Dark navy for text on winning pattern areas */
  --color-winning-color-text: #1a2a33;

  /* Seafoam green for active bingo balls */
  --color-bingo-ball-active-bg: #ffe066;
  /*#6fffe9;*/

  /* Pale shell pink for borders */
  --color-bingo-ball-active-border: #ffd3c6;

  /* White text for contrast */
  --color-bingo-ball-active-color: #ffffff;

  /* Driftwood gray for inactive letters */
  --color-bingo-letter-gray: #b0aaa0;
  --color-bingo-letter-gray-hover: #d8d1c7;

  .bubble {
    display: none;
  }

  .bigBingoBallClass {
    background: transparent;
    background-image: url('../img/beach/ball.png');
    background-size: contain;
    /* Changed from 100% to contain */
    background-position: center;
    background-repeat: no-repeat;
    /* Prevent repeating */
    aspect-ratio: 1 / 1;
    /* Ensure perfect circular shape */
    box-sizing: border-box;
    /* Include border in width/height calculations */
    opacity: 1;
    border-color: transparent;
    border-radius: 50%;
    width: 225px;
    height: 225px;
    position: relative;
    margin: 0 auto;
  }

  #myVideo {
    opacity: 1;
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    /* Hardware acceleration for smoother playback */
    transform: translateZ(0);
    will-change: transform;
    /* Improve interpolation quality for smoother slow-motion */
    image-rendering: auto;
  }
}

.black-bg {
  --color-background-color: black;
}



.black-bg {
  --color-background-color: black;
}

@font-face {
  font-family: 'Caladea';
  src: url('../fonts/caladea-italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Arya';
  font-style: normal;
  font-weight: 700;
  src: local('Arya Bold'), local('Arya-Bold'),
    url('../fonts/arya-v3-latin-700.woff2') format('woff2'),
    url('../fonts/arya-v3-latin-700.woff') format('woff');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans Regular'), local('OpenSans-Regular'),
    url('../fonts/open-sans-v15-latin-regular.woff2') format('woff2'),
    url('../fonts/open-sans-v15-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: local('Open Sans Italic'), local('OpenSans-Italic'),
    url('../fonts/open-sans-v15-latin-italic.woff2') format('woff2'),
    url('../fonts/open-sans-v15-latin-italic.woff') format('woff');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: normal;
  src: local('Open Sans Bold'), local('OpenSans-Bold'),
    url('../fonts/open-sans-v15-latin-700.woff2') format('woff2'),
    url('../fonts/open-sans-v15-latin-700.woff') format('woff');
}

@font-face {
  font-family: 'Eraser Regular';
  src: url('../fonts/EraserRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
  height: 100%;
  margin: 0;
  -webkit-text-size-adjust: 100%;
}

* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

body {
  padding: 0;
  background: #000;

  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  font-family: "open sans";
  overflow: hidden;
  position: fixed;
}

.controlActions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -6px 0 0 28px;
  transform: translateY(12px);
  /* Visual padding above without layout shift */
}

.themeLauncher {
  position: relative;
  width: 120px;
  height: 40px;
}

/* Standardized Control Button Styles */
.control-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 3px 6px;
  font-family: arial, sans-serif !important;
  font-size: 13px !important;
  color: inherit !important;
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.3s ease;
  text-decoration: none !important;
  display: inline-block;

  /* Initial hidden state */
  opacity: 0;
  pointer-events: none;
}

/* Force override for anchor tags */
a.control-btn,
a.control-btn:link,
a.control-btn:visited,
a.control-btn:hover,
a.control-btn:active {
  color: inherit !important;
  text-decoration: none !important;
  -webkit-appearance: none;
}

/* Hover Visibility for all buttons when control area is hovered */
.controlActions:hover .control-btn {
  opacity: 1;
  pointer-events: auto;
}

/* Unified Hover Effect */
.control-btn:hover {
  background-color: var(--color-reset-hover-bg) !important;
  text-decoration: none !important;
}

/* Cleanup Legacy positioning if mostly inherited */
.themePickerLink {
  /* No longer strictly needed if button flows inline, but keeping relative logic if useful */
}

/* Ensure container flows correctly */
.themeLauncher {
  display: inline-block;
}



.themeAreaHint {
  position: absolute;
  top: -4px;
  left: -6px;
  width: 60px;
  height: 48px;
  cursor: pointer;
}


#area {
  flex-shrink: 0;
  background: var(--color-background-color);
  height: 720px;
  width: 1280px;
  font-size: 30px;
  position: relative;
  z-index: 2;
}

.notransition {
  transition: none !important;
}

.flexCenter {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#pickANumberSlide {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.game-fullscreen-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f4;
  position: relative;
}

.game-back-button {
  position: absolute;
  top: 20px;
  left: 20px;
}

.game-back-button button {
  background-color: var(--color-game-back-button);
  color: var(--color-game-back-button-color);
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 4px var(--color-game-container-shadow);
}

.game-back-button button:hover {
  background-color: var(--color-game-back-button-hover);
}

.game-container {
  background-color: var(--color-game-container-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px var(--color-game-container-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 40%;
  max-width: 600px;
  min-width: 300px;
  margin-top: 60px;
}

.game-input-box {
  width: 30%;
}

.game-input-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-game-input-box-border);
  border-radius: 5px;
  font-size: 16px;
}

.game-random-number {
  font-size: 24px;
  font-weight: bold;
}

.game-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: var(--color-game-back-button);
  color: var(--color-game-back-button-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.game-button:hover {
  background-color: var(--color-game-back-button-hover);
}

.game-winner {
  border-color: var(--color-game-winner-border);
  background-color: var(--color-game-winner-bg);
}

.game-loser {
  border-color: var(--color-game-loser-border);
  background-color: var(--color-gameloser-bg);
}

#onboardingSlide {
  display: none;
  height: 100%;
}

h2 {
  font-size: 36px;
  font-weight: 300;
  text-align: center;
  margin: 22px 0;
  grid-area: helpHeader;
}

#masterBoardSlide {
  display: none;
  height: 100%;
  grid-template-columns: 255px 20px 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr;
  grid-template-rows: 652px 1fr;
  grid-template-areas:
    "controlsCol  bColBarber bCol iColBarber iCol nColBarber nCol gColBarber gCol oColBarber oCol"
    "snowdrift snowdrift snowdrift snowdrift snowdrift snowdrift snowdrift snowdrift snowdrift snowdrift snowdrift";
  overflow-x: hidden;
  overflow-y: visible;
}

.snowdrift {
  grid-area: snowdrift;
  background: url('/themes/winter/img/snowdrift.png') repeat-x;
  background-size: cover;
  display: flex;
  flex-direction: row;
  z-index: 1;
  height: 100%;
}

.controlsCol {
  grid-area: controlsCol;
  width: 255px;
  display: flex;
  flex-direction: column;
}

.bCol {
  grid-area: bCol;
}

.iCol {
  grid-area: iCol;
}

.nCol {
  grid-area: nCol;
}

.gCol {
  grid-area: gCol;
}

.oCol {
  grid-area: oCol;
}

.bColBarber {
  grid-area: bColBarber;
}

.iColBarber {
  grid-area: iColBarber;
}

.nColBarber {
  grid-area: nColBarber;
}

.gColBarber {
  grid-area: gColBarber;
}

.oColBarber {
  grid-area: oColBarber;
}

.layer {
  position: absolute;
  width: 1280px;
  height: 720px;
  overflow: hidden;
  pointer-events: none;
}

#fullScreenToggleLayer {
  z-index: 1000;
  display: none;
  transition: opacity 0.25s linear;
}

#drawBallLayer {
  z-index: 2;
  display: none;
  transition: opacity 0.25s linear;
}

#drawBallDiv {
  position: absolute;
  top: 256px;
  left: 48px;
  pointer-events: auto;
  transition: 0.1s;
}

.fullScreenToggleBig {
  position: absolute;
  pointer-events: auto;
  right: 25px;
  top: 15px;
}

.fullScreenToggleSmall {
  position: absolute;
  pointer-events: auto;
  right: 15px;
  top: 5px;
  transform: scale(0.5);
}

#fullScreenButton,
#fullScreenButtonDown {
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
}

#fullScreenButton {
  background-image: url("../img/fullscreenUp.svg");
}

#fullScreenButtonDown {
  display: none;
  background-image: url("../img/fullscreenDown.svg");
}

#fullScreenButton:hover {
  background-image: url("../img/fullscreenUpHover.svg");
}

#fullScreenButtonDown:hover {
  background-image: url("../img/fullscreenDownHover.svg");
}

.bingoLetter {
  font-family: arya;
  font-weight: 700;
  color: var(--color-bingo-letter);
  filter: drop-shadow(2px 4px 6px var(--color-bingo-letter-drop-shadow-color));
  font-size: 110px;
  text-align: center;
  line-height: 0.8;
  left: 50%;
  transform: translateX(-50%);
  margin: 41px auto 13px auto;
  overflow: visible;
  z-index: 2;
  position: absolute;
}

.bingoLetterGray {
  color: var(--color-bingo-letter-gray);
}

.bingoLetterGray:hover {
  color: var(--color-bingo-letter-gray-hover);
}

.boardToggle {
  width: 115px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14.5px;
  margin: 26px auto 0 auto;
  cursor: pointer;
  border-radius: 12px 0 12px 0;
  transition: background-color 0.15s;
}

/* Legacy smallButton definition removed or merged above */
/* .smallButton { ... } */

#reset:hover {
  background-color: var(--color-reset-hover-bg);
}

#reset:active {
  background-color: var(--color-reset-active-bg);
}

/* Old opacity rules removed, now handled by .controlActions .smallButton */

#bigBingoLetter {
  font-size: 52px;
  font-weight: 700;
  text-align: center;
  width: 60px;
  margin: 0 auto;
  line-height: 1;
  margin-top: 12px;
  text-shadow: -1px -1px 0 var(--color-big-bingo-letter-shadow), 1px -1px 0 var(--color-big-bingo-letter-shadow), -1px 1px 0 var(--color-big-bingo-letter-shadow), 1px 1px 0 var(--color-big-bingo-letter-shadow);
}

#bigBingoNumber {
  font-size: 65px;
  font-weight: 700;
  text-align: center;
  margin: -20px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: font-size 0.1s;
  text-shadow: -1px -1px 0 var(--color-big-bingo-letter-shadow), 1px -1px 0 var(--color-big-bingo-letter-shadow), -1px 1px 0 var(--color-big-bingo-letter-shadow), 1px 1px 0 var(--color-big-bingo-letter-shadow);
}

.beach #bigBingoNumber {
  color: var(--color-bingo-ball-active-bg);
  filter: drop-shadow(2px 4px 6px black);
}

.beach #bigBingoLetter {
  color: var(--color-bingo-ball-active-bg);
  filter: drop-shadow(2px 4px 6px black);
}

#ballsDrawnRemaining {
  width: 193px;
  height: 44px;
  font-size: 25px;
  background: var(--color-balls-drawn-remaining-bg);
  border: 1.2px solid var(--color-balls-drawn-remaining-border);
  border-radius: 12px;
  margin: 9px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  z-index: 1000;
}

#ballsDrawn {
  display: none;
  align-items: center;
  justify-content: center;
}

#ballsRemaining {
  display: none;
  align-items: center;
  justify-content: center;
}

#bingoB,
#bingoI,
#bingoN,
#bingoG,
#bingoO {
  margin-top: -10px;
}

.bingoBalls {
  text-align: center;
  margin-top: 125px;
  transition: opacity 0.3s;
}

.bingoBallBall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 61px;
  height: 61px;
  background: var(--color-bingo-ball-bg);
  margin: 4px 10px;
  font-size: 38px;
  cursor: pointer;
  border-style: solid;
  border-width: 1px;
  border-color: var(--color-bingo-ball-border);
  color: var(--color-bingo-ball-color);
  opacity: 0.21;
}

.bingoBallBall:hover {
  opacity: 0.54;
}

.bingoBallBallActiveB,
.bingoBallBallActiveI,
.bingoBallBallActiveN,
.bingoBallBallActiveG,
.bingoBallBallActiveO {
  border-color: var(--color-bingo-ball-active-border);
  color: var(--color-bingo-ball-active-color);
  opacity: 1;
  font-weight: 700;
  background: var(--color-bingo-ball-active-bg);
}

.bingoBallBallActiveB:hover,
.bingoBallBallActiveI:hover,
.bingoBallBallActiveN:hover,
.bingoBallBallActiveG:hover,
.bingoBallBallActiveO:hover {
  opacity: 0.8;
}

#bingoStyleBall {
  border-radius: 12px;
  transition: background-color 0.15s;
  cursor: pointer;
}

#bingoStyleBall:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

#bingoStyleBall:hover .bingoBallBall {
  opacity: 1;
}

.chromeBingoLetterFix {
  transform: translateX(-50%) translateZ(0);
}

.winningPatterns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px var(--color-winning-patterns-box-shadow);
  max-width: 250px;
  margin: 10px auto;
}

.winningPattern {
  font-size: 25px;
  color: var(--color-winning-color-text);
  padding: 8px 10px;
  background-color: var(--color-winning-pattern-bg);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s, background-color 0.2s;
}

.strikethrough {
  background-color: var(--color-winning-patterns-strikethrough-bg);
  color: var(--color-winning-patterns-strikethrough);
}

.logoDiv {
  width: 90%;
  height: 201px;
  background: var(--color-logo-div);
  margin: 0 auto;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.bingoCard {
  display: flex;
  height: 180px;
  width: 180px;
  border: 1px solid var(--color-bingo-card-boarder);
  object-fit: contain;
}

.starbucks .bingoCard img {
  content: url('../img/starbucks/starcorn.png');
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bingoCard:hover {
  cursor: pointer;
  opacity: 0.75;
}

.winningPatternNames {
  width: 600px;
  height: 380px;
  font-size: 27px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
}

.winningPatternNames div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cardExplanation {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-style: italic;
}

.twoSections {
  width: 1000px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#background-wrap {
  bottom: 0;
  left: 0;
  position: fixed;
  pointer-events: none;
  right: 0;
  top: 0;
  z-index: 5;
}

#floating-canvas {
  bottom: 0;
  left: 0;
  position: fixed;
  pointer-events: none;
  right: 0;
  top: 0;
  z-index: 5;
}

.snow-container {
  pointer-events: none;
}

.snow {
  animation: fall ease-in infinite, sway ease-in-out infinite;
  color: white;
  position: absolute;
  pointer-events: none;
  z-index: 100;
  z-index: 4;
  display: none;
}

@keyframes fall {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    top: 100vh;
    opacity: 1;
  }
}

@keyframes sway {
  0% {
    margin-left: 0;
  }

  25% {
    margin-left: 50px;
  }

  50% {
    margin-left: -50px;
  }

  75% {
    margin-left: 50px;
  }

  100% {
    margin-left: 0;
  }
}

@keyframes barberpole {
  from {
    background-position: 0%;
  }

  to {
    background-position: 100%;
  }
}

@keyframes animateBubble {
  0% {
    margin-top: 1000px;
  }

  100% {
    margin-top: -500px;
  }
}

@keyframes sideWays {
  0% {
    margin-left: 0px;
  }

  100% {
    margin-left: 50px;
  }
}

.x1 {
  animation: animateBubble 15s linear infinite, sideWays 2s ease-in-out infinite alternate;

  left: -5%;
  top: 5%;
  transform: var(--x1-transform);
}

.x2 {
  animation: animateBubble 16s linear infinite, sideWays 4s ease-in-out infinite alternate;

  left: 5%;
  top: 80%;
  transform: var(--x2-transform);
}

.x3 {
  animation: animateBubble 18s linear infinite, sideWays 2s ease-in-out infinite alternate;

  left: 10%;
  top: 40%;
  transform: var(--x3-transform);
}

.x4 {
  animation: animateBubble 16s linear infinite, sideWays 3s ease-in-out infinite alternate;

  left: 20%;
  top: 0;
  transform: var(--x4-transform);
}

.x5 {
  animation: animateBubble 19s linear infinite, sideWays 4s ease-in-out infinite alternate;

  left: 30%;
  top: 50%;
  transform: var(--x5-transform);
}

.x6 {
  animation: animateBubble 15s linear infinite, sideWays 2s ease-in-out infinite alternate;

  left: 50%;
  top: 0;
  transform: var(--x6-transform);
}

.x7 {
  animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;

  left: 65%;
  top: 70%;
  transform: var(--x7-transform);
}

.x8 {
  animation: animateBubble 15s linear infinite, sideWays 3s ease-in-out infinite alternate;

  left: 80%;
  top: 10%;
  transform: var(--x8-transform);
}

.x9 {
  animation: animateBubble 19s linear infinite, sideWays 4s ease-in-out infinite alternate;

  left: 90%;
  top: 50%;
  transform: var(--x9-transform);
}

.x10 {
  animation: animateBubble 16s linear infinite, sideWays 2s ease-in-out infinite alternate;

  left: 80%;
  top: 80%;
  transform: var(--x10-transform);
}

.bubble {
  display: var(--bubble-display, block);
  /* Default: show bubbles */

  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;

  -webkit-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
  -moz-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);

  height: 200px;
  position: absolute;
  width: 200px;
}

.bubble:after {
  background: -moz-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  /* FF3.6+ */
  background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(255, 255, 255, 0.5)), color-stop(70%, rgba(255, 255, 255, 0)));
  /* Chrome,Safari4+ */
  background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  /* Chrome10+,Safari5.1+ */
  background: -o-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  /* Opera 12+ */
  background: -ms-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  /* IE10+ */
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80ffffff', endColorstr='#00ffffff', GradientType=1);
  /* IE6-9 fallback on horizontal gradient */

  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;

  -webkit-box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.3);
  -moz-box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.3);

  content: "";
  height: 180px;
  left: 10px;
  position: absolute;
  width: 180px;
}

.vday .heart {
  height: 200px;
  position: absolute;
  width: 200px;
}

.vday .heart:before,
.vday .heart:after {
  position: absolute;
  content: "";
  left: 18px;
  top: 0;
  width: 18px;
  height: 30px;
  background: #CC2022;
  -moz-border-radius: 20px 50% 0 0;
  border-radius: 30px 30px 0 0;
  transform: rotate(-45deg);
  -webkit-transform-origin: 0 100%;
  -ms-transform-origin: 0 100%;
  transform-origin: 0 100%;
}

.vday .heart:after {
  left: 0;
  transform: rotate(45deg);
  -webkit-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
}

/* Bubble display is now controlled via --bubble-display CSS variable in theme configs */

/* Theming Modals to match Theme Picker */
#historySlide {
  background: radial-gradient(circle at top, #1f1f1f, #0d0d0d) !important;
  color: #f2f2f2 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#historySlide h1 {
  color: #fff !important;
  font-family: 'Open Sans', sans-serif !important;
}

#historySlide button {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.2s ease;
}

#historySlide button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}

#historyList {
  background: transparent !important;
  border: none !important;
}

.history-item {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  backdrop-filter: blur(4px);
  color: #ddd !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
  margin-bottom: 10px !important;
}

.history-item strong {
  color: #ff9800 !important;
  /* Orange accent */
}

/* Modal Content Box */
#confirmModal>div {
  background: #1f1f1f !important;
  /* Fallback */
  background: radial-gradient(circle at top, #2a2a2a, #1a1a1a) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f2f2f2 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5) !important;
  border-radius: 16px !important;
}

#confirmModal h2 {
  color: #fff !important;
}

#confirmModal button {
  border-radius: 999px !important;
  font-weight: 600 !important;
}

/* Primary Action styles for modals */
#confirmModal button[onclick="confirmReset()"] {
  background: linear-gradient(135deg, #ff9800, #ff5722) !important;
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
}

#confirmModal button[onclick="cancelReset()"] {
  background: rgba(255, 255, 255, 0.1) !important;
}

#confirmModal button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}