﻿
.branding-nz {
    margin-top: -200px;
    max-width: 1000px;
    z-index: 1;
    position: relative;
}

    .branding-nz img {
        width: 100%
    }

@media only screen and (max-width:1024px) {
    .branding-nz {
        max-width: 470px;
        margin-top: -160px;
    }
}

.branding-nz-background {
    margin-top: -320px;
    max-width: 1000px;
    z-index: 0;
    position: relative;
}

    .branding-nz-background img {
        width: 100%
    }

@media only screen and (max-width:1024px) {
    .branding-nz-background {
        margin-top: -225px;
        max-width: 1000px;
        z-index: 0;
        position: relative;
    }
}

.signboard-nz {
    max-width: 350px;
    margin-top: -100px;
}

    .signboard-nz img {
        width: 100%
    }

@media only screen and (max-width:1024px) {
    .signboard-nz {
        max-width: 280px;
    }
}

@media only screen and (max-width:380px) {
    .signboard-nz {
        max-width: 460px;
        margin-top: -110px;
    }
}

body, html {
    /*    height: 100%;*/
    background-color: #1a1f23;
}

body {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    color: #fff;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    /*    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;*/
}

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
    }

.flexbkg {
/*    background-image: url(../../images/spinBoard/background.jpg);*/
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 1500px;
    width: 100%
}

@media only screen and (max-width:1024px) {
    .flexbkg {
        background-position: center 0px;
        background-size: 800px
    }
}

@media only screen and (max-width:380px) {
    .flexbkg {
        background-position: center -20px;
        background-size: 800px
    }
}

@media only screen and (max-width:360px) {
    .flexbkg {
        background-position: center -35px;
        background-size: 800px
    }
}

section {
    padding-top: 2rem;
    padding-bottom: 2rem
}

.cover-container {
    max-width: 1300px;
   /* background-image: url(../../images/spinBoard/stage.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 500px;*/
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important
}

@media only screen and (max-width:1024px) {
    .cover-container {
        max-width: 100%;
        background-position: center bottom;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background-size: 400px
    }
}
/* Keyframes for the up and down movement */
@keyframes moveUpDown1 {
    0% {
        top: 40%; /* Starting position */
    }

    50% {
        top: 42%; /* Move up */
    }

    100% {
        top: 40%; /* Move back to the original position */
    }
}

@keyframes moveUpDown2 {
    0% {
        top: 5%; /* Starting position */
    }

    50% {
        top: 12%; /* Move up */
    }

    100% {
        top: 10%; /* Move back to the original position */
    }
}

@keyframes moveUpDown3 {
    0% {
        top: 70%; /* Starting position */
    }

    50% {
        top: 72%; /* Move up */
    }

    100% {
        top: 70%; /* Move back to the original position */
    }
}

@keyframes sizeBigSmall {
    0%, 100% {
        transform: scale(1); /* original size */
    }

    50% {
        transform: scale(1.1); /* 10% bigger */
    }
}

.sec-header {
    padding: 0
}

.branding {
    margin-top: -320px;
    max-width: 450px
}
    .branding img {
        width: 100%
    }

@media only screen and (max-width:1024px) {
    .branding {
        max-width: 220px;
        margin-top: -210px;
    }
}

.signboard {
    max-width: 640px;
    margin-top: -100px;
}

    .signboard img {
        width: 100%
    }

@media only screen and (max-width:1024px) {
    .signboard {
        max-width: 460px;
    }
}

@media only screen and (max-width:380px) {
    .signboard {
        max-width: 460px;
        margin-top: -110px;
    }
}

.side {
    content: ""; /* Required */
    background-image: url(../../images/spinBoard/GameNeZa.png);
    background-repeat: no-repeat;
    background-size: contain; /* Optional, makes sure image fits */
    position: absolute;
    width: 500px;
    height: 500px;
    margin-top: -280px;
    left: -70%;
    top: -5%;
    pointer-events: none; /* Optional, lets clicks pass through */
    z-index: 10; /* Optional, make sure it appears above */
    animation: sizeBigSmall 2s infinite ease-in-out;
}

