body {
    position: relative;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: auto;
}

ul, ol, li {
    list-style: none;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.top-header {
    padding: 10px;
    background: #171a21;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn {
    border: none;
    background: none;
    outline: none;

    width: 30px;
    height: 30px;

}

.search-btn img {
    display: none;
}

.btn img {
    width: 100%;
    height: 100%;
}

.logo img {
    max-width: 160px;
    width: 100%;
}

.pc-menu {
    background: radial-gradient(107.95% 57.49% at 50% 100%, #18253533 0%, #18253585 5%, #182535d9 20%, #182535 60%, #192330 100%);
    padding: 10px;
}

.pc-menu-main {
    max-width: 100%;
    margin: 0 auto;

    display: flex;
    justify-content: space-around;
}

.pc-type-list {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
}

.pc-type-item {
    font-size: 21px;
    font-weight: bold;
    color: #fff;
}

.pc-search-form {
    display: flex;
    align-items: center;
}

.pc-search-input {
    outline: none;
    border: .2px solid #4cbbfc;
    border-right: none;
    height: 40px;
    width: 80%;
    max-width: 300px;
    background: #aaaaaa;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 0 0 0 20px;
    border-radius: 5px 0 0 5px;
}

.pc-search-button {
    height: 42px;
    width: 42px;
    background: #34a7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    border-radius: 0 5px 5px 0;
}

.pc-search-button img {
    width: 20px;
    height: 20px;
}

.page_main {
    background: #49576f;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    max-width: 1024px;
    margin: 9rem auto 0;
}

.type-title {
    font-size: 28px;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #dfdfdf;
}

.selected-main {
    display: flex;
    gap: 1rem;
}

.select-left, .select-right {
    flex: 5;
    width: 50%;
    display: flex;
    position: relative;
}

.selected-list {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.selected-item {
    position: relative;

    width: 100%;
    height: 100%;
}

.selected-item img {
    height: 100%;
}

.game-img {
    width: 100%;
    aspect-ratio: 4/2.25;
    border-radius: 0 12px 12px 12px;
}

.game-type {
    padding: 2px 5px;
    background: #0a7aff;
    font-size: 12px;
    font-weight: 500;
    position: absolute;
    top: 0;
    left: 0;
    color: #fffbfb;
}

.game-name {
    font-size: 21px;
    width: 100%;
    position: absolute;
    bottom: 0;
    font-weight: bold;
    color: #fff;
    background: #0000005c;
    border-radius: 0 0 12px 12px;
}

.game-name p {
    padding: .5rem 10px;
}

.latest-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.latest-item-1 {
    background: #4192f5;
    color: #fff;

    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

.span-2 {
    grid-row: span 2;
}

.latest-1-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px 12px 0 0;
}

.latest-1-info {
    background: #a1bfe4;
    color: #fff;

    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 6px 15px;
    border-radius: 0 0 12px 12px;
}

.latest-1-type {
    font-size: 14px;
    font-weight: 500;
    color: #efeded;
}

.latest-1-name {
    font-size: 21px;
    font-weight: bold;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.latest-item-2 {
    position: relative;
    display: flex;
}

.grid-4-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.mid-1-item {
    border-radius: 12px;
    width: 100%;
    position: relative;
    display: flex;
}

.mid-1-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 15px;
    transition: all .3s;
}

.mid-1-item:hover .mid-1-img {
    transform: scale(1.05);
}

.mid-1-bg {
    position: absolute;
    height: 100%;
    top: 0;
    width: 100%;
    z-index: 2;

    background: radial-gradient(115% 120% at 0% 0%, transparent, #2880a6);
    transition: opacity 0.3s ease-in-out;
    border-radius: 15px;
}

.mid-1-item:hover .mid-1-bg {
    opacity: 0;
}

.mid-1-title {
    position: absolute;
    bottom: .5rem;
    width: 100%;
    z-index: 20;
}

.mid-1-title p {
    font-size: 21px;
    font-weight: bold;
    color: #fff;
    padding: 0 10px;
    text-align: center;
}


.max-line-1 {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}


.max-line-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.max-line-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}


.mid-2-item {
    background: #999;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.mid-2-item:hover {
    background: #9fe3ff;
}

.mid-2-item:hover .mid-2-title {
    color: #fff;
}

.mid-2-item img {
    border-radius: 12px 12px 0 0;
}

.mid-2-title {
    font-weight: bold;
    font-size: 21px;
    color: #3e3e3e;
}

.mid-2-title p {
    padding: 5px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.bottom-info {
    display: flex;
    gap: 2rem;
}

.bottom-left {
    flex: 7;
    width: 70%;
}

.bottom-right {
    flex: 3;
    width: 30%;
}

.flex-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.bottom-1-item {
    display: flex;
    gap: 1rem;
    background: #999;
    padding: 10px;
    align-items: center;
}

.bottom-1-img {
    flex: 3;
    width: 30%;
    aspect-ratio: 4 / 2.25;
    border-radius: 8px;
}

.bottom-1-info {
    flex: 7;
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bottom-1-title {
    font-size: 21px;
    font-weight: bold;
    color: #fff;
}

.bottom-1-desc {
    font-size: 14px;
    color: #d1d1d1;
}

.bottom-2-item {
    display: flex;
    position: relative;
}

.bottom-2-title {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.bottom-2-title p {
    font-size: 21px;
    color: #fff;
    font-weight: bold;
    padding: .5rem 10px;
    background: #0000005c;
    border-radius: 0 0 10px 10px;
}

.bottom-2-item img {
    border-radius: 10px;
}

.footer {
    background: #171a21;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px 10px;
    margin-top: 2rem;
}

.footer-list {
    display: flex;
    gap: 1.5rem;
    font-weight: bold;
    padding: 0 0 20px;
    color: #fff;
    font-size: 16px;
}

.footer-item a {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.copyright {
    padding-top: 20px;
    font-size: 14px;
    color: #999;
    border-top: 1px solid;
    width: 100%;
    text-align: center;
}


.menu-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    z-index: 100000;
    transition: all .3s;
    left: -100%;
}

.menu-bg {
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 47%);
}

.menu-info {
    width: 70%;
    height: 100%;
    background: #3b3b3b;
    max-width: 500px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100001;
    padding: 2rem 1.5rem;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-close {
    width: 30px;
    height: 30px;
}

.menu-item {
    font-weight: bold;
    color: #b5b5b5;
    font-size: 20px;
}

.banners {
    overflow: hidden;
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 2.25;
}

.banner_dot {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100%;
    display: flex;
    justify-content: end;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: gray;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

.banner_arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
}

.bottom-1-5 {
    bottom: 1.5rem;
}

.banner_arrows img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: #7575735e;
}

.banner {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s;
}

.banner.active {
    opacity: 1;
}

.text-right {
    text-align: right;
}

.search-content {
    position: fixed;
    width: 100%;
    height: 210px;
    top: -250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 100000;
    background: #3b3b3b;
    transition: all .5s;
}

.search-info {
    padding: 20px;
    text-align: center;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    margin: 2rem auto;
}

.search-input {
    height: 40px;
    border-radius: 50px;
    background: #b2b0b0;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 0 50px 0 15px;
    width: 100%;
    border: none;
    outline: none;
}

.search-input-btn {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 15px;

    background: none;
    border: none;
    outline: none;
}

.search-input-btn img {
    width: 100%;
    height: 100%;
}


.scroll-top {
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 50px;
    z-index: 10000;
    right: 20px;
    border-radius: 50px;
    background: #409efb;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border: none;
}

.scroll-top:hover {
    background: #4692ff;
}

.scroll-top img {
    width: 50%;
    height: 50%;
}

.type-game-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.game-guide {
    display: flex;
    gap: 5px;
    color: #8f98a0;
    font-size: 12px;
}

.game-guide a {
    color: #8f98a0;
}

.home-icon {
    width: 15px;
    height: 15px;
}

.game-title {
    font-size: 24px;
    margin: 1rem 0;
    color: #fff;
    font-weight: bold;
}

.game-play {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
}

.game-bg {
    width: 100%;
    aspect-ratio: 4/2.25;
    filter: blur(6px);
}

.game-main {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 120px;
}

.game-icon {
    border-radius: 8px;
    border: 4px solid #fff;
    width: 120px;
    height: 120px;
}

.play-btn {
    border-radius: 5px;
    background: #0b5ed7;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    border: none;
    outline: none;
}

.game-info {
    margin-top: 1.5rem;
}

.description {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #67a5ff;
    color: #fff;
}

.detail-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #c4c1c1;
}

.detail-desc {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desc_btn {
    background: #34a7fa;
    padding: 5px 10px;
    border-radius: 5px;
    width: fit-content;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-top: 1rem;
}

@media screen and (min-width: 768px) {
    .detail-desc {
        -webkit-line-clamp: 3;
    }
}

@media screen and (max-width: 768px) {
    .pc-menu {
        display: none;
    }

    .search-btn img {
        display: block;
    }

    .main-content {
        margin: 5rem 10px 0;
        gap: 1rem;
    }

    .selected-main {
        flex-direction: column;
    }

    .select-left, .select-right {
        width: 100%;
    }

    .latest-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .latest-1-info {
        gap: 0;
        padding: 6px 10px;
    }

    .mb-grid-3, .type-game-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mb-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mid-1-title p, .mid-2-title, .latest-1-name, .game-name {
        font-size: 15px;
    }

    .bottom-info {
        flex-direction: column;
    }

    .bottom-left {
        width: 100%;
    }

    .bottom-right {
        width: 100%;
    }

    .bottom-1-img {
        width: 40%;
    }

    .bottom-1-info {
        width: 60%;
    }

    .bottom-1-item {
        gap: .5rem;
    }
}

@media screen and (min-width: 768px) {
    .mid-1-item:last-child {
        display: none;
    }

    .last-child-flex {
        display: flex !important;
    }
}