body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
	height: calc(var(--vh, 1vh) * 100);
    background-color: #f0f0f0;
    font-family: sans-serif;
    overflow: hidden;
}

#rotate-wrapper {
    display: contents;
    width: 100vw;
    height: 100%;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

#game-container {
    width: 800px;
    height: 600px;

    box-shadow: 0 0 20px #00000080;
    overflow: hidden;
    background-image: url(./image/background.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
}

/* 手機直立時模擬橫向效果 */
@media screen and (max-width: 768px) and (orientation: portrait) {
    #rotate-wrapper {
        display: block;
        width: 100vh;
        height: 100vw;
        transform: rotate(90deg);
    }

    #game-container {
        display: block;
        width: 100vh;
        height: 100vw;
    }
}

#scene {
    position: relative;
    width: 100%;
    height: 100%;
    /* background-image:  url(background.jpg); */
}

#cat-container {
    position: absolute;
    bottom: 18%;
    left: 20px;
    /* width: 250px; */
    /* height: 150px; */
    z-index: 5;
}

#cat-arm {
    position: absolute;
    left: 100px;
    bottom: 100px;
    height: 30px;
    width: 0;
    background-image: url(./image/cat_arm.png);
    background-size: 100% 100%;
    transition: width 0.05s linear;
    z-index: 1;
    transform-origin: left center;
}

#cat-paw {
    position: absolute;
    right: 0;
    top: -5px;
    width: 40px;
    height: 40px;
}

#cat {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 150px;
    transform-origin: bottom center;
}

@keyframes push-wobble {
    from {
        transform: rotate(-1deg) translateX(-2px);
    }

    to {
        transform: rotate(1deg) translateX(2px);
    }
}

#cup {
    position: absolute;
    bottom: 18%;
    left: 200px;
    /* Initial position */
    width: 80px;
    z-index: 5;
    /* Cup is above arm initially */
    transition: left 0.1s linear, bottom 0.5s ease-in, transform 0.5s ease-in;
}

.no-transition {
    transition: none !important;
}

#person-container {
    position: absolute;
    top: 10vh;
    right: 20px;
    height: 100%;
    z-index: 3;
}

#person {
    width: 100%;
    height: auto;
}

#table-edge {
    position: absolute;
    bottom: 00px;
    left: 0;
    width: 70%;
    height: 20%;
    z-index: 4;
    background-image: url(./image/table.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000b3;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    z-index: 10;
}

.overlay-content {
    background: #333;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px black;
}

.overlay h1 {
    margin-top: 0;
}

.overlay button {
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    border-radius: 30px;
    background-color: #ff6600;
    color: #fff;
}

.hidden {
    display: none;
}