body {
    background-color: transparent !important;
    height: 100%;
    width: 100%;
}

.pickone-wrapper {
    position: relative;
}

#card-wrapper {
    position: relative;
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(5, 0fr);
    margin: 200px auto 200px auto;
    max-width: 730px;
    z-index: 3;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(/assets/images/pickone/mx9-dragonboat-2025/dumpling-en.webp);
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    height: 120px;
    width: 120px;
    cursor: pointer;
}
.card[data-index="3"] {
    transform: translate(0, -12px) scale(1.2);
}
.card.cn {
    background-image: url(/assets/images/pickone/mx9-dragonboat-2025/dumpling-cn.webp);
}

.ticket-frame {
    position: relative;
    width: 356px;
    height: 96px;
    margin: auto;
    background-image: url(/assets/images/pickone/mx9-dragonboat-2025/ticket-frame.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    color:white;
    font-weight: bold;
    text-align: center;
}
.ticket-text {
    position: absolute;
    width: 65%;
    height: 100%;
    font-size: 127%;
}
.ticket-text div {
    margin: 6%;
}
.ticket-text.cn div {
    margin: 12%;
}
.ticket-count {
    position: absolute;
    left: 65%;
    width: 35%;
    height: 100%;
    font-size: 230%;
}
.ticket-count div {
    margin: 12%;
}

#prize-modal .modal-content {
    background-color: transparent;
    border: none;
    outline: none;
}

#prize-modal .modal-body {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
    background-image: url(/assets/images/pickone/mx9-dragonboat-2025/popup-bg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    color: #ffffff;
    text-align: center;
    border: none;
    padding: 70px;
    height: 500px;
    width: 100%;
    outline: none;
}

#prize-modal .modal-body .close-btn {
    position: absolute;
    top: 35px;
    right: 55px;
}

#prize-modal .modal-body .close-btn img {
    width: 50%;
    cursor: pointer;
}

#prize-modal .modal-footer {
    flex-direction: column;
    justify-content: center;
    color: white;
    border: none;
    outline: none;
    padding: 5px;
}


#alertModal .modal-content {
    background-color: transparent;
    border: none;
    outline: none;
}

#alertModal .modal-body {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%), radial-gradient(50% 50% at 50% 50%, #0B6625 0%, #07401C 35.34%, #031A13 100%);
    backdrop-filter: blur(9px);
    border: 2px solid #FFF6B1;
    border-radius: 18px;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.10);
    color: white;
    padding: 20px;
    height: 300px;
    overflow-x: auto;
}

#alertModal .modal-title {
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
    padding-bottom: 12px;
}

#alertModal .modal-desc {
    padding-bottom: 5px;
}

#alertModal .modal-btn {
    border: none;
    padding: .75rem;
}

#alertModal .modal-btn img {
    margin: auto;
    width: 6%;
    cursor: pointer;
}

.modal {
    text-align: center;
}

.modal-backdrop {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    background-color: #000;
    height: 100vh;
    width: 100vw;
    z-index: 1040;
}

.modal-backdrop.show {
    display: block;
}


@media only screen and (max-width: 540px) {
    #card-wrapper {
        display: grid;
        overflow-x: auto;
        height:250px;
        margin: 140px auto 140px auto;
        align-items: center;
        justify-content: left;
        gap: 40px;
    }
    #card-wrapper::-webkit-scrollbar {
        width: 0;
    }

    .card {
        display: flex;
        width: 160px;
        height: 160px;
        align-items: center;
        justify-content: center;
        background-position: center;
        background-size: 100%;
        color: white;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
    }
    .card[data-index="3"] {
        transform: translate(0, -20px) scale(1.3);
    }

    .ticket-frame {
        width: 90vw;
        height: 23vw;
    }

    #prize-modal .modal-body {
        background-size: 140%;
    }

    #alertModal .modal-body {
        height: auto;
    }

    #alertModal .modal-body {
        height: auto;
    }
}