@media only screen and (max-width: 768px) {
    div#wheel-wrapper {
        width: 100% !important;
        display: block !important; /* override inline style */
    }
    /* Container adjustments */
    .cardDanceContainer {
        margin-right: 0px !important;
        /* padding-top: 40px; */
    }
    .card {
      width: 100px !important;
      height: 70px !important;
      display: flex !important;
    }

      /* Adjust spin button below cards */
      .spinButton .spinBtn {
        width: 70% !important;
        padding: 6px 10px !important;
        font-size: 15px !important;
      }
    .wheel-popup-details {
        position: absolute !important;
        width: 68% !important;
        top: 115% !important;
        right: 18% !important;
        text-align: center;
    }
}
.prize-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  text-align: center;
  backdrop-filter: blur(3px);
}

.prize-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.prize-content {
  position: relative;
  background: #009fc2;
  color: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: popupFade 0.4s ease;
  z-index: 100000;
  width: 415px;
}

.prize-content h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.gift {
  background: linear-gradient(145deg, #74b9ff, #0984e3);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  color: #fff;
}

.gift-title {
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
}

.gift-result {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

button.close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

@keyframes popupFade {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ww-logo img {
    display: inline-block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

 #woo_wheel_icon{
    z-index:2222;
}
 #woo_wheel_icon{
    width: auto;
    display: inline-flex;
}
 #woo_wheel_icon{
    position:fixed;
    bottom:20px;
    right:20px;
    height:auto;
}
 #woo_wheel_icon .spin_icon_img img{
    width:100%;
    float:right;
    border-radius:50%;
    box-shadow:3px 5px 20px -1px rgba(0,0,0,0.3);
    -moz-box-shadow:3px 5px 20px -1px rgba(0,0,0,0.3);
    -webkit-box-shadow:3px 5px 20px -1px rgba(0,0,0,0.3);

    -webkit-animation:spin 1s linear infinite;
    -moz-animation:spin 1s linear infinite;
    animation:spin 1s linear infinite;
    -webkit-animation-iteration-count: 6; /* Safari 4.0 - 8.0 */
    animation-iteration-count: 6;
}

@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }

 #woo_wheel_icon .privy-floating-text{
    position:relative;
    vertical-align:bottom;
    font-size:16px;
    font-weight:500;
    color:#313437;
    overflow:hidden;
    max-width:100%;
    display:inline-block;
}
 #woo_wheel_icon .spin_icon_text{
    float:left;
    display:inline-block;
    position:relative;
    bottom:0;
    background:white;
    text-align:center;
    line-height:1.7em;
    max-width:100%;
    border:1px solid rgba(0,0,0,0.18);
    bottom:10px;
    padding:14px 40px 14px 20px;
    border-radius:6px;
    box-shadow:-2px 5px 10px -2px rgba(0,0,0,0.16);
    -moz-box-shadow:-2px 5px 10px -2px rgba(0,0,0,0.16);
    -webkit-box-shadow:-2px 5px 10px -2px rgba(0,0,0,0.16);
    z-index: -1;
}
 .spin_icon_text{
    margin-top:22px;
}
 #woo_wheel_icon .spin_icon_text:after{
    content:'';
    position:absolute;
    bottom:12px;
    border-top:10px transparent solid;
    border-bottom:10px transparent solid;
    right:-10px;
    border-right:none;
    border-left:10px white solid;
}
 #woo_wheel_icon .spin_icon_text:before{
    right:-11px;
    border-right:none;
    border-left:11px rgba(0,0,0,0.18) solid;
    content:'';
    position:absolute;
    bottom:11px;
    border-top:11px transparent solid;
    border-bottom:11px transparent solid;
}
 #woo_wheel_icon{
    cursor:pointer;
}

.card-face {
    text-align: center;
}
.cardDanceContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
}

/* Base Grid */
.cards {
  display: grid;
  gap: 30px;
  margin-bottom: 25px;
  justify-content: center;
}

/* === 3 Cards === */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;   /* centers each card horizontally */
  align-items: center;     /* centers all cards vertically */
  min-height: 250px;       /* adjust height to control how “middle” they appear */
  gap: 20px;               /* spacing between cards */
}
/* === 4 Cards (2x2) === */
.cards-4 {
  grid-template-columns: repeat(2, 1fr);
  gap: 60px; 
}

.cards-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

/* Positioning the cards manually in diamond shape */
.cards-5 .card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.cards-5 .card:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

.cards-5 .card:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.cards-5 .card:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
}

.cards-5 .card:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
}
/* === 6 Cards (2 rows × 3 cols) === */
.cards-6 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-7 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

