
.btn-close {
    margin: 0 auto;
    cursor: pointer;
    appearance: none;
    background-color: #ffe358;
    border: 5px solid #918f33;
    border-radius: 50px;
    padding: 15px 30px;
    color: #000000;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
    position: absolute;
    right: 40%;
    bottom: 15%;
    z-index:100;
}
.main2 {
    display: flex;
    height: 100%;
    align-items: flex-end;
    position: relative;
    align-items: center;
    position: relative;
    overflow: hidden;
    display: none;
    justify-content: center;
}

.main_inner{
    height: 100%;
    position: relative;
}

.animation_container2 {
    position: absolute;
    max-width: 400px;
    margin: 0 auto;
    /* margin-left: 4%; */
    img{
        z-index: 100;
        object-fit: cover;
        width: 100%;
        max-height: 300px;
    }
}

    .animation_container2:before {
        display: block;
        content: "";
        padding-top: 131%;
    }

    .animation_container2 .canvas,
    .animation_container2 .dom_overlay_container2 {
        position: absolute;
        top: -7%;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 998;
    }

.dom_overlay_container2 {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    transform: translateY(-7%);
}
/*
.main2::after {
    display: block;
    position: absolute;
    content: "";
    background: url("../../images/games/images/left.png") no-repeat;
    width: 100%;
    height: 100%;
    max-height: 100px;
    max-width: 203px;
    top: 0;
    left: -10%;
    transform: translateX(10%);
    background-size: contain;
}

.main2::before {
    display: block;
    position: absolute;
    content: "";
    background: url("../../images/games/images/right.png") no-repeat;
    width: 100%;
    height: 100%;
    max-height: 100px;
    max-width: 203px;
    top: 0;
    right: -5%;
    transform: translateX(5%);
    background-size: contain;
}*/
.scroll::after {
    content: "";
    display: none;
}

.scroll {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.result-top {
    width: 100%;
    height: auto;
    max-height: 20%;
    display: flex;
    justify-content: space-between;
}
/* 右上角圖片 */
.result-top-right {
    width: 50%;
    max-width: 50%;
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}
.result-top-right img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: right top;
}
/* 左上角圖片 */
.result-top-left {
    width: 50%;
    max-width: 50%;
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
.result-top-left img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left top;
}

.result-middle {
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.result-middle > p {
    color:red;
}

/* 結果恭喜圖 */
.result-middle-mainHeading2 {
    width: 100%;
    height: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mainHeading2 {
    width: 100%;
    height: 100%;
    max-height: none;
    display: block;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    object-fit: contain;
    z-index: 999;
}

/* 轉盤結果圖 */
.result-middle-result-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: -1;
}
.scroll-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

/* 轉盤結果人物圖 */
.result-middle-result-character {
    width: 100%;
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.result-character {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;

}

.result-bottom {
    width: 100%;
    height: auto;
    max-height: 20%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
/* 左下角圖片 */
.mainLeft2 {
    display: block;
    position: relative;
    max-width: 50%;
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain; 
    object-position: left bottom;
    margin-right: auto;
}
/* 右下角圖片 */
.mainRight2 {
    display: block;
    position: relative;
    max-width: 50%;
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
    margin-left: auto;
}

@media (max-width: 560px) {
    .main2::before {
        max-height: 100px;
        max-width: 203px;
        right: -10%;
    }

    .main2::after {
        max-height: 100px;
        max-width: 203px;
    }
}

@media (max-width: 400px) {
    .main2::before {
        max-height: 80px;
        max-width: 183px;
        background-position: right;
    }

    .main2::after {
        max-height: 80px;
        max-width: 183px;
    }
}
