* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Darumadrop One';
    src: url('../font/DarumadropOne-Regular.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: __pbsKidsHeadlineBold_87943a;
    src: url('../font/c46a59d7be15970a-s.p.woff') format("woff");
    font-display: swap;
    font-weight: 100;
    font-style: normal
}

body {
    font-family: '__pbsKidsHeadlineBold_87943a', sans-serif;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 0 15px;
    width: 100%;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x))
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y)
}

*,
::after,
::before {
    box-sizing: border-box;
}

.justify-content-center {
    justify-content: center;
}

a {
    text-decoration: none;
    font-family: '__pbsKidsHeadlineBold_87943a', sans-serif;
}

h2 {
    color: #000;
    font-weight: 600;
    margin: 0;
    font-family: '__pbsKidsHeadlineBold_87943a', sans-serif;
}

p {
    font-family: '__pbsKidsHeadlineBold_87943a', sans-serif;
}

/* a h2:hover {
    color: #491899 !important;
    text-decoration: none;
} */

#copy-message {
    position: fixed;
    z-index: 999;
    bottom: 10%;
    width: 60px;
    height: 30px;
    left: 50%;
    transform: translate(-50%, 0);
    background: #fff;
    border: 1px solid #E6E6E6;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 30px;
    border-radius: 20px;
}

.t_1l {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.t_12 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.t_13 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hometop {
    position: relative;
    overflow: hidden;
    /* background-color: #d3338c; */
    background-image: url(../images/hometop-bg.avif);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.hometop .masthead-content {
    height: 270px;
    position: relative;
    margin: 50px auto 30px;
}

.hometop .masthead-content .inner {
    width: 100%;
    height: 100%;
}

.hometop .masthead-content .inner .img {
    width: 40%;
    aspect-ratio: 1/0.7;
    position: absolute;
    transition: 0.3s;
    object-fit: cover;
}

.hometop .masthead-content .inner .img img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 6px solid #fff;
}

.hometop .masthead-content .arrow {
    font-size: 32px;
}

.hometop .masthead-content .arrow i {
    position: absolute;
    color: #fff;
    z-index: 9999;
    cursor: pointer;
    top: 84px;
}

.hometop .masthead-content .arrow .left {
    left: 0;
}

.hometop .masthead-content .arrow .right {
    left: 780px;
}

.hometop .masthead-content .button {
    width: max-content;
    height: auto;
    position: absolute;
    z-index: 9999;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, .6);
    border-radius: 32px;
}

.hometop .masthead-content .button p {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    float: left;
    margin: 0 5px;
    cursor: pointer;
    border: 1px solid #fff;
    background-color: transparent;
}

.hometop .masthead-content .button p:first-child {
    background-color: #fff;
}

.hometop .masthead-content #last {
    transform: translateX(0);
    z-index: 9;
    opacity: 1;
}

.hometop .masthead-content #first {
    transform: translateX(200px) scale(1.3);
    z-index: 99;
    opacity: 1;
}

.hometop .masthead-content #second {
    transform: translateX(420px);
    z-index: 9;
    opacity: 1;
}

.hometop .masthead-content #left {
    transform: translateX(-100px);
    z-index: 1;
    opacity: 0;
}

.hometop .masthead-content #right {
    transform: translateX(200px);
    z-index: 1;
    opacity: 0;
}

.hometop-main {
    margin-top: 40px;
}

.hometop-main .flex {
    display: flex;
    align-items: center;
}

.hometop-main .masthead-content {
    width: 70%;
}

.hometop-main .masthead-img {
    width: 30%;
}

.hometop-main .masthead-img img {
    width: 100%;
}

.game-1 {
    padding: 20px 0;
}

.game-1 .carousel {
    position: relative;
    width: 100%;
    margin: auto;
    max-width: 1400px;
    overflow: hidden;
    border-radius: 10px;
}

