.container2 {
    background: url("../../images/games/img/bg.png") repeat;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 95vh;
    overflow: hidden;
    width: 55vw;
    .head-img{
        position: absolute;
        top: 0;
        height: 3vh;
        width: 100%;
        overflow: hidden;
        z-index:999;
        img{
            width: 100%;
            object-fit: cover;
        }
    }
.foot-img {
    position: absolute;
    bottom: 0;
    height: 3vh;
    width: 100%;
    overflow: hidden;
    z-index: 999;
    img{
            width: 100%;
            object-fit: cover;
        }
    }
}

    /* .container2:before {
        display: block;
        content: "";
        background: url("../../images/games/img/head.png") repeat-x;
        height: 49px;
        width: 100%;
    }

    .container2:after {
        display: block;
        content: "";
        background: url("../../images/games/img/foot.png") repeat-x;
        height: 36px;
        width: 100%;
    } */

.main {
    background: url("../../images/games/img/bg.png") repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.main2 {
    display: flex;
    height: 100%;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    display: none;
    justify-content: center;
}

.main_inner{
    height: 100%;
    position: relative;
}

.main_Footer {
    width: 100%;
    height: 88%;
    position: absolute;
    bottom: 0;
    object-fit: contain;
    object-position: bottom;
    transform: translateY(-5%);
}

.wheel-container {
    text-align: center;
    position: relative;
}

.wheel-container::after {
    display: none;
}

.game-heading {
    display: none;
}

.actions {
    display: block;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
}

@media screen and (max-width: 600px) {
    .game-wheel {
        position: relative;
        width: 100% !important;
        height: auto !important;
        min-width: 100px !important;
        margin: 0 auto;
    }
}
.game-wheel {
    position: relative;
    width: 60%;
    max-width: 500px;
    min-width:300px;
    margin: 0 auto;
}

.game-wheel_stand {
    width: 100%;
}

.game-wheel_board {
    position: absolute;
    top: 3%;
    left: 0;
    right: 0;
    width: 90%;
    margin: 0 auto;
}

.game-wheel_shadow {
    position: absolute;
    top: 5%;
    left: 0;
    right: 0;
    width: 88%;
    margin: 0 auto;
    z-index: 2;
    filter: brightness(0.01);
}

.game-wheel_front {
    position: relative;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 30%;
}

.outSide {
    width: 100%;
    height: 100vh; /* 使外部容器的高度等于视窗高度 */
    display: block; /* 使用 Flexbox 布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    background-color: blue;
}

.game-title {
    max-width: 420px;
    height: 130px;
    margin: 10% 0;
    width: 90%;
    object-fit: cover;
    overflow: hidden;
}

.game-box-background {
    width: 100%;
    height: auto;
    max-height: 50vh;
    position: relative;
    z-index: 1;
    object-fit: contain;
    display: block;
}

.game-box-card {
    flex: 0 0 60%;
    width: 100%;
    height: 100%;
    position: relative;
}

    .game-box-card::before {
        display: block;
        content: "";
        padding-top: 65%;
    }

.game-box-background-main {
    position: absolute;
    width: 100%;
    height: 80%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-background {
    content: "";
    display: block;
    background: url("../../images/games/img/scratchGameBackground.png") no-repeat;
    width: 100%;
    height: 100%;
    max-width: 537px;
    background-size: contain;
    position: absolute;
    z-index: 99;
    top: -12%;
}

.game-box-card > img,
.test {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mainHeading2 {
    display: block;
    top: 5%;
    width: 100%;
    max-height: 200px;
    left: -50%;
    transform: translateX(50%);
    position: absolute;
    object-fit: contain;
    z-index: 999;
}

.scroll::after {
    content: "";
    display: block;
}

.scroll {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.result-top {
    width: 100%;
    height: 25%;
    position: relative;
    top: 0;
    left: 0;
}

/* 右上角圖片 */
.result-top-right {
    max-width: 50%;
    position: absolute;
    top: 0px;
    right: 0px;
    object-position: right;
}

/* 左上角圖片 */
.result-top-left {
    max-width: 50%;
    position: absolute;
    top: 0px;
    left: 0px;
    object-position: left;
}

.result-middle {
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 標題 */
.resultTitle, .scratchResultTitle, .gachaGameResultTitle {
    font-size: 3rem;
    font-weight: bold;
    color: #000;
    /* text-shadow:
    1.5px 1.5px 0 #ffffff,
   -1.5px 1.5px 0 #ffffff,
    1.5px -1.5px 0 #ffffff,
   -1.5px -1.5px 0 #ffffff; */
    text-align: center;
}

.result-middle > p {
    color: #000000;
    /* text-shadow:
    1px 1px 0 #000000,
   -1px 1px 0 #ffffff,
    1px -1px 0 #ffffff,
   -1px -1px 0 #ffffff,
   3px 3px 8px rgba(255, 255, 255, 0.8); */
    font-size: 2.4rem;
    font-weight: bold;
}

@media (max-width: 420px) {
    /* 標題 */
    .resultTitle, .scratchResultTitle, .gachaGameResultTitle {
        font-size: 2.4rem;
    }
    
    .result-middle > p {
        font-size: 2rem;
        font-weight: 500;
    }
}

.result-middle-result-image2 {
    width: 100%;
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-bottom {
    width: 100%;
    height: 25%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* 左下角圖片 */
.mainLeft2 {
    display: block;
    position: relative;
    width: 50%;
    height: 100%;
    max-height: 230px;
    object-fit: cover;
    object-position: left;
    margin-right: auto;
    bottom: 0;
    left: 0;
}

/* 右下角圖片 */
.mainRight2 {
    display: block;
    position: relative;
    width: 50%;
    height: 100%;
    max-height: 230px;
    object-fit: cover;
    object-position: right;
    margin-left: auto;
    bottom: 0;
    right: 0;
}

.scroll-img {
    max-width: 450px;
    width: 100%;
    height: 100%;
    max-height: 100px;
    object-fit: contain;
}

.result-character-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: contain;
}

.animation_container2 {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.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%);
}
.game-box-card-location {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#js-canvas{
    touch-action: none; /* 禁用觸控行為（如滾動） */
    user-select: none;  /* 禁用用戶選擇行為 */
    cursor: crosshair;  /* 提供更好的刮刮樂體驗 */
}

@media (max-width: 560px) {
    .mainLeft2,
    .mainRight2 {
        max-height: 200px;
    }
}

@media (max-width: 400px) {
    .mainLeft2,
    .mainRight2 {
        max-height: 150px;
    }
}

/*media (max-width: 1024px){
    .game-box-card-location{
        margin-top: 25%;
        margin-bottom: 0;
    }
}

@media (max-width: 991px) {
    .container2{
        width: 92vw;
    }
    .game-box-card-location{
        margin-top: 5%;
    }
}

@media (max-width: 480px) {
    .game-box-card-location{
        margin-top: 18%;
    }
}*/


/*@media (max-width: 768px) {
}

@media (max-width: 550px) {
  .main_Footer {
    transform: translateY(-6%);
  }
  .game-box-card {
    margin: 0 auto 50% auto;
  }
}


@media (max-width: 375px) {
  .game-box-card > img,
  .test {
    position: absolute;
    top: 0;
    z-index: 999;
    max-height: 130px;
    max-width: 230px;
  }
}

@media (max-width: 320px) {
  .main_Footer {
    transform: translateY(-7%);
  }
  .game-box-card > img,
  .test {
    position: absolute;
    top: 0;
    z-index: 999;
    height: 110px;
    width: 180px;
  }
}
*/
