﻿@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-100px) translateX(50px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

div#code-input-modal .modal-content {
    background: transparent;
}

div#code-input-modal .code-input-section {
    background: #fff;
    padding: 30px 20px;
}

h2.prizeLevel {
    font-size: 20px;
}

div#code-input-modal span.close-modal {
    position: absolute;
    top: 93%;
    right: 0;
    border-radius: 50% !important;
    background: #25f074;
    color: #fff;
}

.flake {
    z-index: 0;
    overflow: hidden;
    position: absolute;
    pointer-events: none;
}

.flake {
    width: 70px;
    height: auto;
    z-index: 2;
}

/* Animation cho c谩c flake */
.flake:nth-child(1) {
    animation: float1 5s linear infinite;
    left: 10%;
}

.flake:nth-child(2) {
    animation: float2 7s linear infinite;
    left: 25%;
}

.flake:nth-child(3) {
    animation: float3 6s linear infinite;
    left: 40%;
}

.flake:nth-child(4) {
    animation: float4 8s linear infinite;
    left: 15%;
}

.flake:nth-child(5) {
    animation: float5 9s linear infinite;
    left: 70%;
}

.flake:nth-child(6) {
    animation: float6 7s linear infinite;
    left: 85%;
}

.flake:nth-child(7) {
    animation: float7 6s linear infinite;
    left: 15%;
}

.flake:nth-child(8) {
    animation: float8 8s linear infinite;
    left: 60%;

}

/* Keyframes cho animation */
@keyframes float1 {
    0% {
        top: 100px;
        transform: rotate(0deg);
    }

    100% {
        top: 100vh;
        transform: rotate(360deg);
    }
}

@keyframes float2 {
    0% {
        top: 100px;
        transform: rotate(0deg);
    }

    100% {
        top: 100vh;
        transform: rotate(-360deg);
    }
}

@keyframes float3 {
    0% {
        top: 100px;
        transform: rotate(0deg) scale(0.8);
    }

    100% {
        top: 100vh;
        transform: rotate(360deg) scale(0.8);
    }
}

@keyframes float4 {
    0% {
        top: 100px;
        transform: rotate(0deg) scale(1.2);
    }

    100% {
        top: 100vh;
        transform: rotate(-360deg) scale(1.2);
    }
}

@keyframes float5 {
    0% {
        top: 100px;
        transform: rotate(0deg);
    }

    100% {
        top: 100vh;
        transform: rotate(360deg);
    }
}

@keyframes float6 {
    0% {
        top: 100px;
        transform: rotate(0deg) scale(0.9);
    }

    100% {
        top: 100vh;
        transform: rotate(-360deg) scale(0.9);
    }
}

@keyframes float7 {
    0% {
        top: 100px;
        transform: rotate(0deg) scale(1.1);
    }

    100% {
        top: 100vh;
        transform: rotate(360deg) scale(1.1);
    }
}

@keyframes float8 {
    0% {
        top: 100px;
        transform: rotate(0deg);
    }

    100% {
        top: 100vh;
        transform: rotate(-360deg);
    }
}

/*  */
.otherstuff {
    position: absolute;
    bottom: -2px;
    left: 10px;
    width: 180px;
    line-height: 50%;
    height: 30px;
    color: #444;
    font-size: 20px;
    text-decoration: none;
    opacity: .25;
}

img.slot-machine-bg {
    position: relative;
}

.slot-machine {

    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84%;
    padding: 10px;
}

.otherstuff:hover {
    color: #fff;
    opacity: 1;
    transition: color .2s linear, opacity .2s linear;
}


.lucky-draw-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;

}

.lucky-draw-header-icon {
    animation: daxiao 3s linear infinite;
}

