@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");

img {
    width: 100%;
}
.main {
    position: relative;
}

/*遊戲區塊：多圖層堆疊樣式*/
#game-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

#main-bg {
    width: 100%;
    display: block;
}

/* 童玩 A/B 圖 */
#hint-img {
    position: absolute;
    top: 31.5%;
    right: 23%;
    width: 8%;
    z-index: 4;
    pointer-events: none;
}

/* 黑板區塊 (包含題目底圖 + 目標童玩) */
#blackboard-area {
    position: absolute;
    top: 37.5%;
    left: 19%;
    width: 64.5%;
    height: 20%;
    z-index: 2;
    cursor: pointer;
}

/* 題目底圖 (鋪滿黑板區塊) */
#question-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

/* 目標童玩 (正確點擊區) */
#target-toy {
    position: absolute;
    cursor: pointer;
    z-index: 4;
}

/* 打叉與過關GIF */
#wrong-mark {
    position: absolute;
    width: 15%;
    transform: translate(-50%, -50%);
    z-index: 8;
    pointer-events: none;
    display: none;
}

#playing-gif {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 20%;
    box-sizing: border-box;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    touch-action: none;
}

/* 其他活動樣式 */
#desc-bg {
    display: block;
    height: auto;
}

#desc {
    position: relative;
    font-family: "Noto Sans TC", sans-serif;
    padding: 7vw 7vw;
    font-size: 3.5vw;
    font-weight: bold;
    color: #883000;
    background-color: #FDF4E5;
    margin-bottom: -2vw;
}

#desc ul {
    padding-left: 0;
    list-style-type: none;
    margin: 0;
}

#desc p{
    text-align: justify;
    text-justify: inter-ideograph;
    padding-left: 1em;
    text-indent: -1.2em;
    margin-bottom: 0.8em;
    line-height: 1.5;
}

#desc ul li {
    text-align: justify;
    text-justify: inter-ideograph;
    padding-left: 1em;
    text-indent: -1.6em;
    margin-bottom: 0.8em;
    line-height: 1.5;
}

#btn_redemption {
    position: fixed;
    display: none;
    left: 2%;
    width: 25%;
    bottom: 10%;
    z-index: 99;
}

#leftPopUp {
    position:absolute;
    top :50%;
    left:50%;
    text-align: center;
    transform: translate(-50%, -50%);
}

#userRedemption {
    position: absolute;
    text-align: center;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 22vw;
}

@keyframes floatUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); } /* 向上浮動 10px */
    100% { transform: translateY(0); }
}

/* 當元素加上這個 class 時，就會無限執行浮動動畫 */
.floating {
    animation: floatUpDown 1.5s ease-in-out infinite;
}
