#word-groups-game {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

#word-groups-game .game-header {
    text-align: center;
    margin-bottom: 30px;
}


#word-groups-game .game-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}
#word-groups-game .word_grid_container{
    display: flex;
    width: 100%;
    gap: 10px;
}
#word-groups-game .words-grid {
    display: grid;
    /*grid-template-columns: repeat(4, 1fr);*/
    gap: 10px;
    margin-bottom: 20px;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, 1fr);
}

#word-groups-game .word-button {
    background: #4a5568;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    width: 155px;
}

/*#word-groups-game .word-button:hover {
    background: #2d3748;
}*/

#word-groups-game .word-button.selected {
    background: #3182ce;
    transform: translateY(-2px);
}

#word-groups-game .word-button.correct {
    background: #38a169;
}



@keyframes stack_Game {
    0%, 20%, 40%, 60%, 80% { transform: translateX(-2px); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(2px); }
}

#word-groups-game .found-groups {
    margin-bottom: 20px;
}

#word-groups-game .found-group {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    text-align: center;
}

#word-groups-game .found-group.difficulty-1 { border-color: #f6e05e; background: #fffbeb; }
#word-groups-game .found-group.difficulty-2 { border-color: #68d391; background: #f0fff4; }
#word-groups-game .found-group.difficulty-3 { border-color: #63b3ed; background: #ebf8ff; }
#word-groups-game .found-group.difficulty-4 { border-color: #b794f6; background: #faf5ff; }

#word-groups-game .found-group h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
}

#word-groups-game .found-group .words {
    font-size: 14px;
    color: #666;
}

#word-groups-game .game-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

#word-groups-game .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#word-groups-game .btn:disabled {
    /*opacity: 0.5;*/
    cursor: not-allowed;
}

#word-groups-game .btn-primary {
    background: #3182ce;
    color: white;
}

/*#word-groups-game .btn-primary:hover:not(:disabled) {
    background: #2c5282;
}*/

#word-groups-game .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

/*#word-groups-game .btn-secondary:hover:not(:disabled) {
    background: #cbd5e0;
}*/

#word-groups-game .game-message {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
}

#word-groups-game .game-message.success {
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

#word-groups-game .game-message.error {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #742a2a;
}

#word-groups-game .game-message.warning {
    background: #fef5e7;
    border: 1px solid #f6e05e;
    color: #744210;
}

/*NEW CSS*/
#word-groups-game .game-header .stack_game_heading{
        color: #000;
    text-align: center;
    font-family: Oswald;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
    margin-bottom: 30px;
}
#word-groups-game .game-info{
        color: #000;
    text-align: center;
    font-family: Oswald;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

#word-groups-game .word-button{
    background: url(/wp-content/themes/vinyl-mapper/images/games/empty-stack-box-bg.svg);
    background-repeat: no-repeat;
    background-position: center;
    min-height: 140px;
    padding: 0px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 155px;
    margin: auto;
    padding: 30px 20px 15px 20px;
    color: #000;
    text-align: center;
    font-family: Oswald;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    text-decoration: none;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}
#word-groups-game .stack_game_button{
    color: #FFF;
    text-align: center;
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    background-color: #000;
    border-radius: 0;
    padding: 10px 30px;
    width: 32%;
    text-decoration: none;
}
.stack_single_game_page .stack_game_container{
    display: flex;
    gap:20px;
}
.stack_single_game_page .stack_game_container .stack_game_middle{
    width: 70%;
}
.stack_single_game_page .stack_game_container .game-right-ads{
    width: 30%;
}
#word-groups-game .word-button.incorrect {
    background: #e53e3e;
    animation: stack_Game 0.5s;
    color: #fff
}
#word-groups-game .word-button.selected{
    background: url(/wp-content/themes/vinyl-mapper/images/games/selected-stack-box-bg.svg);
    color: #fff;
}
#word-groups-game .word-button.correct_selected.green{
    background: url(/wp-content/themes/vinyl-mapper/images/games/selected-green-stack-bg.svg);
    color: #fff;
}
#word-groups-game .word-button.correct_selected.orange{
    background: url(/wp-content/themes/vinyl-mapper/images/games/selected-orange-stack-bg.svg);
    color: #fff;
}
#word-groups-game .word-button.correct_selected.blue{
    background: url(/wp-content/themes/vinyl-mapper/images/games/selected-blue-stack-bg.svg);
    color: #fff;
}
#word-groups-game .word-button.correct_selected.yellow{
    background: url(/wp-content/themes/vinyl-mapper/images/games/selected-yellow-stack-bg.svg);
    color: #fff;
}

.stack_single_game_page .words-grid-titles{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.stack_single_game_page .words-grid-titles .title{
        color: #000;
    text-align: center;
    font-family: Oswald;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
    padding: 0PX 10px
}
@media only screen and (min-width:1200px) and (max-width:1400px) {
    #word-groups-game .word-button{
        width: 130px;
        padding: 30px 15px 15px 15px;
        font-size: 18px;
    }
}
@media (max-width: 600px) {
    #word-groups-game .words-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #word-groups-game .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    #word-groups-game .btn {
        width: 200px;
    }
}