.side2 {
    content: ""; /* Required */
    background-image: url(../../images/spinBoard/GameBook.png);
    background-repeat: no-repeat;
    background-size: contain; /* Optional, makes sure image fits */
    position: absolute;
    width: 400px;
    height: 400px;
    margin-top: -280px;
    left: 110%;
    top: 2%;
    pointer-events: none; /* Optional, lets clicks pass through */
    z-index: 10; /* Optional, make sure it appears above */
    /*animation: moveUpDown2 2s infinite ease-in-out;*/
}

.wheelbkg {
    width: 680px;
    height: 680px;
    margin: 0 auto;
/*    background-image: url(../../images/spinBoard/imgwheelbkg.png);
    background-position: center center;
    background-repeat: no-repeat;*/
    position: relative;
    /*background-size: 100%;*/
    margin-top: -160px;
    margin-bottom: 0px;
}
    .wheelbkg::before {
        content: ""; /* Required */
        background-image: url(../../images/spinBoard/GameFuleft.png);
        background-repeat: no-repeat;
        background-size: contain; /* Optional, makes sure image fits */
        position: absolute;
        width: 550px;
        height: 550px;
        top: 20%;
        left: -90%;
        pointer-events: none; /* Optional, lets clicks pass through */
        z-index: 10; /* Optional, make sure it appears above */
        animation: moveUpDown1 2s infinite ease-in-out;
    }

    .wheelbkg::after {
        content: ""; /* Required */
        background-image: url(../../images/spinBoard/GameFURight.png);
        background-repeat: no-repeat;
        background-size: contain; /* Optional, makes sure image fits */
        position: absolute;
        width: 500px;
        height: 500px;
        top: 70%;
        left: 115%;
        pointer-events: none; /* Optional, lets clicks pass through */
        z-index: 10; /* Optional, make sure it appears above */
        animation: moveUpDown3 2s infinite ease-in-out;
        /*transform: rotate(45deg);*/
    }

@media only screen and (max-width:1024px) {
    .side {
        width: 180px;
        height: 180px;
        margin-top: -150px;
    }

    .side2 {
        content: ""; /* Required */
        background-image: url(../../images/spinBoard/GameBook.png);
        background-repeat: no-repeat;
        background-size: contain; /* Optional, makes sure image fits */
        position: absolute;
        width: 350px;
        height: 270px;
        margin-top: -235px;
        left: 110%;
        top: 2%;
        pointer-events: none; /* Optional, lets clicks pass through */
        z-index: 10; /* Optional, make sure it appears above */
        /*animation: moveUpDown2 2s infinite ease-in-out;*/
    }

    .wheelbkg {
        width: 350px;
        height: 410px;
        margin: 60px auto 0px auto;
        background-size: 440px;
        margin-top: -100px;
    }
        .wheelbkg::before {
            width: 200px;
            height: 200px;
        }

        .wheelbkg::after {
            width: 235px;
            height: 300px;
        }
}


#canvas {
    margin-top: 82px
}

@media only screen and (max-width:1024px) {
    #canvas {
        margin-top: 85px;
        width: 350px !important;
        height: 350px !important;
        position: absolute;
        left: 50%;
        margin-left: -175px;
        top: 0;
        zoom: 0.9
    }
}

.inner.cover {
    max-width: 1200px;
    margin: 0 auto;
    overflow:visible
}

@media only screen and (max-width:1024px) {
    .inner.cover {
        max-width: 100%;
        width: 100%;
        position: relative
    }
}

.cover .btn-lg {
    padding: 0.75rem 1.25rem;
    font-weight: 700
}

.wheelpointer {
    width: 42px;
    position: absolute;
    top: 60px;
    left: 50%;
    margin-left: -21px
}

    .wheelpointer img {
        width: 100%
    }

