@font-face {
    font-family: DINProBold;
    src: url(/assets/fonts/DinPro/DINProBold.otf);
}

@font-face {
    font-family: DINProBlack;
    src: url(/assets/fonts/DinPro/DIN-Pro-Black.otf);
}

body {
    background-color: transparent;
}

/* Match Box */
.matchbox-container {
    position: relative;
    left: 2%;
    display: flex;
    flex-direction: column;
    background-image: url(/assets/images/matching/b9/xmas-2025/matching-game-bg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 635px;
    width: 1036px;
    margin: -15px auto 0px;
}

.matchbox-container.cn {
    background-image: url(/assets/images/matching/b9/xmas-2025/matching-game-bg-cn.png);
}

.matchbox-container .event-period {
    position: absolute;
    top: 33.4%;
    left: 50%;
    color: #ffffff;
    font-size: 0.7em;
    transform: translateX(-58%);
}
.matchbox-container.kh .event-period {
    font-size: 0.5em;
}

.matchbox-container .matchbox-row {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    transform: translateX(-55%);
}

.matchbox-container #matchbox-row1 {
    bottom: 35%;
    width: 560px;
}

.matchbox-container #matchbox-row2 {
    bottom: 12%;
    width: 448px;
}

.matchbox-container .matchbox {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-bg.png?v1.1);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 90px;
    width: 90px;
    cursor: pointer;
}

.matchbox-container .matchbox.disabled {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-bg.png?v1.1);
    cursor: default;
}

.matchbox-container .matchbox:not(.disabled) {
    animation: matchbox-selected 1s 2 ease;
}

.matchbox-container .matchbox.won-animation {
    animation: matchbox-won 1s ease infinite;
}

.matchbox-container .matchbox.card[data-card='0'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/santa.png);
}

.matchbox-container .matchbox.card[data-card='1'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/tree.png);
}

.matchbox-container .matchbox.card[data-card='2'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/deer.png);
}

.matchbox-container .matchbox.card[data-card='3'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/bell.png);
}

.matchbox-container .matchbox.card[data-card='4'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/snowman.png);
}

.matchbox-container .matchbox.card[data-card='5'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/hat.png);
}

.matchbox-container .matchbox.card[data-card='6'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/candy.png);
}

.matchbox-container .matchbox.card[data-card='7'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/present.png);
}

.matchbox-container .matchbox.card[data-joker='0'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x1.png);
}

.matchbox-container .matchbox.card[data-joker='1'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x2.png);
}

.matchbox-container .matchbox.card[data-joker='2'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x3.png);
}

.matchbox-container .matchbox.card[data-joker='3'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x4.png);
}

.matchbox-container .matchbox.card[data-joker='4'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x5.png);
}

.matchbox-container .matchbox.card[data-joker='5'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x6.png);
}

.matchbox-container .matchbox.card[data-joker='6'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x7.png);
}

.matchbox-container .matchbox.card[data-joker='7'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x8.png);
}

.matchbox-container .matchbox.card[data-joker='8'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x9.png);
}

.matchbox-container .matchbox.card[data-joker='9'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x10.png);
}

.matchbox-container .matchbox.card[data-joker='10'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x11.png);
}

.matchbox-container .matchbox.card[data-joker='11'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x12.png);
}

.matchbox-container .matchbox.card[data-joker='12'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x13.png);
}

.matchbox-container .matchbox.card[data-joker='13'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x14.png);
}

.matchbox-container .matchbox.card[data-joker='14'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x15.png);
}

.matchbox-container .matchbox.card[data-joker='15'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x16.png);
}

.matchbox-container .matchbox.card[data-joker='16'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x17.png);
}

.matchbox-container .matchbox.card[data-joker='17'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x18.png);
}

.matchbox-container .matchbox.card[data-joker='18'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x19.png);
}

.matchbox-container .matchbox.card[data-joker='19'] {
    background-image: url(/assets/images/matching/b9/xmas-2025/matchbox-gift/x20.png);
}

