.cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

#search_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    background-color: #fffcf3;
    bottom: 0;
    box-shadow: 0px 2px 12px 4px #5d6b8414, 0px 60px 24px 0px #5d6b8417, 0px 34px 20px 0px #5d6b8417, 0px 15px 15px 0px #5d6b8426, 0px 4px 8px 0px #5d6b842e;
    display: flex;
    flex-direction: column;
    left: 0;
    max-width: 100%;
    padding: 32px 20px 0;
    position: fixed;
    top: 0;
    width: 688px;
    z-index: 100003;
    box-sizing: content-box;

}



.modal-top {
    background: linear-gradient(#fffcf3 80%, #fffcf300 90%);
    height: 120px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}

.modal-search {
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0px 2px 4px 2px #5d6b8414, 0px 8px 3px 0px #5d6b8408, 0px 4px 3px 0px #5d6b8417, 0px 2px 2px 0px #5d6b8426, 0px 0px 1px 0px #5d6b842e;
    display: flex;
    flex-direction: row;
    height: 64px;
    position: relative;
    width: 620px;
    z-index: 2;
}

.modal-search-btn {
    align-items: center;
    border-radius: 8px 0 0 8px;
    border-right: 2px solid #f0f5fc;
    display: flex;
    height: 100%;
    padding: 0 8px 0 8px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 100%;
}

.modal-search-input-box {
    display: flex;
    height: 100%;
    justify-content: space-between;
    width: 100%;
    border-left: 2px solid #f0f5fc;
}

.modal-search-input {
    background: #0000;
    border: none;
    color: #002b50;
    font-family: "Torus", "Noto Sans Arabic", sans-serif;
    font-size: 21px;
    height: 100%;
    margin: 0 0 0 16px;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.modal-search-right-btn {
    align-items: center;
    display: flex;
    height: 100%;
    padding-right: 10px;
    cursor: pointer;
}

.modal-game-container {
    --searchOverlayContentPaddingTop: 96px;
    --searchOverlayContentBottom: 0;
    --searchOverlayContentTranslateY: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 106px 21px 0;
    position: absolute;
    scrollbar-width: none;
    top: 0;
    transform: translateY(0);
    transition: transform .1s ease-out;
    width: 100%;
}

.modal-game-container .category {
    margin: 16px -32px 0;
    position: relative;
    transition: opacity .1s ease-out;
    will-change: opacity;
    z-index: 2;
    height: 110px;
}

.modal-game-container .category nav {
    align-items: center;
    display: flex;
    height: 64px;
    margin: 0 0 -22px;
    /* overflow-x: scroll; */
    padding: 0 32px 0 29px;
    scrollbar-width: none;
    white-space: nowrap;
    flex-wrap: wrap;
}

@media screen and (max-width: 688px) {
    .modal-game-container .category {
        height: 60px;
        overflow: hidden;
        width: 110%;
    }

    .modal-game-container .category nav {

        overflow-x: scroll;
        flex-wrap: nowrap;
    }
}

.modal-game-container .category a {
    -webkit-tap-highlight-color: transparent;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0px 2px 4px 2px #5d6b8414, 0px 8px 3px 0px #5d6b8408, 0px 4px 3px 0px #5d6b8417, 0px 2px 2px 0px #5d6b8426, 0px 0px 1px 0px #5d6b842e;
    color: #002b50;
    display: inline-block;
    font: 700 12px / 22px "Proxima Nova", "Open Sans", "Gill Sans MT", "Gill Sans", "Noto Sans Arabic", Arial, sans-serif;
    margin: 0 10px 10px 0;
    padding: 8px 20px;
    text-transform: uppercase;
    -webkit-user-select: none;
    user-select: none;
}

.modal-game-container .category :after,
.modal-game-container .category :before {
    content: "";
    height: 72px;
    pointer-events: none;
    position: absolute;
    top: 0;
}

.modal-game-container .category :before {
    left: 0;
    width: 20px;
    z-index: 1;
}

.modal-game-container h2 {
    margin: 16px 8px 0;
    color: #000;
    font: 700 24px "Torus",
        "Noto Sans Arabic",
        sans-serif
}

.modal-game-container .container {
    grid-gap: 16px;
    --columns: 3;
    display: grid;
    /* grid-auto-flow: row dense; */
    grid-template-columns: repeat(6, 96px);
    margin: 16px 0 0;
}

#closeModal {
    align-items: center;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0px 2px 12px 4px #5d6b8414, 0px 23px 9px 0px #5d6b8408, 0px 13px 8px 0px #5d6b8417, 0px 6px 6px 0px #5d6b8426, 0px 1px 3px 0px #5d6b842e;
    cursor: pointer;
    display: flex;
    height: 64px;
    justify-content: center;
    transition: border-color .2s ease-out, box-shadow .2s ease-out, transform .2s ease-out;
    width: 64px;
    margin: 0;
    position: absolute;
    right: -32px;
    top: 32px;
    z-index: 2;
}

.mobile_back {
    display: none;
}

.pc_back {
    display: inline-block;
}

@media screen and (max-width: 990px) {
    .modal-game-container {
        padding: 96px 20px 20px;

    }

    .pc_back {
        display: none;
    }

    .mobile_back {
        display: inline-block;
    }

    #search_modal {

        width: 100%;
        z-index: 100003;
        box-sizing: border-box;
    }

    .modal-search {
        width: 100%
    }

    #closeModal {
        display: none;
    }
}

@media screen and (max-width: 688px) {


    .modal-game-container .container {
        grid-template-columns: repeat(3, 96px);
    }
}