@media only screen and (max-width:1024px) {
    .wheelpointer {
        width: 30px;
        top: 60px;
        margin-left: -15px;
        z-index: 90
    }
}

.spinbrand {
    width: 90px;
    height: 90px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -45px;
    margin-top: -45px
}

    .spinbrand img {
        width: 100%
    }

@media only screen and (max-width:1024px) {
    .spinbrand {
        width: 70px;
        height: 70px;
        margin-left: -35px;
        margin-top: -35px;
        z-index: 90
    }
}

#spinbutton {
    width: 438px;
    height: 196px;
    position: absolute;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100%;
    left: 50%;
    margin-left: -219px;
    bottom: -120px
}

@media only screen and (max-width:1024px) {
    #spinbutton {
        width: 400px;
        height: 158px;
        margin-left: -200px;
        bottom: -80px;
    }
}
#spinbutton.active {
    background-image: url(../../images/spinBoard/spin-active.png)
}

#spinbutton.disabled {
    background-image: url(../../images/spinBoard/spin-active.png)
}

#warning-message {
    display: none;
    min-height: 100%;
    min-height: 100vh;
    width: 100%;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    background: #8c37da
}

    #warning-message p {
        text-align: center
    }

.customsg {
    width: 100%;
    display: block;
    padding-left: 15%;
    padding-right: 15%
}

[data-icon]:before {
    font-size: 2.5rem
}

.alert {
    padding: 0.75rem 1.25rem 0.75rem 0.25rem
}

.customalert {
    background: #ffe500;
    border: 0px solid #333;
    color: #333;
    font-weight: 600;
    -webkit-box-shadow: 0 14px 28px rgba(0,0,0,0.25),0 10px 10px rgba(0,0,0,0.22);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25),0 10px 10px rgba(0,0,0,0.22)
}

.holder {
    position: relative
}

.clmbtn {
    right: auto !important;
    top: auto !important;
    position: relative !important;
    background-color: #df2347;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 4px solid #a11527;
    color: #fff;
    padding: 7px 14px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 6px;
    text-transform: uppercase
}

.modal-dialog {
    min-height: calc(100vh - 60px);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: auto
}

@media (min-width:576px) {
    .modal-dialog {
        max-width: 420px
    }
}

@media (max-width:768px) {
    .modal-dialog {
        min-height: calc(100vh - 20px)
    }
}

.modal-body {
    color: #fff;
    padding-top: 10px;
    padding-bottom: 0
}

    .modal-body p {
        font-size: 18px;
        margin-bottom: 5px
    }

    .modal-body img {
        width: unset;
        max-width: 100%;
        height: auto;
    }

    .modal-body .lead {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px
    }

.modal-backdrop.show {
    opacity: 0.76
}

.modal-header {
    border-bottom: 0;
    text-align: center;
    padding: 5px 16px;
    position: relative
}

    .modal-header .imgreward {
        width: 140px;
        height: 140px;
        position: absolute;
        left: 50%;
        top: -140px;
        margin-left: -70px
    }

.modal-content {
    background-color: #1a1f23;
    border: 2px solid #1a1f23;
    border-radius: 8px
}

.modal-footer {
    border-top: 0
}

    .modal-footer .btn-primary, .modal-footer .btn-primary:active, .modal-footer .btn-primary:focus {
        color: #000 !important;
        font-weight: 700;
        font-size: 18px;
        background-color: #ffdd02 !important;
        border-color: #ffdd02 !important;
        -webkit-box-shadow: none;
        box-shadow: none
    }

        .modal-footer .btn-primary:hover {
            background-color: #ceb303;
            border-color: #ceb303
        }

.form-group {
    margin-bottom: 0
}

.close {
    color: #fff;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5
}

    .close:focus, .close:hover {
        color: #fff;
        opacity: 1
    }

.modelone {
    position: absolute;
    left: -165px;
    top: 110px;
    width: 200px
}

    .modelone img {
        width: 100%
    }

