html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
}

button {
    border: none;
    transition: transform 0.15s ease;
    cursor: pointer;
}

button:active {
    transform: scale(0.9);
}

button.rebound {
    animation: rebound 0.3s ease-out forwards;
}

@keyframes rebound {
    0% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    width: 100%;
    background-image: url("../assets/sprites/bg1.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.content {
    width: 100vw;
    height: auto;
    /* max-width: 900px; */
    aspect-ratio: 900 / 1600;
}

.footer {
    background-image: url("../assets/sprites/footer-0.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: fixed;
    aspect-ratio: 900 / 418;
    width: 100vw;
    /* height: auto; */
    /* max-width: 900px; */
    bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#caption {
    aspect-ratio: 596 / 180;
    width: 75vw;
    margin-top: 4vh;
    justify-content: center;
}

#caption img {
    width: 100%;
}

.logo {
    position: relative;
    top: 0;
}

.g-never {
    position: fixed;
    background-image: url("../assets/sprites/g_never.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    position: fixed;
    bottom: -6px;
    width: 30vw;
    aspect-ratio: 292 / 146;
}

#label-container,
#label-log {
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    /* พื้นหลังครึ่งโปร่งใสเพื่อให้ข้อความเห็นได้ชัดเจน */
    z-index: 1000;
    /* ทำให้ `labelContainer` อยู่เหนือองค์ประกอบอื่น */
    padding: 10px;
}

#label-detecting {
    position: absolute;
    text-align: center;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    /* padding: 10px 20px;  */
    padding: 10px 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (min-aspect-ratio: 900 / 1600) {
    .footer {
        height: 26.3%;
        width: auto;
    }

    .content {
        height: 100%;
        width: auto;
    }

    .g-never {
        height: 8vh;
        width: auto;
    }

    #caption {
        height: 10.8vh;
        width: auto;
    }
}

/**************************************************/
/**************************************************/
/**************************************************/
/**************************************************/
/**************************************************/
#footer {
    position: fixed;
    background-image: url('../assets/sprites/footer-2.png');
    /* แทนที่ด้วย URL ของภาพพื้นหลัง */
    background-size: contain;
    /* ปรับขนาดภาพพื้นหลังให้เต็ม */
    background-position: center;
    /* จัดตำแหน่งภาพให้อยู่กลาง */
    background-repeat: no-repeat;
    width: 100vw;
    /* ความกว้างเต็มหน้าจอ */
    height: calc((394 / 900) * 100vw);
    /* ปรับความสูงตามสัดส่วนของดีไซน์ */
    max-height: calc((394 / 1612) * 100vh);
    /* ไม่ให้ความสูงเกินกว่าสัดส่วนในดีไซน์ */
    max-width: 100%;
    /* ไม่ให้กว้างเกิน 100% ของหน้าจอ */
    margin-top: 20px;
    /* ระยะห่างจากเนื้อหาด้านบน (ถ้าต้องการ) */
    bottom: 0;

}

/**************************************************/
/**************************************************/