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

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

main h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

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

.game-box {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(16, 20, 30, .05), 0 2px 2px rgba(16, 20, 30, .1), 0 0 2px rgba(16, 20, 30, .05);
}

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

.game-box .game-text {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    color: #40434b;
    font-size: 16px;
}

.game-text span {
    width: 100%;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 40px;
}

.game-text i,
.all-game i {
    color: #183dff;
    font-weight: 700;
}

.all-game {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    column-gap: 16px;
    box-shadow: 0 1px 4px rgba(16, 20, 30, .05), 0 2px 2px rgba(16, 20, 30, .1), 0 0 2px rgba(16, 20, 30, .05);
}

.all-game .img-box {
    width: 28%;
    max-width: 104px;
    border-radius: 10px;
    overflow: hidden;
    transition: .2s;
    filter: drop-shadow(6px 0px 12px rgba(16, 20, 30, 0.05)) drop-shadow(8px 0px 8px rgba(16, 20, 30, 0.1)) drop-shadow(0px 0px 8px rgba(16, 20, 30, 0.05));
}

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

.all-game:hover .img-box {
    border: 2px solid #183dff;
    transform: scale(.88);
    box-shadow: 0 2px 6px 0 #10141e0d;
}

.all-game .all-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    color: #40434b;
    font-size: 16px;
}

.all-game .all-text span {
    font-size: 18px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moreBtn {
    display: block;
    margin: 20px auto;
    background-color: #fff;
    color: #183dff;
    border: 1px solid #183dff;
    padding: 10px 20px;
    font-size: 18px;
    transition: .3s;
}

.moreBtn:hover {
    background-color: #183dff;
    color: #fff;
}

.moreBtn:disabled {
    background-color: #e6e6e6;
    color: #505050;
    border: 1px solid #505050;
    cursor: not-allowed;
}

.loading-message {
    position: fixed;
    width: 300px;
    height: 50px;
    top: 5%;
    right: 0%;
    transform: translateX(100%);
    z-index: 9999;
    padding: 10px;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: loading 3s ease-in-out infinite;
    animation-iteration-count: 1;
}

.typeTitle {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 20px;
}

.typeTitle h2 {
    margin: 0;
}

.typeTitle h4 {
    color: #00000085;
}

@media screen and (min-width:770px) {
    .game-box {
        width: calc((100% - 80px)/5);
        margin-right: 20px;
    }

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

    .all-game {
        width: calc((100% - 40px)/3);
        margin-right: 20px;
    }

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

@media screen and (max-width:769px) {
    .game-box {
        width: calc((100% - 8px)/2);
        margin-right: 8px;
    }

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

    .game-box:nth-child(5) {
        display: none;
    }

    .all-game {
        width: 100%;
    }

    .typeTitle {
        flex-direction: column;
        gap: 10px;
        align-items: start;
    }
}