main {
    width: var(--all-width);
    margin: 0 auto;
}

main h3 {
    font-size: 33px;
    color: #fff;
    margin-bottom: 20px;
}

main .big-box {
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px;
}

main .list {
    margin-bottom: 15px;
}

.game-box .img-box {
    border-radius: 20px 20px 0 0;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.game-box .img-box::before {
    padding-top: 57%;
}

.game-text {
    background-color: #fff;
    padding: 24px 32px;
    border-radius: 0 0 20px 20px;
    color: #000;
    display: flex;
    flex-direction: column;
}

.game-text span:first-child {
    margin-bottom: 5px;
    font-size: 14px;
}

.game-text span:nth-child(2) {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-text span:nth-child(3) {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 42px;
}

.game-text button {
    position: relative;
}

.game-text button::before {
    content: '';
    position: absolute;
    height: 100%;
    border-radius: 30px;
    width: 100%;
    background-color: rgb(14, 107, 171);
    left: 0;
    bottom: -5px;
    z-index: 1;
}

.game-text button::after {
    content: 'Play Now';
    width: 100%;
    padding: 10px 0;
    background-color: #006AAD;
    color: #fff;
    border-radius: 30px;
    font-size: 15px;
    position: relative;
    border-bottom: 1px solid rgb(77, 157, 206);
    display: block;
    z-index: 2;
    transition: .2s;
}

.game-text button:hover::after {
    transform: translateY(-2px);
}


@media (min-width:800px) {
    .game-box {
        width: calc((100% - 45px)/4);
        margin-right: 15px;
    }

    .game-box:nth-of-type(4n) {
        margin-right: 0;
    }
}

@media (max-width:799px) {
    main {
        padding: 0 10px;
    }

    main h3 {
        font-size: 27px;
    }

    .game-box {
        width: 100%;
    }

    #all {
        display: none;
    }
}