@media only screen and (max-width:1024px) {
    .modelone {
        zoom: 0.6;
        z-index: 90;
        left: -30px;
        top: 210px
    }
}

.modeltwo {
    position: absolute;
    right: -110px;
    top: 70px;
    width: 120px
}

    .modeltwo img {
        width: 100%
    }

@media only screen and (max-width:1024px) {
    .modeltwo {
        zoom: 0.6;
        z-index: 90;
        right: 30px;
        top: 180px
    }
}

.tooltip-inner {
    color: #000;
    background-color: #ffdd02
}

.bs-tooltip-auto[x-placement^=top] .arrow:before, .bs-tooltip-top .arrow:before {
    border-top-color: #ffdd02
}

.howtoplay {
    padding-top: 0;
}

    .howtoplay .infoframe {
        padding: 10px 1rem;
        border: 2px solid #ffe46f;
        border-radius: 8px;
        background: rgb(6, 19, 18);
        background: -webkit-gradient(linear, left bottom, left top, from(rgb(6, 19, 18)), color-stop(50%, rgb(14, 39, 35)), to(rgba(14, 39, 35, 0.76)));
        background: linear-gradient(0deg, rgb(6, 19, 18) 0%, rgb(14, 39, 35) 50%, rgba(14, 39, 35, 0.76) 100%);
    }

    .howtoplay h2 {
        font-size: 42px;
        font-weight: 700;
    }

    .howtoplay h4 {
        color: #ffe46f;
        font-weight: 700;
    }

    .howtoplay img {
        max-width: 120px;
    }

    .howtoplay p {
        opacity: 0.85;
        margin-top: 10px;
    }


@media only screen and (min-width: 1200px) {
    .howtoplay .infoframe {
        margin: 0 1rem;
    }
}

@media only screen and (max-width: 576px) {
    .howtoplay {
        padding-top: 2rem;
    }

        .howtoplay .infoframe {
            margin-bottom: 1rem;
            padding: 0;
        }

        .howtoplay h2 {
            font-size: 36px;
        }

        .howtoplay img {
            max-width: 100px;
            margin-top: 20px;
        }
}

.livetrans{
    margin-left:40px;
    margin-top: -70px;
}

.livetrans .scrollframe {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    overflow-x: auto;
    white-space: nowrap
}

.livetrans .table-container {
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    overflow: auto;
    width: 100%;
    max-width: 500px
}

    .livetrans .table-container table {
        margin-bottom: 0
    }

    .livetrans .table-container td, .livetrans .table-container th {
        text-align: left;
        font-size:16px;
    }

    .livetrans .table-container thead {
        background-color: #ffe500
    }

        .livetrans .table-container thead th {
            color: #000;
            background-color: #ffe500
        }

    .livetrans .table-container tbody td, .livetrans .table-container tbody th {
        background-color: #0e0e0e;
        font-size: 16px;
        border-color: #1e1e1e
    }

    .livetrans .table-container tbody td {
        color: #ffe500;
        font-weight: bold
    }

/*@media only screen and (max-width:1024px) {
    .livetrans .table-container {
        margin-right: 0;
        margin-left: 0 !important;
        min-width: 250px
    }
}*/

.livetrans .table-container + .table-container {
    margin-left: 10px
}

@media only screen and (max-width:1024px) {
    .livetrans .extended {
        min-width: 300px
    }
}

@media only screen and (min-width:768px) {
    .livetrans {
        margin-bottom: 20px
    }
}

.footer {
    padding-top: 5rem
}

    .footer .socials {
        /*display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;*/
        max-width: 500px;
        margin-bottom: 24px;
    }

        .footer .socials a {
            opacity: 0.5
        }

            .footer .socials a img {
                width: 42px
            }

    .footer .copyrights {
        opacity: 0.4;
        font-size: 12px
    }

