@font-face {
    font-family: "alifont";
    font-weight: 400;
    src: url("./font/AlimamaDongFangDaKai-Regular.woff2") format("woff2"),
        url("./font/AlimamaDongFangDaKai-Regular.woff") format("woff");
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'alifont';
}

.row {
    margin: 0;
}

body,
html {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #fff;
    background-size: cover;
}

.logo-text {
    color: #ffffff;
    text-shadow: 2px -2px #ff505e;
}

.header,
.footer {
    background: #c0f1cf;
    color: #61c290;
}

.webtitle {
    color: #61c290;
}

.header {
    /* box-shadow: 0px 5px 10px #777777; */
    box-shadow: 0px 1px 1px rgb(248, 248, 248);
}

.content {
    background: #c5f1e3a6;
}

.sidebar,
.sidebar.active {
    background: #c0f1cf;
}

.sidebar a {
    color: #61c290;
}

.banner-p,
h1 {
    border-bottom: 3px solid #61c290;
    color: #ffffff;
    text-shadow: 3px 3px #61c290;

}
xxx
/* .img-container1{
    box-shadow: 2px 2px 4px #8b8b8b; 
} */
.img-container1 img {
    border: 8px solid #ffffed;
    border-radius: 50% !important;
}

.play-btn,
.play-btn2,
.game-des,
.moregame-category {
    background: #c0f1cf;
    color: #ffffff;
}

.play-btn {
    background: #61c290;
    color: #fff;
}

.play-btn:hover {
    background: #c0f1cf;
    color: #fff;
}

.game-recommendation1 {
    background: #c0f1cf;
    box-shadow: 0 0 10px rgba(0, 0, 0);
    color: #fff;
}

.tag-category {
    color: #61c290;
}

/* .category-box{
   background: linear-gradient(45deg, #ff7d7d, #ffa10e); 
  
} */
.category-box .categorybox {
    color: #61c290;
    word-break: break-all;
    font-family: 'alifont';
}
.category-link{
    background: rgb(255 255 255 / 80%);
}
.c-gametitle{
    border: 2px solid #61c290;
}
.c-gametitle b{
    color: #61c290;
}
.img-container2 img {
    border-width: 20px;
}

.game-des:first-letter {
    font-size: 1.5rem;
    font-weight: bold;
}

footer a {
    color: #678575 !important;
}


.play-btn {
    border: 1px solid #fff;
    box-shadow: 2px 2px 5px #979797;
}


.des {
    color: #000;
}

.title {
    color: #ffffff;
    text-shadow: 2px 2px #ffb3b3;
}


.moregame-category {
    text-align: center;
    width: 100%;
    margin: 1rem 3rem .5rem;
    border-radius: 5px;
    padding: 5px;
    font-weight: bold;
}

.moregame-a {
    color: #fff;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    max-width: 1000px;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    font-size: 24px;
}

.hamburger-menu {
    font-size: 24px;
    cursor: pointer;
}

.sidebar {
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: 100%;
    padding: 20px;
    transition: left 0.3s;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.sidebar a {
    text-decoration: none;
    display: block;
    padding: 10px 0;
    font-weight: bold;
}

.content {
    padding: 20px;
    max-width: 1000px;
    margin: 60px auto !important;
    background-size: cover;
    min-height: 100vh;
}

.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    border-radius: 10px;
}

.carousel-item {
    min-width: 100%;
    transition: opacity 0.5s ease;
    height: 35vh;
}

.carousel-item:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.carousel-inner img {
    width: 100%;
    height: 35vh;
    object-fit: cover;
    border-radius: 10px;
}

.game-card {
    margin: .5rem 0;
}

.game-card img {
    width: 100%;
    border-radius: 10px;
}

.logo-text {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
}

.game-detail-container {
    position: relative;
}

.game-recommendation1 {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    background-size: cover;
    margin-bottom: 20px;

}

.game-recommendation {
    display: flex;
}

.game-recommendation1 img {
    width: 100%;
    border-radius: 10px;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-position: left;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: .5rem 0;
    text-align: center;
    max-width: 1000px;
    left: 50%;
    transform: translateX(-50%);
}

.img-container img {
    width: 80px;
    height: 80px;
}

.img-container1,
.img-container3 {
    width: 100%;
    padding-top: 100%;
    position: relative;
    border-radius: 20px;
    text-align: center;
}

.img-container1 {
    border-radius: 50%;
}

.img-container2 {
    width: 100%;
    /*     padding-top: 100%; */
    position: relative;
    border-radius: 20px;
    text-align: center;
}

.img-container1 img,
.img-container3 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.img-container2 {
    text-align: left;
    flex: 1;
}

.img-container2 img {
    object-fit: cover;
    border-radius: 50%;

}

footer p {
    margin-bottom: 0;
}


.tag {
    padding: .25rem 0;
    border-radius: 8px;
    font-size: 1rem;
    text-transform: capitalize;
    font-weight: bold;
    display: inline-block;
    width: 100%;
    color: #000;
}