@keyframes daxiao {
    0% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    25% {
        -o-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

    50% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    75% {
        -o-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

    100% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.guolv {

    z-index: 999;
    /* background-image: url('https://pqtic.com/wp-content/uploads/2025/04/xingguang.gif');
   
    display: block;
    mix-blend-mode: screen;
    -webkit-mix-blend-mode: screen;
    -moz-mix-blend-mode: screen;
    -ms-mix-blend-mode: screen;
    -o-mix-blend-mode: screen; */
}

.lucky-draw-header-icon {
    position: absolute;
    left: 20%;
    top: 10%;
}

.lucky-draw-container-wrapper {
    /* background-image: url('/wp-content/uploads/2025/04/BG-1.jpg'); */
    /* background-image: url('/wp-content/uploads/2025/09/BACKGROUND.jpg'); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-top: 40px;
    padding-bottom: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    z-index: 9;
}

img.head-img {
    position: absolute;
    top: -4%;
    left: 50%;
    width: 70%;
    transform: translate(-50%, -50%);
    z-index: 9;
}

.sub-bg {
    height: 100%;
    mix-blend-mode: color-dodge;
    position: absolute;

    width: 100%;
    display: block;
}

.lucky-draw-container-wrapper::before {
    content: "";
    background-image: url('/wp-content/uploads/2019/12/FLYING-GIFT-BOX.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    animation: floatStar 3s ease-in-out infinite;

}

/* Keyframes hi峄噓 峄﹏g */
@keyframes floatStar {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-50px);
    }

    100% {
        transform: translateY(0);
    }
}

/* li.prize-item-preview:nth-child(3) {
    display: none;
} */
/* Slot Machine Styles */
.slot-machine-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 99;
}

.slot-machine-title {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px #00ffff, 0 0 40px #ff00ff;
    margin-bottom: 30px;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 3px;
}

/* 
.slot-machine {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border: 3px solid #00ffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        inset 0 0 30px rgba(255, 0, 255, 0.2);
    position: relative;
}

.slot-machine::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ffff);
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 2s linear infinite;
} */

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.reels-container {
    display: flex;
    justify-content: center;
    gap: 5px;
    /* margin-bottom: 30px;
    perspective: 1000px; */
}

.reel {
    width: 120px;
    height: 350px;
    background: linear-gradient(180deg, #26f074, #26f074);
    border: 2px solid #26f074;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px #26f074, inset 0 0 20px #26f074;
}

.reel-item {
    width: 100%;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000, #000);
    border-bottom: 1px solid #17c483;
    position: relative;
}

.reel-item img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.reel-item .prize-text {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    padding: 10px;
    word-wrap: break-word;
    line-height: 1.2;
}

.reel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 255, 255, 0.1) 50%,
            transparent 100%);
    pointer-events: none;
}

/* Reel spinning animation */
.reel.spinning {
    overflow: hidden;
}

.reel.spinning .reel-item {
    animation: spinReelItem 0.05s linear infinite;
}

@keyframes spinReelItem {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-120px);
    }
}

/* Winning line highlight */
/* .winning-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    transform: translateY(-50%);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
    z-index: 10;
    animation: winningPulse 1s ease-in-out infinite;
}

.winning-line.winning {
    background: linear-gradient(90deg, #ffff00, #ff00ff, #00ffff, #ffff00);
    box-shadow: 0 0 30px rgba(255, 255, 0, 1);
    animation: winningFlash 0.5s ease-in-out infinite;
} */

@keyframes winningPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translateY(-50%) scaleX(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scaleX(1.05);
    }
}

@keyframes winningFlash {

    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
    }

    50% {
        opacity: 0.5;
        transform: translateY(-50%) scaleX(1.1);
    }
}

.spin-button {
    text-align: center;
    margin-top: 20px;
}

/* .spin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ff6b6b);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 8px 20px rgba(255, 107, 107, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
} */

/* .spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
} */
.spin-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spin-btn img {
    width: 40%;
}

.spin-btn:hover::before {
    left: 100%;
}

.spin-btn:hover {
    transform: translateY(-3px);

}

.spin-btn:active {
    transform: translateY(-1px);

}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Prize grid fallback for old structure */
.prize-grid {
    display: none;
    /* Hide old grid */
}

.spin-button {
    animation: updown 3s linear infinite;
}

section#contact-footer {
    z-index: 9999 !important;
}

@keyframes updown {
    0% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
        transform: scale(1);
    }

    25% {
        -o-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
        transform: scale(1.1);
    }

    50% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
        transform: scale(1);
    }

    75% {
        -o-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
        transform: scale(1.1);
    }

    100% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
        transform: scale(1);
    }

}