/* Top row */
.cards-7 .card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.cards-7 .card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.cards-7 .card:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

/* Middle row (center card) */
.cards-7 .card:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

/* Bottom row */
.cards-7 .card:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
}
.cards-7 .card:nth-child(6) {
  grid-column: 2;
  grid-row: 3;
}
.cards-7 .card:nth-child(7) {
  grid-column: 3;
  grid-row: 3;
}

/* === 8 Cards (diamond-like) === */
.cards-8 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

/* Row 1 */
.cards-8 .card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.cards-8 .card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.cards-8 .card:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

/* Row 2 */
.cards-8 .card:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
}
.cards-8 .card:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

/* Row 3 */
.cards-8 .card:nth-child(6) {
  grid-column: 1;
  grid-row: 3;
}
.cards-8 .card:nth-child(7) {
  grid-column: 2;
  grid-row: 3;
}
.cards-8 .card:nth-child(8) {
  grid-column: 3;
  grid-row: 3;
}

/* === 9 Cards (3x3) === */
.cards-9 {
  grid-template-columns: repeat(3, 1fr);
}

/* Card Style */
.card {
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg, #fff);
  color: var(--card-color, #000);
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}

.card.highlight {
  box-shadow: 0 0 20px 8px rgba(33, 150, 243, 0.7);
  z-index: 10;
  transform: scale(1.05);
}

.card img {
  max-width: 60%;
  max-height: 60%;
  display: block;
}

/* Animation */
@keyframes bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-15px) rotate(5deg); }
  60%  { transform: translateY(5px) rotate(-5deg); }
  100% { transform: translateY(0); }
}

#snowflakeContainer {
    position: absolute;
    left: 0px;
    top: 0px;
    display:none;
    z-index: 999999999;
}
.snowflake {
    padding-left: 15px;
    font-family: Cambria, Georgia, serif;
    font-size: 14px;
    line-height: 24px;
    position: fixed;
    color: #FFFFFF;
    user-select: none;
    z-index: 1000;
}
.snowflake:hover {
    cursor: default;
}
p.snowflake {
    font-family: "Franklin Gothic Medium", "Arial Narrow", sans-serif;
    font-size: 24px;
    color: #CCC;
}
.ww-wrapper {
    position: relative;
    z-index: 11;
}

/* Spin button section below grid */
.wheel-popup-details {
    position: absolute;
    width: 48%;
    top: 113%;
    right: 25%;
}

.wheel-popup-details .spinButton .spinBtn {
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #2196f3;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.wheel-popup-details .spinButton .spinBtn:hover {
  background: #1976d2;
}

#wheel-wrapper {
    position: fixed;
    z-index: 999999;
    width: 50%;
    height: 100%;
    top: 0%;
    box-shadow: 0px 0px 5px #CCC;
    right: -60%;
}

.spinButton {
    height: 60px;
    margin: 10px 0px 0px 0px;
}

.wheel-popup-details div.ww-explainer {
    color: white;
    text-align: left;
    font-family: 'Hind Madurai', sans-serif;
}

.wheel-popup-details .ww-disclaimer {
    font-family: 'Hind Madurai', sans-serif;
    color: white;
    text-align: left;
}

button.spinBtn {
    width: 100%;
    background-color: #056478;
    border-color: #056478 !important;
    color: white;
    border-radius: 5px;
    height: 60px;
}
button.spinBtn:hover {

    color:black !important;
    background-color: #eeeeee;
    border-color: #eeeeee !important;
}

.ww-close-popup {
    color: white;
    font-family: 'Encode Sans Expanded', sans-serif;
    position: absolute;
    right: 2%;
    top: 2%;
    font-size: 25px;
    font-weight: 100;
    cursor: pointer;
    z-index: 9;
}

.privacy-policy-page {
    position: absolute;
    bottom: 1%;
    right: 2%;
    color: white;
    font-family: 'Encode Sans Expanded', sans-serif;
    cursor: pointer;
}

.privacy-policy-page > a {
    text-decoration: none;
    color: #ffffff;
}
.spin_icon_img {
    max-width: 80px !important;
    max-height: 80px !important;
}
.toast {
    left: 12% !important;
    transform: none !important;
    width: 90%;
    text-align: center;
    display:none;
    border: solid 2px #00000021;
    transform: translate(0%, -15%) !important;
}

.toast p {
    font-family: 'Hind Madurai', sans-serif;
}

.toast .ww-toast-title {
    font-weight: bold;
    line-height: 1.5;
}

.toast .ww-toast-text {
    font-weight: 100;
    font-size: 18px;
    line-height: 1.5;
}

.ww-toast-value {
    background-color: black;
    opacity: 0.5;
}