@media only screen and (max-width:767px) {
    .footer {
        padding-top: 3rem
    }

        .footer .socials {
            padding-left: 1rem;
            padding-right: 1rem;
            max-width: 340px
        }

            .footer .socials a img {
                width: 42px
            }
}

.text-message {
    margin: 0 auto 0px auto;
    text-align: center;
    color: #ffdd02;
    font-size: 14px;
    padding-top: 220px
}

    .text-message h1 {
        font-size: 24px;
        text-transform: uppercase;
        width: 300px;
        margin: 0 auto
    }

.credit {
    position: absolute;
    left: 10px;
    top: 10px;
    color: #333;
    background: #ffdd02;
    width: 200px;
    padding: 10px 0;
    -webkit-box-shadow: 0 9px 18px rgba(0,0,0,0.3),0 5px 6px rgba(0,0,0,0.22);
    -ms-box-shadow: 0 9px 18px rgba(0,0,0,0.3),0 5px 6px rgba(0,0,0,0.22);
    -o-box-shadow: 0 9px 18px rgba(0,0,0,0.3),0 5px 6px rgba(0,0,0,0.22);
    box-shadow: 0 9px 18px rgba(0,0,0,0.3),0 5px 6px rgba(0,0,0,0.22);
    border-radius: 4px;
    text-transform: uppercase
}

#spinCredit {
    font-weight: bold
}

#warning-message {
    display: none
}

.wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 101;
}

    .wrapper .reward-container {
        position: absolute;
        display: flex;
        flex-direction: column;
        max-width: 350px;
    }

    .wrapper .closebtn {
        position: absolute;
        top: 22%;
        right: 35%;
        display: inline-block;
    }

    .wrapper .reward-container .imgreward, .imgclaim {
        margin-top: 20px;
        margin-bottom: 20px;
        transform: translate(-50%, -50%);
        max-width: 100%;
        max-height: 100%;
    }

    .wrapper .reward-container .imgclaim {
        max-width: 100%;
        max-height: 100%;
        zoom: 0.8
    }

    .wrapper .reward-container h2 {
        color: #ffe46f
    }


#closeprize {
    position: absolute;
    top: 15%;
    right: 25%;
    width: 35px;
    height: 35px;
    border: 2px solid white;
    border-radius: 5px;
    background-image: url(../../images/spinBoard/close-w.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100%;
}

@media only screen and (max-width:1024px) {
    #prize{
        zoom: 0.7
    }

    #closeprize {
        position: absolute;
        top: 5%;
        right: 20px;
        width: 35px;
        height: 35px;
        border: 2px solid white;
        border-radius: 5px;
        background-image: url(../../images/spinBoard/close-w.png);
        background-position: center center;
        background-repeat: no-repeat;
        background-size: 100%;
    }
}

.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0, 0.8);
    z-index: 100;
}

.hide {
    display: none;
}

.error-message, .error-message2 {
    color: #e94f58;
}

.prizenote {
    color: #e94f58;
    font-size: 20px;
}

.token-text {
    color: #ffe500;
    font-size: 2em;
    font-weight:bold;
    margin-top: 200px;
}
@media only screen and (max-width:1024px) {
    .token-text {
        font-size : 25px;
        margin-top: 15px;
    }
}

.egg-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    transform: var(--transform-base, none) rotate(0deg);
}

@media only screen and (max-width:1024px) {
    .egg-container {
        position: relative;
        width: 120px;
        height: 120px;
    }
}

.egg-intact, .egg-smashed {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image scales properly */
/*    object-position: bottom;*/
    transition: opacity 0.5s ease-in-out;
    user-select: none; /* Prevent text/image selection */
    pointer-events: none; /* Prevent interaction like drag */
    -webkit-user-drag: none; /* Disable dragging in Safari */
    transform: scale(1);
}

.egg-smashed {
    opacity: 0;
    transform: scale(1.2);
}