.prize-item {
    aspect-ratio: 1;

    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;

    position: relative;
}

.prize-item img {
    width: 100%;
    height: auto;
}

.prize-item span {
    font-weight: bold;
    color: #333;
}

.btn-delete-selected #bulk-delete-codes {
    color: #0c398e !important;
    border-color: #0c398e !important;
}

.btn-delete-selected {
    float: right;
}

.prize-item.dim {
    opacity: 0.3;
}

tbody#the-list td {
    text-align: center;
}

table.wp-list-table.widefat.fixed.striped td {
    text-align: center;
}

.prize-item.highlight {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    opacity: 1;
}

button.btn-draw-again {
    margin: 0;
    font-size: 17px;
    padding: 10px;
}

.prize-item.active {
    opacity: 1;
    transform: scale(1.1);
    z-index: 2;
    background: linear-gradient(90deg, rgb(255 221 0 / 52%) 0%, rgb(253 145 29 / 44%) 50%, rgb(252 176 69 / 57%) 100%);
    padding: 3px;
}

img.prize-image {
    width: 125px;
    height: auto;
}

#spinButton {
    grid-column: 2 / span 2;
    grid-row: 2 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

#spinButton {
    display: block;
}

#spinButton span {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

#spinButton:hover {
    transform: scale(1.05);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 11% auto;
    padding: 20px;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    text-align: right;
}

.close-modal:hover {
    color: #000;
}

.code-input-section {
    text-align: center;
    margin: 40px 0;
}

#lottery-code {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

#lottery-code:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px #8BC34A;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.button-primary {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.button-secondary {
    background-color: #666;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.button-primary:hover {
    background-color: #ff2222;
}

.button-secondary:hover {
    background-color: #555;
}