.game-1 .carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.game-1 .carousel-item {
    flex: 0 0 calc(100% / 6);
    /* 每个item占1/6宽度 */
    box-sizing: border-box;
    padding: 10px;
}

.game-1 .carousel-item img {
    width: 100%;
    aspect-ratio: 1/0.6;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.game-1 .carousel-item:hover {
    background-color: #a220df;
    border-radius: 10px;
}

.game-1 .carousel-control-prev,
.game-1 .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #e4276a;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 25px;
    border-radius: 10px;
}

.game-1 .carousel-control-prev {
    left: 10px;
}

.game-1 .carousel-control-next {
    right: 10px;
}


.gamemain {
    background-color: #2ebfe9;
    padding: 20px 0;
}

.heading {
    font-size: 30px;
    color: #fff;
    padding-left: 10px;
}

.game-2 {
    background-image: url(../images/gamebg-2.svg);
    background-position: top;
    background-size: 200px;
    background-repeat: repeat;
    border-radius: 20px;
    padding: 20px 10px;
    margin-bottom: 20px;
}

.game-2 .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 10px;
}

.game-2 .grid .item {
    grid-column: span 1;
    grid-row: span 1;
    padding: 10px;
}

.game-2 .grid .item img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
aspect-ratio: 1 / 0.6;
}

.game-2 .grid .item:nth-child(2) {
    grid-column: 2/4;
    grid-row: span 2;
}

.game-2 .grid .item:hover {
    background-color: #fff;
    border-radius: 20px;
}

.game-3 {
    background-image: url(../images/gamebg-3.svg);
    background-position: top;
    background-size: 200px;
    background-repeat: repeat;
    border-radius: 20px;
    padding: 20px 10px;
    margin-bottom: 20px;
}

.game-3 .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 10px;
}

.game-3 .grid .item {
    grid-column: span 1;
    grid-row: span 1;
    padding: 10px;
}

.game-3 .grid .item img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
aspect-ratio: 1 / 0.6;
}

.game-3 .grid .item:nth-child(1) {
    grid-column: 1/3;
    grid-row: span 2;
}

.game-3 .grid .item:nth-child(8) {
    grid-column: 3/5;
    grid-row: span 2;
}

.game-3 .grid .item:hover {
    background-color: #2ae8d1;
    border-radius: 20px;
}

.game-4 {
    background-image: url(../images/gamebg-4.jpg);
    background-position: top;
    background-size: 200px;
    background-repeat: repeat;
    border-radius: 20px;
    padding: 20px 10px;
    /* background-color: #f7e03b; */
    margin-bottom: 20px;
}

.game-4 .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 10px;
}

.game-4 .grid .item {
    grid-column: span 1;
    grid-row: span 1;
    padding: 10px;
}

.game-4 .grid .item img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
aspect-ratio: 1 / 0.6;
}

.game-4 .grid .item:hover {
    background-color: #bc005a;
    border-radius: 20px;
}

.game-4 .heading {
    color: #000;
}

.category-list ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px auto;
    justify-content: center;
}

.category-list ul li {
    padding: 20px;
    background-color: #f7e03b;
    border-radius: 20px;
    transition: 0.5s all;
}

.category-list ul li:hover {
    transform: scale(1.2);
}

.category-list ul li a {
    font-family: '__pbsKidsHeadlineBold_87943a', sans-serif;
    color: #e4276a;
    font-size: 20px;
}

.dt {
   /* background: #ffa7c6;*/
}

.dt-main {
    padding: 20px;
    margin-bottom: 20px;
    /* background-image: url(../images/dt-bg.png);
    background-position: top;
    background-size: 400px;
    background-repeat: repeat; */
    border: 2px solid #fff;
    border-radius: 20px;
background: #ffa7c6;
}

.dt-main .title {
    color: #fff;
    font-size: 30px;
    font-family: '__pbsKidsHeadlineBold_87943a', sans-serif;
    margin-bottom: 20px;
}