/* Custom Hammer Cursor */
.hammer-cursor {
    z-index: 300;
    position: absolute;
    width: 50px; /* Adjust size */
    height: 50px;
    background-image: url('/images/spinBoard/hammer.png'); /* Hammer Image */
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; /* Allows clicking through the hammer */
    animation: hammer-hit 0.3s infinite alternate; /* Infinite hitting animation */
    display: none; /* Initially hidden */
}

/* Hammer hitting animation */
@keyframes hammer-hit {
    0% {
        transform: rotate(-20deg) translateY(0);
    }

    100% {
        transform: rotate(10deg) translateY(5px);
    }
}

.egg-view {
    display: flex;
    justify-content: center;
    align-items: center;
/*    gap: 10px;  Space between eggs */
}

.egg-container p {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    margin: 0;
    color: #ffffff; /* Pure white text */
    font-size: 1em;
    font-weight: bold;
    text-shadow: 1px 1px 0 #d4af37, /* gold bottom-left shadow (3D) */
    2px 2px 0 #b8860b, /* deeper gold for more depth */
    0 0 5px #ffd700, /* soft glow */
    0 0 10px #ffcc00, /* brighter outer glow */
    0 0 20px #ffaa00; /* intense gold glow */
}

.congratz-text {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
    margin: 0;
    color: #ffffff; /* Pure white text */
    font-size: clamp(32px, 8vw, 60px);
    font-weight: bold;
}

@media only screen and (max-width:1024px) {
    .congratz-text {

    }
}

.tnc-title {
    margin: 20px 0px;
    justify-content: center;
    font-size: 30px;
}

.tnc-container {
    margin-top: 5px;
    /*border-width: 1px;
    border-style:solid;*/
    height: 300px;
    overflow: auto;
    padding: 15px;
    display: flex;
    justify-content: center; /* horizontal centering */
    text-align: center;
}

.tnc-content {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px !important;
    line-height: 1.6;
    letter-spacing: 0.3px;
    color: white; /* dark grey for readability */
    text-align: justify; /* optional: aligns text for a more formal look */
}

.tnc-footer{
    justify-content:center
}

.tnc-default-btn{
    font-weight:700;
}

@media (max-width:576px) {
    .tnc-title {
        font-size: 24px;
    }

    .tnc-content {
        font-size: 14px !important;
    }
}

.shake {
    animation: shake 2s ease-in-out;
}

@keyframes shake {
    0% {
        transform: var(--transform-base) rotate(0deg);
    }

    20% {
        transform: var(--transform-base) rotate(-10deg);
    }

    40% {
        transform: var(--transform-base) rotate(10deg);
    }

    60% {
        transform: var(--transform-base) rotate(-6deg);
    }

    80% {
        transform: var(--transform-base) rotate(6deg);
    }

    100% {
        transform: var(--transform-base) rotate(0deg);
    }
}

.lottery-grid {
    display: grid;
    grid-template-columns: repeat(8, 80px); /* 8 columns */
    grid-template-rows: repeat(4, 80px); /* 4 rows */
    gap: 70px; /* optional: adjust spacing between items */
    margin-top: 120px;
    margin-left: -275px;
}

.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
    position: relative;
    color: black;
    width: 250px;
    height: 250px;
}

.highlight {
}

.grid-item::before {
    filter: brightness(1);
    transition: filter 0.2s ease;
}

.lottery-grid.spinning .grid-item::before {
    filter: brightness(0.4);
}

.lottery-grid.spinning .grid-item.highlight::before {
    filter: brightness(1); /* only highlighted is bright */
}

@keyframes flash {
    0%, 100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(0.8);
    }
}

.grid-item.flash::before {
    animation: flash 0.8s ease-in-out infinite;
}