/* Error message style */
.error-message {
    color: #ff4444;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

/* Message Popup Styles */
.message-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 40px;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    text-align: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.message-popup.success {
    background-color: #9c27b0;
}

.message-popup.error {
    background-color: #154c69;
}

.message-popup.error.login-required {
    background-color: #154c69;
    font-weight: bold;
}

div#userPointsDisplay {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Login Notice Styles */
.login-notice .modal-content {
    max-width: 400px;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-notice h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.login-notice p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.login-notice .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.login-notice .button-primary {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.login-notice .button-secondary {
    background-color: #666;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.login-notice .button-primary:hover {
    background-color: #ff2222;
}

.login-notice .button-secondary:hover {
    background-color: #555;
}

.login-notice .close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.login-notice .close-modal:hover {
    color: #333;
}

/* Modal Background */
.lucky-draw-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Initial Winning Popup */
.winning-popup .modal-content {
    max-width: 500px;
    padding: 30px;
    text-align: center;
    background: #010202ad;
    border-radius: 10px;
    box-shadow: 1px 1px 17px #cddc39;
    border: 2px solid #fff;
}

.winning-popup .prize-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.winning-popup .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.winning-popup .go-check-btn,
.winning-popup .draw-again-btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.winning-popup .go-check-btn {
    background-color: #f5f5f5;
    color: #fff;
}

.winning-popup .draw-again-btn {
    background-color: #ff4444;
    color: white;
}

/* Prize Details Popup */
.prize-details-popup .modal-content {
    max-width: 500px;
    background: white;
    border-radius: 10px;
    position: relative;
    padding: 0;
}

.prize-details-popup h2 {
    margin: 0;
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 10px 10px 0 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.prize-result {
    text-align: center;
}

.search-history-section {
    margin-top: 30px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;

    background: #ff0000;
    padding: 0px 15px;
    box-shadow: 2px -3px 1px #fff;
}

.prize-info {
    padding: 5px;
}

.prize-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.prize-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.prize-title {
    font-size: 16px;
    color: #666;
}

.congratulations-text {
    text-align: center;
    color: #ff4444;
    font-size: 18px;
    margin-bottom: 20px;
}

.prize-value {
    font-size: 24px;
    font-weight: bold;
    margin-top: 5px;
}

.redemption-section {
    background: #005153;
    border-radius: 10px;
    margin: 10px;
    padding: 20px;
    text-align: left;
    border: 1px solid #4caf50;
}

.redemption-section h3 {
    color: #ff4444;
    font-size: 18px;
    margin: 0 0 15px 0;
}

.redemption-row {
    display: flex;
    margin-bottom: 15px;
}

.redemption-row .label {
    width: 150px;
    color: #fff;
}

.code-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code {
    color: #fff;
    font-family: monospace;
}

.copy-btn {
    background: transparent;
    border: 1px solid #8BC34A;
    color: #8BC34A;
    padding: 2px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

h2.prizeLevel {
    color: #fff;
}

.copy-btn:hover {
    background: #8BC34A;
    color: white;
}

.method {
    color: #fff;
    flex: 1;
}

/* Animation */
.winning-popup {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Code Display Styles */
.code-content {
    text-align: center;
}

.code-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.code-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.code-display input {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 200px;
    text-align: center;
    background: #f9f9f9;
}

.copy-code-btn {
    padding: 10px 20px;
    background-color: #9c27b0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-code-btn:hover {
    background-color: #45a049;
}

.back-to-prize-btn {
    padding: 10px 20px;
    background-color: #666;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-to-prize-btn:hover {
    background-color: #555;
}

.button-group button {
    font-size: 20px !important;
    padding: 10px;
    background: linear-gradient(to right, #25f074, #009688);
    color: #fff;
    border: 2px solid #ffffff !important;
}

.redemption-section h3 {
    text-align: center !important;
    line-height: 40px !important;
    border-bottom: none !important;
    margin-top: 14px !important;
    font-size: 1rem !important;
    color: #d91b1b !important;
}

.prize-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-grid {
    background-image: url('/wp-content/uploads/2025/06/KHUNG-NGOAI-F1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px;
}

.prize-grid {
    animation: switchImages 1s infinite;
    background-size: 100%;
}

@keyframes switchImages {
    0% {
        background-image: url('/wp-content/uploads/2025/06/KHUNG-NGOAI-F2.png');
    }

    50% {
        background-image: url('/wp-content/uploads/2025/06/KHUNG-NGOAI-F1.png');
    }

    100% {
        background-image: url('/wp-content/uploads/2025/06/KHUNG-NGOAI-F2.png');
    }
}

.lucky-draw-bottom-btn img {
    width: 100%;
    height: auto;
}


.lucky-draw-header-bg {
    text-align: center;
    /* margin-bottom: -7px; */
    position: absolute;
    top: -17%;
}

.lucky-draw-header-bg img {
    width: 100%;
}

.lucky-draw-container {
    position: relative;
}

img#prize-total {
    /* width: 100px !important; */
    /* margin: 0 20px; */

}

.sub-bg {
    opacity: 0.2;
    height: 100%;
    mix-blend-mode: color-dodge;
    position: absolute;
    z-index: 1;
    width: 100%;
    display: block;
}

.lucky-draw-bottom-btn {
    text-align: center;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

/* Prize Total Modal Styles */
.lucky-draw-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.prizes-list-modal .modal-content {
    background: #fff;
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    max-height: 70vh;
    overflow-y: auto;
    top: 10%;
}

.prizes-list-modal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.prizes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.prize-item-preview {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: space-between;
    min-width: 200px;
}

.prize-item-preview:hover {
    transform: translateY(-5px);
}



.prize-item-preview h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}



/* Th锚m cursor pointer cho prize-total */
#prize-total {
    cursor: pointer;
}

#prize-total:hover {
    opacity: 0.8;
}

.lucky-draw-modal .modal-content {
    width: 35%;
}

.prizes-list-modal .modal-content::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
}

.prizes-list-modal .modal-content::-webkit-scrollbar {
    width: 10px;
    background-color: #F5F5F5;
}

.prizes-list-modal .modal-content::-webkit-scrollbar-thumb {
    background-color: rgb(27, 115, 216);
    background-image: -webkit-linear-gradient(45deg,
            rgba(255, 255, 255, .2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, .2) 50%,
            rgba(255, 255, 255, .2) 75%,
            transparent 75%,
            transparent)
}

/* Responsive design for slot machine */
@media (max-width: 1024px) {
    .spin-btn img {
        width: 55%;
    }

    .reel {
        width: 100%;
        height: 310px;
    }

    .lucky-draw-container-wrapper {
        padding-top: 40px;
    }

    .slot-machine-container {
        max-width: 700px;
        padding: 15px;
    }

    .slot-machine {
        width: 78%;
    }

    .slot-machine-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .reel {
        width: 100px;
        height: 300px;
    }

    .reel-item {
        height: 100px;
    }

    .reel-item img {
        width: 60px;
        height: 60px;
    }

    .reel-item .prize-text {
        font-size: 12px;
        padding: 8px;
    }

    .spin-btn {
        padding: 15px 50px;
        font-size: 28px;
    }

    .lucky-draw-header-bg img {
        width: 80%;
    }

    .lucky-draw-modal .modal-content {
        width: 59%;
    }
}

@media (max-width: 768px) {
    .lucky-draw-container-wrapper {
        padding-top: 40px;
        padding-bottom: 0;
    }

    .slot-machine-container {
        max-width: 100%;
        /* padding: 10px; */
    }

    .slot-machine-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .slot-machine {
        top: 50%;
        padding: 10px;
    }

    .reels-container {
        gap: 8px;

    }

    .reel {
        width: 100%;
        height: 180px;
        border-radius: 10px;
    }

    .reel-item {
        height: 60px;
    }

    .reel-item img {
        width: 45px;
        height: 45px;
    }

    .reel-item .prize-text {
        font-size: 10px;
        padding: 5px;
    }

    .spin-btn {
        padding: 0;
        width: 200px;
    }

    .lucky-draw-header-icon #prize-total {
        width: 100px;
    }

    .lucky-draw-modal .modal-content {
        width: 59%;
    }

    .lucky-draw-bottom-btn img {
        width: 100%;
    }

    .lucky-draw-modal .modal-content {
        width: 80%;
    }

    .lucky-draw-header-bg img {
        width: 100%;
    }

    .lucky-draw-header-bg {

        top: -12%;
    }
}

/* .prize-grid {
    position: relative;
    border-radius: 23px;
}
.prize-grid::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
     border-radius: 23px;
     border: 5px solid rgb(200 239 249);
    animation: border-anim 2s linear infinite;
    
}


@keyframes border-anim {
    0% {
        clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
    }
    25% {
        clip-path: polygon(0% 0%, 25% 0%, 0% 0%, 0% 0%);
    }
    50% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 25%, 0% 25%);
    }
    75% {
        clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 100% 0%);
    }
    100% {
        clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
    }
} *//* ========================================= */
/* FIX FOR HUGE BUTTONS AND TINY SPIN BUTTON */
/* ========================================= */
.spin-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 10px;
}
.lucky-draw-bottom-btn {
    flex: 0 0 28%;
    max-width: 200px;
    display: flex;
    justify-content: center;
}
.lucky-draw-bottom-btn img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.spin-button {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.spin-btn {
    width: 100%;
    display: flex;
    justify-content: center;
}
.spin-btn img {
    width: 100% !important;
    max-width: 320px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .lucky-draw-bottom-btn {
        flex: 0 0 30%;
    }
    .spin-button {
        flex: 0 0 40%;
    }
}
body { background: url('../images/neon/BACKGROUND.jpg') center/cover fixed !important; background-color: #001030 !important; }
.slot-machine { left: 47% !important; /* shift reels slightly left to match background window */ }

/* ========================================= */
/* FIX FOR SLOT MACHINE REELS POSITIONING    */
/* ========================================= */
.slot-machine {
    /* Override the broken duplicate rule in the user's css.css */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 84% !important;
    padding: 0 !important;
}
.slot-machine::before {
    display: none !important;
}
.reels-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
}
img.slot-machine-bg {
    width: 100% !important;
    height: auto;
    display: block;
}
/* ========================================= */
/* FIX UGLY CLOSE BUTTON & ADD MUSIC BUTTON  */
/* ========================================= */
.close-modal {
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 32px !important;
    top: 10px !important;
    right: 20px !important;
    opacity: 0.7;
    transition: all 0.3s ease;
}
.close-modal:hover {
    opacity: 1;
    transform: scale(1.1);
}

#musicBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}
#musicBtn::after {
    content: '🎵'; /* Beautiful music emoji */
}
#musicBtn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
    transform: scale(1.1);
}
.rotate360 {
    animation: rotate360 4s linear infinite;
}
/* ========================================= */
/* FIX ABOUT/HISTORY BUTTON POSITIONS        */
/* ========================================= */
.spin-button-container {
    max-width: 100% !important;
    padding: 20px 5% !important;
}


/* --- MODALS FROM TEMPLATE2 --- */



/* --- MODALS FROM TEMPLATE2 --- */

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    width: 90%;
    max-width: 420px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.code-input-section, .search-history-section {
    text-align: center;
    margin: 20px 0 10px;
}

.input-field {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.input-field:focus {
    border-color: #ff4444;
    outline: none;
}

.button-primary {
    background: linear-gradient(to right, #ff4444, #d91b1b);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 68, 68, 0.3);
    transition: all 0.2s;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 68, 68, 0.4);
}

.error-message {
    color: #ff4444;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

/* User winning notifications & details */
.lucky-draw-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lucky-draw-modal.active {
    display: flex;
}

.winning-popup .modal-content {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    max-width: 400px;
}

.winning-popup .prize-image {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.winning-popup h2 {
    color: #d91b1b;
    font-size: 22px;
    margin: 10px 0;
}

.congratulations-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.winning-popup .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.winning-popup button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    transition: all 0.2s;
}

.winning-popup .go-check-btn {
    background-color: #f0f0f0;
    color: #333;
}

.winning-popup .go-check-btn:hover {
    background-color: #e0e0e0;
}

.winning-popup .draw-again-btn {
    background-color: #ff4444;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 68, 68, 0.3);
}

.winning-popup .draw-again-btn:hover {
    background-color: #d91b1b;
}

/* Prize Details Popup */
.prize-details-popup .modal-content {
    max-width: 450px;
    padding: 0;
    overflow: hidden;
}

.prize-details-popup h2 {
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.prize-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prize-header img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.prize-value {
    color: #d91b1b;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

.redemption-section {
    background: #fff5f5;
    padding: 20px;
    border-top: 1px solid #ffe3e3;
}

.redemption-section h3 {
    color: #d91b1b;
    font-size: 16px;
    margin: 0 0 15px;
    text-align: center;
}

.redemption-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.redemption-row .label {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.code-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #ffd1d1;
    padding: 10px;
    border-radius: 6px;
}

.code {
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.copy-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.copy-btn:hover {
    background: #45a049;
}

.method {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.btn-draw-again {
    width: 100%;
    padding: 10px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-draw-again:hover {
    background: #d91b1b;
}

/* Bottom Actions */
.lucky-draw-bottom-btn {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    z-index: 99;
}

.lucky-draw-bottom-btn img {
    width: 140px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.lucky-draw-bottom-btn img:hover {
    transform: scale(1.05);
}

/* Search History Modal Details */
.prize-result {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 15px;
    text-align: center;
}

.prize-result img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.prize-result h3 {
    color: #d91b1b;
    font-size: 18px;
    margin: 5px 0;
}

.prize-result p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.win-date {
    color: #ff9800 !important;
    font-weight: bold;
}

/* How to Participate section */
.q-participate-section {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 30px 10px;
    color: #fff;
    margin-top: 30px;
    position: relative;
    z-index: 9;
}

.q-participate-title {
    font-size: 22px;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.q-participate-steps {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex-wrap: wrap;
}

.q-participate-step {
    width: 150px;
    text-align: center;
    background: rgba(0,0,0,0.4);
    padding: 15px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.q-participate-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
}

.q-participate-step-title {
    font-size: 15px;
    margin-bottom: 5px;
    color: #ffca00;
}

.q-participate-step-text {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.9;
}

.music-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 999;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle-btn svg {
    fill: #ffffff;
}

/* Responsiveness */
@media (max-width: 600px) {
    .prize-grid {
        padding: 20px;
        gap: 6px;
    }
    .q-participate-steps {
        gap: 10px;
    }
    .q-participate-step {
        width: 45%;
    }
}

@media (max-width: 400px) {
    .q-participate-step {
        width: 90%;
    }
}