.dt .text {
    display: flex;
    padding: 30px 40px;
    margin-bottom: 20px;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    border-radius: 24px;
    border: 2px solid #ff8bb4;
    background-color: #ff8bb4;
    /* background: linear-gradient(96deg, #BEFDFF 1.58%, #D3FFE0 100%); */
    box-shadow: 0px -12px 8px 0px #ffffff85 inset, 0px 12px 12px 0px rgba(255, 255, 255, 0.50) inset;
    background-image: url(../images/dt-bg.png);
    background-position: top;
    background-size: 400px;
    background-repeat: repeat;
}

.dt .text img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

.dt .text p {
    color: #fff;
    font-family: '__pbsKidsHeadlineBold_87943a', sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 33px;
    /* 150% */
    flex: 1 0 0;
    max-height: 200px;
    overflow-y: auto;
}

.dt .text p::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    /* background-color: #FFFDE5; */
}

.dt .text p::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #fff;
}



.play-game {
    height: 658px;
    border-radius: 24px;
    border: 1px solid #fff;
    position: relative;
    box-shadow: 0px 0px 14.611px 0px #fff, 0px -3.778px 3.778px 0px #fff inset, 0px 3.778px 3.778px 0px #FFF inset;
}

.play-game .top {
    height: calc(100% - 100px);
    border-radius: 23px 23px 0 0;
}

.play-game .top .top__shading {
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    height: calc(100% - 100px);
    border-radius: 23px 23px 0 0;
}

#gameIframe {
    border-radius: 23px 23px 0 0;
    position: relative;
}

.play-game .top .bg {
    height: 100%;
    border-radius: 23px 23px 0 0;
    position: absolute;
    z-index: -1;
    background: #707070;
}

.play-game .top button {
    cursor: pointer;
    width: max-content;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 40px;
    border: none;
    border-radius: 100px;
    background: #FFFDE5;
    z-index: 99;
    box-shadow: 0px 0px 25px 0px #fff, 0px -4px 4px 0px #FFF7A1 inset, 0px 4px 4px 0px #FFF inset;
}

.play-game .top button .start {
    width: 40px;
    height: 40px;
    vertical-align: bottom;
    margin-left: 32px;
}

.play-game .top button span {
    color: #ff8bb4;
    font-family: "__pbsKidsHeadlineBold_87943a", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    line-height: 40px;
}

.play-game .bottom {
    height: 100px;
    border-radius: 0 0 23px 23px;
    background: #ff8bb4;
    background-image: url(../images/dt-bg.png);
    background-position: top;
    background-size: 400px;
    background-repeat: repeat;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

.play-game .bottom .bottom-img {
    border-radius: 8px;
    width: 64px;
    height: 64px;
}

.play-game .bottom p {
    color: #FFF;
    font-family: "__pbsKidsHeadlineBold_87943a", sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    padding-left: 38px;
}

.play-game button {
    border: none;
    border-radius: 100px;
    background: #FFFDE5;
    box-shadow: 0px -4px 4px 0px #FFF7A1 inset, 0px 4px 4px 0px #FFF inset;
    padding: 8px 20px;
}

.play-game button img {
    width: 30px;
}

.play-game .botton-love {
    margin-left: auto;
    background-image: url(../images/love.svg);
    background-repeat: no-repeat;
    background-position: 7px;
    width: 105px;
    height: 50px;
    cursor: pointer;
}

.play-game .botton-love.active {
    background-image: url(../images/love-active.svg);
    background-repeat: no-repeat;
    background-position: 7px;
    width: 105px;
    height: 50px;
    cursor: pointer;
}

.play-game .botton-love span {
    color: #00A7A7;
    font-family: "__pbsKidsHeadlineBold_87943a", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    padding-left: 22px;
}

.play-game .botton-full {
    margin-left: 20px;
    width: 65px;
    height: 50px;
    background-image: url(../images/full.svg);
    background-repeat: no-repeat;
    background-position: 50%;
    cursor: pointer;
    background-size: 30px;
}

@media (max-width:992px) {
    .hometop .masthead-content #first {
        transform: translateX(70%) scale(1.3);
        z-index: 99;
        opacity: 1;
    }

    .hometop .masthead-content #second {
        transform: translateX(150%);
        z-index: 9;
        opacity: 1;
    }

    .hometop .masthead-content {
        height: 250px;
    }

    .hometop-main {
        margin-top: 20px;
    }


}