.draw-button {
    width: 250px; /* or auto */
    height: 250px;
    background-image: url('../../images/spinBoard/GameStart.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent; /* <-- this is key */
    border: none;
    outline: none;
    box-shadow: none;
    margin-left: 70px;
    margin-top: -15px;
    z-index: 10;
    position: relative;
}

    .draw-button:active {
        transform: scale(0.95);
    }

    .draw-button.disabled {
        pointer-events: none;
        opacity: 0.5;
    }


.result-image {
    display: block;
    margin-left: -130px;
    margin-top: -280px;
}

.image-container {
    width:800px;
    position: relative;
    display: inline-block;
}

.overlay-text {
    position: absolute;
    top: -40%; /* center vertically */
    left: 41%; /* center horizontally */
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 36px;
    text-shadow: 1px 1px 3px black;
    pointer-events: none;
}

#icon-grid-overlay {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    grid-template-rows: repeat(5, 1fr); /* 5 rows */
    gap: 0px;
    padding: 20px; /* adjust as needed */
    z-index: 10;
    pointer-events: none; /* let clicks go through to background if needed */
}

    #icon-grid-overlay img {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }

.icon-item {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* optional */
}

.icon-title {
    width: 45%;
    font-size: 12px;
    font-weight:bold;
    color: white;
    text-align: left;
    padding-left: 6px;
    word-break: break-word;
}

.view-history-link {
    position: absolute;
    top: -25px;
    right: 10px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    z-index: 20; /* above background & grid */
    /*background-color: rgba(255, 255, 255, 0.8);*/
    padding: 5px 10px;
    border-radius: 6px;
}

.icon-count {
    font-size: 12px;
    color: #ffd700; /* e.g., gold for count */
    white-space: nowrap;
    padding-left: 6px;
}

.icon-item.highlight {
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}

.icon-item.dimmed {
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.3s ease;
}

@media only screen and (max-width:1024px) {
    .lottery-grid {
        display: grid;
        grid-template-columns: repeat(8, 80px); /* 8 columns */
        grid-template-rows: repeat(4, 80px); /* 4 rows */
        gap: 10px; /* optional: adjust spacing between items */
        margin-top: -40px;
        margin-left: -215px;
    }

    .grid-item {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f2f2f2;
        position: relative;
        color: black;
        width: 150px;
        height: 150px;
    }

    .result-image {
        display: block;
        width:330px;
        height:250px;
        margin-left: -380px;
        margin-top: -150px;
    }

    .draw-button {
        width: 170px; /* or auto */
        height: 200px;
        background-image: url('../../images/spinBoard/GameStart.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: transparent; /* <-- this is key */
        border: none;
        outline: none;
        box-shadow: none;
        margin-left: 35px;
        margin-top: -40px;
        z-index: 10;
        position: relative;
    }

    .livetrans {
        margin-left: 0px;
        margin-top: -50px;
    }

    #liveTransContainer.container {
        max-width:630px;
    }

    #icon-grid-overlay {
        position: absolute;
        top: 0px;
        left: 15px;
        width: 100%;
        height: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 columns */
        grid-template-rows: repeat(5, 1fr); /* 5 rows */
        gap: 0px;
        padding: 0px; /* adjust as needed */
        z-index: 10;
        pointer-events: none; /* let clicks go through to background if needed */
    }

        #icon-grid-overlay img {
            width: 50px;
            height: 50px;
            object-fit: contain;
        }

    .icon-title {
        width: 45%;
        font-size: 8px;
        font-weight: bold;
        color: white;
        text-align: left;
        padding-left: 6px;
        word-break: break-word;
    }

    .howtoplay h2 {
        font-size: 30px;
        font-weight: 700;
    }

    .howtoplay img {
        max-width: 100px;
    }

    .howtoplay h4 {
        color: #ffe46f;
        font-weight: 700;
        font-size:1.0rem;
    }

    .overlay-text {
        position: absolute;
        top: -35%; /* center vertically */
        left: 27%; /* center horizontally */
        transform: translate(-50%, -50%);
        color: white;
        font-weight: bold;
        font-size: 20px;
        text-shadow: 1px 1px 3px black;
        pointer-events: none;
    }
}