.tag-category {
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: underline;

}

.play-btn {
    padding: .5rem .75rem;
    border-radius: 8px;
    font-weight: bolder;

    font-size: .9rem;
}

.play-btn2 {
    padding: .75rem 1rem;
    margin-top: 1rem;
    text-align: center;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;

}

#game-detail {
    margin-bottom: 60px;
}


.banner-p {
    margin: 1rem 0;
    font-size: 1.5rem;
    text-align: left;
    font-family: fantasy;
    text-transform: capitalize;

}

h1 {
    margin-top: 10px;
    font-size: 2rem;
    font-weight: bold;
    padding-bottom: 1rem;
    text-align: center;
    border: none;
}

#game-cards2 {
    margin-bottom: 30px;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1;
}

.carousel-control-prev {
    left: 10px;
    background: none;
}

.carousel-control-next {
    right: 10px;
    background: none;
}

#game-list {
    margin-bottom: 60px;
}


.moregame-list:last-child {
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .content {
        margin-left: 20px;
        margin-right: 20px;
    }

    .sidebar {
        width: 200px;
    }

    .sidebar.active {
        left: 0;
    }

    .grid-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .grid-container2{
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.game-card {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
}



.play-btn-container {
    margin-left: 10px;
}


.des {
    font-weight: bold;
    font-size: 1.2rem;
}

@media screen and (min-width:1200px) {
    .carousel-item {
        height: 45vh;
    }
}

.scroll-container {
    width: 100%;
    overflow-x: scroll;
    /* Enable horizontal scrolling */
    overflow-y: hidden;
    /* Disable vertical scrolling */
    white-space: nowrap;
    /* Prevent line breaks in the container */
    -webkit-overflow-scrolling: touch;
    /* Enable smooth scrolling on iOS */
}

.scroll-content {
    display: inline-flex;
    /* Align items in a row */
    padding: 10px 0;
    width: 100%;
    justify-content: space-evenly;
}


/* Hide scrollbar for Webkit browsers */
.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Firefox */
.scroll-container {
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
}

.img-container1 .hot {
    width: 40px;
    height: 40px;
    box-shadow: none;
    left: 10px;
    top: 5px;
    border: none;
}

.title {
    display: -webkit-inline-box !important;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-weight: bold;
}

.game-des {
    margin-top: 10px;
    text-align: left;
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    line-height: 1.2;
    padding: 1rem;
    border-radius: 0 20px 20px;
}

.scroll-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    position: relative;
}

.container {
    position: relative;
    width: 100%;
}

.scroll-container:active {
    cursor: grabbing;
}

.square {
    display: inline-block;
    scroll-snap-align: start;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 10px;
}

.arrow-left {
    left: -20px;
}

.arrow-right {
    right: -20px;
}

.star5 {
    height: 30% !important;
    border: none !important;
    box-shadow: none !important;
    width: 80% !important;
    left: 50% !important;
    transform: translate(-50%);
    top: auto !important;
    bottom: -17px;
}

.rw_footer_sticky {
    position: fixed;
    left: 0;
    bottom: 60px;
    width: 100%;
    text-align: center;
    z-index: 999999;
    background: #fff;
}

.webtitle {
    display: inline-flex;
    margin-left: 10px;
    vertical-align: bottom;
    height: 20px;
    font-size: 1.4rem;
    font-weight: bold;

}

#category-containers,#like-container {
    margin: 0 0 60px 0;
}

.category-box {
    padding-top: 0;
    height: 100%;
}

.categorybox {
    text-transform: capitalize;
    font-size: 2rem;
    font-weight: normal
}

.game-description {
    display: -webkit-inline-box;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.c-gametitle {
    flex: 1;
    align-content: space-evenly;
    border-top: 0;
    border-radius: 50%;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.c-gametitle b {
    display: -webkit-inline-box;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media screen and (min-width:1000px) {

    .header,
    .footer,
    .content {
        max-width: none;
    }

    .game-card {
        width: 10%;
        flex: none;
    }

    .category-big {
        width: 20%;
    }

    .game-description {
        -webkit-line-clamp: 4;
        font-size: 1.4rem;
    }

    .c-gametitle {
        font-size: 2.5rem;
    }

    .img-container3 {
        padding-top: inherit
    }

    .img-container3 img {
        position: relative;
        width: 50%;
    }

    h1 {
        font-size: 3rem;
    }

    .categorybox {
        font-size: 2.5rem;
    }
}

@media screen and (min-width:768px) {
    .categorybox {
        font-size: 2rem;
    }
}

.grid-container,.grid-container2 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    /* 4列的网格 */
    grid-gap: 5px;
    /* 网格间距 */
    width: 100%;
    min-height: 100vh;
}
.grid-container2 {
    min-height: 20vh;
}
.grid-container2 .img-container1 img{

}
.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: bold;
}

.big {
    grid-column: span 2;
    /* 占用2列 */
    grid-row: span 2;
    /* 占用2行 */

}

.category-link {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
}