@media (max-width:768px) {
    .navbar {
        padding: 10px 15px !important;
    }

    .hometop-main {
        margin-top: 10px;
    }

    .hometop .masthead-content {
        height: 200px;
    }

    .game-1 .carousel-item {
        padding: 5px;
    }

    .game-1 {
        padding: 15px 0;
    }

    .game-2,
    .game-4,
    .game-3 {
        padding: 10px 10px;
    }

    .game-2 .grid .item,
    .game-3 .grid .item,
    .game-4 .grid .item {
        padding: 5px;
    }

    .game-2 .grid,
    .game-3 .grid,
    .game-4 .grid {
        margin-top: 5px;
    }

    .game-1 .carousel-item {
        flex: 0 0 calc(100% / 4);
    }

    .game-2 .grid,
    .game-3 .grid,
    .game-4 .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-3 .grid .item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .game-3 .grid .item:nth-child(8) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .game-3 .grid .item:nth-child(10) {
        grid-column: span 2;
        grid-row: span 1;
    }

}

@media (max-width:600px) {
    .logo a {
        font-size: 22px !important;
        padding: 5px 20px 15px !important;
    }

    .nav-links {
        gap: 10px !important;
    }

    .nav-links .menu-btn,
    .nav-links .search-btn {
        padding: 5px 10px !important;
    }

    .hometop .masthead-content {
        height: 160px;
    }

    .hometop .masthead-content .button p {
        width: 10px;
        height: 10px;
    }
}

@media (max-width:550px) {
    .hometop-main .masthead-img {
        display: none;
    }

    .hometop .masthead-content {
        width: 100%;
        height: 190px;
        margin: 30px auto 10px;
    }

    .dt-main {
        padding: 15px;
    }

    .dt-main .title {
        font-size: 22px;
    }

    .dt .text {
        padding: 15px;
        gap: 12px;
    }

    .dt .text p {
        font-size: 16px;
        line-height: 22px;
        font-weight: normal;
        max-height: 155px;
    }

    .play .container {
        padding: 0
    }

    .play-game .bottom p {
        font-size: 16px;
        padding-left: 20px;
    }

    .play-game .botton-full {
        width: 40px;
        height: 40px;
        background-size: 25px;
    }

    .play-game .bottom {
        height: 70px;
        padding: 0 10px;
    }

    .play-game {
        height: 520px;
    }

    .play-game .top,
    .play-game .top .top__shading {
        height: calc(100% - 70px);
    }
    .play-game .top button span{
        font-size: 20px;
    }
    .play-game .top button{
        padding: 10px 30px;
    }
}

@media (max-width:500px) {
    .hometop .masthead-content {
        height: 180px;
    }

    .game-1 .carousel-item {
        flex: 0 0 calc(100% / 2);
    }

    .game-2 .grid,
    .game-3 .grid,
    .game-4 .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-2 .grid .item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .game-2 .grid .item:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .heading {
        font-size: 24px;
    }

    .game-1 .carousel-control-prev,
    .game-1 .carousel-control-next {
        font-size: 16px;
    }

}

@media (max-width:450px) {
    .hometop .masthead-content {
        height: 170px;
    }

    .hometop .masthead-content #first {
        transform: translateX(50%) scale(1.3);
        width: 50%;
        aspect-ratio: 1/0.6;
    }

    .hometop .masthead-content #second {
        transform: translateX(150%);
    }
}

@media (max-width:400px) {
    .hometop .masthead-content {
        height: 150px;
    }
}

@media (max-width:360px) {
    .hometop .masthead-content {
        height: 140px;
    }
}