/* Play Button */
.matchbox-container .play-btn-bg {
    position: absolute;
    bottom: -10px;
    right: -10px;
    display: flex;
    background-image: url(/assets/images/matching/b9/xmas-2025/play-btn-bg.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 157px;
    width: 337px;
    cursor: pointer;
}

.matchbox-container .play-btn-bg .play-btn {
    display: flex;
    width: 84px;
    align-items: center;
    color: #ffffff;
    font-family: DINProBold;
    font-size: 2.2em;
    font-weight: 700;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    margin-left: 26%;
}

.matchbox-container.cn .play-btn-bg .play-btn {
    font-size: 1.5em;
    margin-left: 24%;
}

/* Ticket Box */
.ticket-box-bg {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-image: url(/assets/images/matching/b9/xmas-2025/ticket-box.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: #ffffff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    margin: 0 auto -1.5vw;
    padding: 3vw 13.5vw 0 12vw;
    height: calc(36vw/744*289);
    width: 36vw;
}

.ticket-box-bg span {
    font-family: DinProBlack;
    font-size: 24px;
    font-weight: 900;
    margin-left: 10px;
    margin-top: -2px;
}

/* Modal */
.popout-modal {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
    z-index: 9;
}

.popout-modal > .prize-modal-bg {
    position: relative;
    top: 40%;
    left: 50%;
    background-image: url(/assets/images/matching/b9/xmas-2025/popup-bg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: #ffffff;
    line-height: initial;
    text-align: center;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    padding: 220px 60px 40px;
    height: calc(450px/778*864);
    width: 450px;
    transform: translate(-50%, -50%);
}

.popout-modal#insufficient-modal > .prize-modal-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 0 20px;
}

.popout-modal#insufficient-modal .insufficient-modal-text {
    font-family: DinProBlack;
    font-size: 32px;
}

.prize-modal-title {
    font-family: DinProBlack;
    font-size: 28px;
    text-transform: uppercase;
}

.prize-modal-desc {
    font-family: DinPro;
    font-size: 32px;
    margin-top: 10px;
}

.popout-modal#prize-modal .prize-modal-amount {
    font-family: DinProBlack;
    font-size: 60px;
    text-transform: uppercase;
    margin-top: 10px;
}

.popout-modal .closeBtn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(40% + 300px);
    text-align: center;
    cursor: pointer;
    height: 60px;
    width: 60px;
}

.popout-modal .closeBtn > img {
    content: url(/assets/images/matching/b9/xmas-2025/close.png);
    width: 100%;
}


@keyframes matchbox-selected {
    0% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(1.2, 1.2);
    }

    100% {
        transform: scale(1, 1);
    }
}

@keyframes matchbox-won {
    0% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(1.5, 1.5);
    }

    100% {
        transform: scale(1, 1);
    }
}


@media (max-width: 900px) {
    .matchbox-container {
        left: 0;
        background-image: url(/assets/images/matching/b9/xmas-2025/mobile-matching-game-bg.png?v1.1);
        height: calc(100vw / 856 * 1018);
        margin: 0 auto 0px;
        width: 100vw;
    }

    .matchbox-container.cn {
        background-image: url(/assets/images/matching/b9/xmas-2025/mobile-matching-game-bg-cn.png?v1.1);
    }
    .matchbox-container.kh {
        background-image: url(/assets/images/matching/b9/xmas-2025/mobile-matching-game-bg-kh.png);
    }
    .matchbox-container.vn {
        background-image: url(/assets/images/matching/b9/xmas-2025/mobile-matching-game-bg-vn.png);
    }

    .matchbox-container .event-period {
        top: 36.5vw;
        font-size: 0.5rem;
        text-align: center;
        width: 71vw;
        transform: translateX(-48%) !important;
    }
    
    /* Match Box */
    .matchbox-container .matchbox-row {
        bottom: auto !important;
        width: 72vw !important;
        transform: translateX(-50%);
    }

    .matchbox-container .matchbox {
        height: 17vw;
        width: 17vw;
    }

    .matchbox-container #matchbox-row1 {
        top: 40%;
    }

    .matchbox-container #matchbox-row2 {
        top: 56.5%;
    }

    .matchbox-container #matchbox-row3 {
        top: 73.5%;
    }

    /* Play Button */
    .matchbox-container .play-btn-bg {
        bottom: -8vw;
        right: 0px;
        background-image: url(/assets/images/matching/b9/xmas-2025/mobile-play-btn-bg.gif);
        height: calc(35vw / 314 * 228);
        width: 35vw;
    }

    .matchbox-container .play-btn-bg .play-btn {
        justify-content: center;
        font-size: 1.6em;
        margin-left: 6.5vw !important;
        width: 75%;
    }
    .matchbox-container.vn .play-btn-bg .play-btn {
        margin-left: 12.5vw !important;

    .matchbox-container.cn .play-btn-bg .play-btn {
        font-size: 1.2em;
    }

    /* Ticket Box */
    .ticket-box-bg {
        font-size: 0.7rem;
        margin: 0 auto;
        padding: 5.2vw 8.5vw 0 5vw;
        height: calc(70vw / 744 * 289);
        width: 70vw;
    }

    .ticket-box-bg span {
        font-size: 1.3rem;
        margin-left: 8px;
        margin-top: -1px;
    }

    /* Modal */
    .popout-modal > .prize-modal-bg {
        padding: 175px 60px 40px;
        height: calc(90vw/778*864);
        width: 90vw;
    }

    .prize-modal-title {
        font-size: 24px;
    }

    .prize-modal-desc {
        font-size: 30px;
    }

    .popout-modal#prize-modal .prize-modal-amount {
        font-size: 56px;
        margin-top: 0;
    }

    .popout-modal .closeBtn {
        top: calc(40% + 250px);
    }
}