.flexbox {
    min-height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.flexbox .flexitem_4 {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}
.flexbox .play_game {
    cursor: pointer;
}
.game .game-category {
    border: 1px solid #E8E8E8;
    padding: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 3px;
    position: relative;
}
.game .game-name {
    font-weight: bold;
    color: #337AB8;
    font-family: Arial;
    font-size: 18px;
    text-align: left;
    text-transform: capitalize;
    cursor: pointer;
}
.thumb-info {
    display: block;
    position: relative;
    text-decoration: none;
    max-width: 100%;
    background-color: #FFF;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
.thumb-info .thumb-info-wrapper {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    overflow: hidden;
    display: block;
    position: relative;
}
.thumb-info img {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
    width: 230px;
    height: 189px;
}
.thumb-info .thumb-info-wrapper:after {
    content: "";
    background: rgba(134, 184, 23, 0.9);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    border-radius: 4px;
    bottom: -4px;
    color: #FFF;
    left: -4px;
    position: absolute;
    right: -4px;
    top: -4px;
    display: block;
    filter: alpha(opacity=0);
    opacity: 0;
    z-index: 1;
}
.table-see-all {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    color: #fff;
    border: 1px solid #fff;
    height: 42px;
    vertical-align: middle;
    text-align: center;
    text-transform: uppercase;
    width: 136px;
    line-height: 41px;
}
.game .title-game, .game .category-game{
    margin-top: 10px;
    margin-bottom: 10px;
    padding-right: 10px;
    padding-left: 10px;
}

.category-style{
    background-color: #5bc0de !important;
    margin-right: 0px;
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    padding: 3px 10px;
    font-weight: 600;
    border-radius: 2px;
    color: #FFF;
    -webkit-transition: 0.2s opacity;
    transition: 0.2s opacity;
    text-transform: capitalize;
}

.category-style:hover{
    text-decoration: none;
    color: #FFF;
}

.note {
    margin-top: 5px;
    font-size: 15px;
    font-style: italic;
}

.alphabet-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center items within the container on the main axis */
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1;
}

.alphabet-letter {
    font-size: 14px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin: 5px; /* Spacing between letters */
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #e9e9e9;
    min-width: 25px; /* Ensure a minimum width for each letter box */
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    cursor: pointer;
}

.alphabet-letter.selected{
    background: #5bc0de;
    color: white;
}

.findGame{
    width: 100%; 
    line-height: 2.1;
    background: #337ab7;
    border-color: #337ab7;
}

.game-category .badge-category{
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    text-align: center;
    color: #FFF;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 10px;
    -webkit-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    /* transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg); */
}

.game-category .badge-category.bgCategorynes{   
    background-color: #fdb714;
}
.game-category .badge-category.bgCategorysnes{   
    background-color: #3c59f3;
}
.game-category .badge-category.bgCategorygba{   
    background-color: #2ca609;
}
.game-category .badge-category.bgCategorygbc{   
    background-color: #09a2a6;
}
.game-category .badge-category.bgCategoryarcade{   
    background-color: #a65409;
}

#listGamePopular{
    padding: 15px; 
    border: 1px solid #337ab7;
    margin-left: 0px; 
    margin-right: 0px;
}

#listGamePopular a{
    color: #337ab7;
    margin-right: 10px;
    line-height: 1.9;
}

.itemGamePopular{
    display: inline-block;
    font-size: 16px;
    margin-bottom: 5px;
}

@media all and (min-width: 320px) and (max-width: 400px) {
    .thumb-info img {
        height: 200px;
    }
}

@media all and (min-width: 320px) {
    .flexbox {
        justify-content: center;
    }

    .flexbox .flexitem_4 {
        max-width: 280px;
        width: 260px;
    }
}

/* Media query for small devices (e.g., less than 768px wide) */
@media (max-width: 767px) {
    .alphabet-container {
        flex-direction: row; /* Default for flex-wrap, explicitly stated */
        justify-content: center; /* Distribute items evenly with space around them */
        padding: 5px;
    }

    .alphabet-letter {
        font-size: 14px;
        padding: 2px 5px;
        margin: 5px;
        min-width: 25px;
    }
}

/* @media all and (min-width: 992px) {
    .flexbox {
        justify-content: center;
    }

    .flexbox .flexitem_4 {
        max-width: 260px;
    }
} */