#game-container {
    position: relative;
    width: 100%;
    height: 90vh;
    margin-bottom: 10px;
    background-color: #0f0f0f;
    background-image: url("/static/imgs/game/word-background-b3ed533c26d37b3b270275829a8faf92.png");
    background-repeat: repeat;
    /* background-size: cover; */
    background-size: 100% 300%;
    /* 调整为元素高度的4倍（或更多，取决于您想要的速度） */
    animation: moveBackground 1000s linear infinite;
    /* 持续时间设置为足够长，以产生平滑的视觉效果 */
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 -600%;
        /* 确保这个值小于background-size的高度，但足够大以使背景色完全移出视野 */
    }
}

.scroll-container {
    animation: scroll 2000s linear infinite;
}

#start-container {
    bottom: -35%;
    display: none;
}

@keyframes scroll {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

#game-container:focus {
    outline: none;
}

#role-start {
    position: absolute;
    left: 45%;
    top: 45%;
}

.player, .player-left, .play-right {
    position: relative;
    width: 120px;
    height: 90px;
    font-size: 34px;
    display: inline-flex;
    background-image: url(/static/imgs/game/word-jump-right-025200667a2ef0e2baec46d73481b301.png);
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 1s ease-out, opacity 1s ease-out;
}


#game-title {
    position: absolute;
    width: 400px;
    font-size: 42px;
    font-weight: 600;
    left: 44%;
    top: 20%;
    color: #144a00;
}

#game-title img {
    width: 150px;
}

#game-over {
    position: absolute;
    width: 200px;
    font-size: 32px;
    left: 42%;
    top: 80%;
}

.row-word {
    overflow: hidden;
    min-height: 200px;
}

.word-group {

}

.word-item {
    font-weight: 500;
    line-height: 60px;
    color: rgb(127, 133, 150);
}

.word-text {
    font-weight: 500;
    font-size: 22px;
    line-height: 60px;
    color: rgb(255, 255, 255);
    display: inline;
}

.word-text-active {
    background: rgba(249, 250, 252, 0.2);
    color: rgb(249, 250, 252);
    box-shadow: rgb(216, 88, 134) 0px -4px 0px inset;
}

.word-text-pass {
    background: rgba(48, 178, 140, 0.2);
    color: rgb(48, 178, 140);
}

.group {
    height: 200px;
    width: 30%;
    text-align: center;
    margin: 50px;
}

.group-text {
    color: white;
    font-size: 22px;
}

.group-img {
    background-image: url("/static/imgs/game/word-step-4383ab22e37c57f3b10b032777e4ac01.png");
    background-repeat: no-repeat;
    height: 80px;
}

.game-fail {
    text-align: center;
    color: red;
}

.game-success {
    text-align: center;
    color: green;
}

#game-over-message {
    animation: blink 1s linear infinite;
    font-size: 22px;
    font-weight: 600;
}

.score {
    text-align: center;
    margin-top: 20px;
}

@keyframes fall {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}