@font-face {
    font-family: 'Dosis';
    src: url('../fonts/Dosis-VariableFont_wght.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0020-007F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Dosis', sans-serif;
    text-decoration: none;
}

::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Dosis', sans-serif;
    background-color: #0b080c;
}

:root {
    --text_color: #888;
    --rounded: 15px;
    --border-color: #e5e7eb;
    --btn_bg: #3B82F6;
    --btn-text-color: #f4f4f8;
    --btn-boxShadow: 2px 2px 14px rgb(0 0 0 / 40%);
    --div-boxShadow: rgba(0, 0, 0, 0.25) 0px 12px 22px -12px;
}

img,
video {
    height: auto;
    max-width: 100%;
}

main {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    background-image: url(../assets/grid_Frame.svg);
    background-color: #0b080c;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden;
}

.bg-top {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50%;
}

.bg-bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50%;
    /*background: linear-gradient(0deg, white, rgba(30, 31, 34, 0));*/
}

.main_div {
    max-width: 400px;
    text-wrap: nowrap;
    width: 100%;
    height: 100%;
    border-left: 1px solid #656565;
    border-right: 1px solid #656565;
    position: relative;
    background-color: #0b080c;
    color: var(--text_color);
    /* overflow-y: scroll; */
    /* padding: 12px 8px; */
    gap: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.woop_game_section {
    text-align: center;
    width: 100%;
}

.play_btn {
    background-color: #1f1622;
    margin: 16px 16px 0 16px;
    padding: 16px;
    width: 370px;
    box-shadow: rgba(0, 0, 0, 0.25) 0 12px 22px -12px;
    border-radius: var(--rounded);
    border: 1px solid #656565;
}

.play_btn_txt {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
    text-wrap: nowrap;
    /* width: fit-content;
    margin: 0px auto; */
}

@media(max-width:360px) {
    .play_btn_txt {
        text-wrap: wrap;
    }
}

.click_btn {
    background: linear-gradient(to right, #364AFF, #FC54FF);
    margin-top: 15px;
    padding: 10px 28px 10px 28px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--btn-text-color);
    border-radius: var(--rounded);
    box-shadow: var(--btn-boxShadow);
    border: none;
    -webkit-transition: all 0.3s ease-in-out;
}

.play-btn {
    -webkit-transition: all 0.3s ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.click_btn:hover,
.play-btn:hover {
    background-color: #0072d1;
    animation-name: shimmer;
    -moz-animation-duration: 2s;
    animation-duration: 2s;
}

@keyframes shimmer {
    0% {
        background-position: top left;
    }

    100% {
        background-position: top right;
    }
}

.more_game {
    width: 370px;
}

.click_btn_option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;

}

.cat_img {
    width: 20px;
    height: 20px;
}

.choose_game {
    margin: 16px 16px 0 16px;
    background-color: #1f1622;
    padding: 16px;
    width: 370px;
    border-radius: var(--rounded);
    border: 1px solid #656565;
    box-shadow: var(--div-boxShadow);
}

.class_flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.class_flex a {
    width: 100%;
}

.game_section {
    margin: 16px 16px 0 16px;
    /* border: 1px solid var(--border-color); */
    border-radius: var(--rounded);
    /* padding: 20px; */

}

.loader {
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.game_section1 {
    padding: 4px 0 4px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    justify-items: center;
    max-width: 500px;
}

.game_section2 {
    border-radius: 12px;
    background-color: transparent;
    width: 100%;
    /*border: 1px solid #656565;*/
    /*box-shadow: var(--div-boxShadow);*/
    
  background: #1f1622;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
    
}

.game_section3 {
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
    height: 100%;
    width: 100%;
}

.game_section4 {
    display: flex;
    aspect-ratio: 1;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    background-color: transparent;
    flex-wrap: wrap;
    align-content: flex-start;
    position: relative;
}
.game_overlay_info {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  background: rgba(0, 0, 0, 0); /* semi-transparent overlay */
  color: rgb(22, 21, 21);
  padding: 4px 8px;
  border-radius: 6px;
}


/* @media(max-width: 500px) and (min-width:420px) {
    .game_section4 {
        height: 178px;
    }
}

@media(max-width:420px) {
    .game_section4 {
        height: fit-content;
        max-height: 100%;
        min-height: 179px;
    }
} */

.game_section_img {
    width: 90%;
    height: 90%;
    /*border-top-left-radius: 12px;*/
    /*border-top-right-radius: 12px;*/
  position: relative;
  overflow: hidden;
  margin: 8px;
  border-radius: 12px;
}

.game_section5 {
    background-color: transparent;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    padding: 0px 5px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.game_section6 {
    color: var(--text_color);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: center;
}

.play_btn_txt1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.game_section6 p {
    margin-bottom: 0px;
    text-align: start;
    color: #FFFFFF;
    /*text-transform: uppercase;*/
}

.game_section5 button {
    background: linear-gradient(to right, #364AFF, #FC54FF);
    padding: 10px 50px 10px 50px;
    font-size: 14.4px;
    font-weight: 600;
    color: var(--btn-text-color);
    border-radius: var(--rounded);
    margin-bottom: 4px;
    border: none;
}

.main_logo {
    color: var(--text_color);
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: 50%;
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    /* gap: 1.5rem; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main_img {
    width: 50%;

}

.logo_content {
    font-weight: 700;
}

.logo_content .title {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: center;
    padding-top: 1rem;
}

.about_section {
    margin-top: 20px;
    width: 370px;
}

.about_section h1 {
    margin: auto;
    margin-bottom: 15px;

}

.about_section p {
    text-wrap: wrap;
    text-align: start;
    color: #888;
    font-size: 16px;
    margin-bottom: 10px;
}

footer {
    display: flex;
    width: 370px;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0px;
    color: white !important;
    /* width: 100%; */
}

.anchor_text {
    color: white;
}

.anchor_text:hover {
    text-decoration: underline;

}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    opacity: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 1000;
    pointer-events: none;
}

.popup-content {
    position: relative;
    height: auto;
    border: 1px solid #888;
    color: #fff;
    border-radius: 5px;
    margin: 0 auto;
    width: 600px;
    padding: 10px;
    position: absolute;
    pointer-events: auto;
    z-index: 1001;
}

.popup {
    align-items: center;
}

.close-popup {
    outline: none;
    background-color: #ffffff;
    border: 1px solid #000;
    border-radius: 20%;
    color: #000;
    cursor: pointer;
    font-family: arial;
    font-size: 25px;
    font-weight: 700;
    height: 30px;
    line-height: 25px;
    margin-bottom: 10px;
    position: relative;
    text-align: center;
    width: 30px;
    z-index: 1003;
}

.bottom-ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    background-color: transparent;
    color: white;
    padding: 10px 16px 0px 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: none;
    animation: slideUp 0.5s ease-out forwards;
}

.close_ub {
    background-color: #ffffff;
    padding: 0 5px;
    position: absolute;
    top: -20px;
    left: 0;
    color: #000;
    font-weight: bold;
    font-size: 20px;
    border-top-right-radius: 8px;
    cursor: pointer;
}

.btn1,
.click_btn1 {
    width: 100%;
}

.resp_footer {
    border-top: 1px solid #656565;
    /* margin-top: 10px; */
}

.resp_play_btn,
.resp_choose_game,
.resp_more_game,
.resp_about_section,
.resp_footer,
.resp_play_btn {
    display: flex;
    justify-content: center;
}

/* -------------------------------------------media----------------------------------------------- */



@media (min-width:500px) and (max-width:870px) {
    .logo_content {
        font-size: .875rem;
        line-height: 1.25rem;
    }
}

@media(max-width:500px) {
    .main_div {
        min-width: 100%;
        width: 100%;
        padding: 0px;
    }

    main {
        background-image: none;
    }

}

@media(max-width:500px) and (min-width:420px) {

    /* .resp_play_btn, .resp_choose_game, .resp_more_game {
        margin: 0px 40px;
    } */
    .game_section1 {
        width: fit-content;
        margin: 0px auto;
    }
}

@media(max-width:400px) {
    .game_section5 button {
        padding: 10px 45px;
    }

    .about_section {
        padding: 0 16px 16px 16px;
    }

    footer {
        padding: 7px 16px;
    }
}

@media(max-width:768px) {
    .main_img {
        width: 100%;
    }
}

@media(max-width:360px) {
    .game_section5 button {
        padding: 10px 35px;
    }
}

@media(max-width:320px) {
    .game_section5 button {
        padding: 10px 20px;
    }
}

@media (max-width: 280px) {
    .game_section {
        margin: 16px 12px 0 12px;
    }

    .click_btn {
        text-wrap: nowrap;
        font-size: 12px;
    }

    .class_flex {
        gap: 4px;
    }
}

@media (max-width: 346px) {
    .cat_img {
        width: 15px;
        height: 15px;
    }

    .game_section1 {
        gap: 0.5rem;
    }


}

/* @media(max-width:860px) {
    .game_section5 button {
        text-wrap: nowrap;
        padding: 10px 30px 10px 30px;
    }
} */

@media(max-width:450px) {
    .game_section {
        border: none;
        padding: 0;
    }

    .game_section5 button {
        text-wrap: nowrap;
        /* padding: 10px 40px; */
    }

    .click_btn {
        font-size: 14px;
        text-wrap: nowrap;
    }

    .click_btn_option {
        padding: 10px 15px;
    }

}

@media (max-width: 500px) {
    .game_section2 {
        width: 180px;
    }


    .main_logo {
        display: none;
    }
}

@media (max-width: 420px) {

    .game_section2,
    .choose_game,
    .play_btn,
    .more_game {
        width: 100%;
    }


}

@media screen and (max-width: 640px) {
    .popup-content {
        width: 350px;
    }
}

@media screen and (max-width: 470px) {
    .popup-content {
        width: 100%;
    }
}

@media screen and (max-width: 386px) {
    .bottom-ad {
        width: 100%;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
    }

    to {
        transform: translateX(-50%) translateY(0);
    }
}

.m-grid-start {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-gap: 20px;
    grid-auto-rows: minmax(100px, 100px);
    grid-auto-flow: dense;
    justify-content: center;
}

.m-grid-start .m-game-card {
    position: relative;
    /* background: #fff; */
    box-shadow: 0 5px 10px var(--card-shadow);
    border-radius: .75rem;
    overflow: hidden;
    z-index: 1;
}

.m-grid-start .m-game-card .m-game-link {
    display: block;
    height: 100%;
    width: 100%;
}

.m-grid-start .m-game-card .m-game-link picture {
    /* position: absolute;
    top: 0;
    left: 0; */
    display: block;
    height: 100%;
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.m-grid-start .m-game-card .m-game-link picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 0;
}

.m-grid-start ._700x700 {
    grid-column-start: span 6;
    grid-row-end: span 1;
}

.m-grid-start ._400x400 {
    grid-column-start: span 3;
    grid-row-end: span 3;
}

/* .m-grid-start ._700x700 > * {
    width: 100%;
} */

.m-grid-start .m-game-card:not(.not-hover) .m-game-link::before {
    content: '';
    transition: .3s;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(#1f1f1f00, rgba(38, 37, 37, 0.452));
    opacity: 0;
}

.m-grid-start .m-game-card:not(.not-hover):hover .m-game-link::before {
    opacity: 1;
}

.m-grid-start .m-game-card:not(.not-hover):hover {
    transform: scale(1.06);
}

.m-grid-start .m-game-card .m-game-link .m-game-details {
    transition: .4s;
    position: absolute;
    bottom: -100px;
    text-align: center;
    width: 100%;
    color: #fff;
    font-weight: bolder;
    font-size: 15px;
    padding: 13px 6px;
    opacity: 0;
}

.m-grid-start .m-game-card:hover .m-game-details {
    bottom: 0;
    opacity: 1;
}


.m-grid-start .m-game-card.md {
    grid-column-start: span 2;
    grid-row-end: span 2;
}

.m-grid-start .m-game-card.lg {
    grid-column-end: span 3;
    grid-row-end: span 3;
}

.m-grid-start .m-game-card.lg::before {
    /* content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(to right, transparent, #ffffff76, #ffffff00);
    animation: Shine 500ms linear infinite;
    animation-delay: 7s;
    transition: .3s;
    transform: translateX(100%); */
    content: '';
    top: 0;
    transform: translateX(100%);
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    animation: slide 2s infinite 3s;

    /* 
  CSS Gradient - complete browser support from http://www.colorzilla.com/gradient-editor/ 
  */
    background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(128, 186, 232, 0) 99%, rgba(125, 185, 232, 0) 100%);
    /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(50%, rgba(255, 255, 255, 0.8)), color-stop(99%, rgba(128, 186, 232, 0)), color-stop(100%, rgba(125, 185, 232, 0)));
    /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(128, 186, 232, 0) 99%, rgba(125, 185, 232, 0) 100%);
    /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(128, 186, 232, 0) 99%, rgba(125, 185, 232, 0) 100%);
    /* Opera 11.10+ */
    background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(128, 186, 232, 0) 99%, rgba(125, 185, 232, 0) 100%);
    /* IE10+ */
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(128, 186, 232, 0) 99%, rgba(125, 185, 232, 0) 100%);
    /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffffff', endColorstr='#007db9e8', GradientType=1);
    /* IE6-9 */
}


@media screen and (max-width: 572px) {
    .gameplay-container {
        grid-column-start: span 4 !important;
        grid-row-end: span 3 !important;
    }
}

.m-grid-start .gameplay-container {
    background-color: #fff;
    grid-column-start: span 8;
    grid-row-end: span 6;
    display: flex;
    flex-direction: column;
}

.m-grid-start .gameplay-container iframe {
    /* height: calc(100% - 85px); */
    height: 100%;
    width: 100%;

}

.m-grid-start .gameplay-container.full {
    position: fixed;
    top: 0;
    left: -5px;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.m-grid-start .gameplay-container.full .left,
.m-grid-start .gameplay-container.full .right {
    display: none;
}

.m-grid-start .gameplay-container .game-basic-info,
.m-grid-start .gameplay-container .logo,
.m-grid-start .gameplay-container .minimize {
    display: none;
}

.m-grid-start .gameplay-container.full .game-basic-info,
.m-grid-start .gameplay-container.full .logo,
.m-grid-start .gameplay-container.full .minimize {
    display: block;
}

.m-grid-start .gameplay-container.full .game-details .minimize {
    padding: 0 20px;
}

.gameplay-container.on-frame .game_desc,
.gameplay-container.on-frame hr {
    display: none;
}


@media screen and (max-width: 600px) {
    .gameplay-container.on-mobile {
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        border-radius: 20px;
        position: relative;
    }

    .gameplay-container.on-mobile .play-frame {
        display: block;
        position: absolute;
        height: 100%;
        width: 100%;
        background: #00000015;
    }

    /* .gameplay-container.on-mobile iframe {
        display: none;
    } */

    .gameplay-container.on-mobile .game-details {
        display: none;
    }

    .gameplay-container.on-mobile .play-button {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .gameplay-container.on-mobile .play-button button {
        height: 70px;
        width: 70px;
        border-radius: 99px;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .gameplay-container.on-mobile .play-button button svg path {
        stroke: var(--theme-color);
        stroke-width: 3px;
    }

    .gameplay-container.on-mobile .play-button button:hover {
        background: var(--theme-color);
    }

    .gameplay-container.on-mobile .play-button button:hover svg path {
        stroke: #fff;
    }

    .gameplay-container.on-mobile .play-button .game-name {
        color: #fff;
        font-weight: bolder;
    }

    .gameplay-container.on-frame {
        border-radius: 0;
        background-color: #fff !important;
        background-image: none !important;
    }

    .gameplay-container.on-frame .play-frame {
        display: none;
    }

    .gameplay-container.on-frame iframe {
        display: block;
    }

    .gameplay-container.on-frame .game-details {
        display: block;
    }

    .gameplay-container.on-frame .game-details .logo {
        display: none;
    }

    .gameplay-container.on-frame .game-details .logo {
        display: none;
    }

    .gameplay-container.on-frame .game-details .minimize {
        display: none;
    }

    .gameplay-container.on-frame .back-button {
        position: absolute;
        top: 20px;
        left: 0;
        background: #0E3D71;
        display: flex;
        align-items: center;
        gap: 10px;
        border-top-right-radius: 99px;
        border-bottom-right-radius: 99px;
        overflow: hidden;
        padding: 10px;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        -moz-user-select: none;
    }

    .more-option {
        display: flex;
        width: 150px;
        position: absolute;
        right: 20px;
        background: #fff;
        transform: translateY(40px);
        flex-direction: column;
        grid-gap: 0 !important;
        z-index: 999;
        padding: 10px;
        border-radius: 10px;
        opacity: 0;
        visibility: hidden;
    }

    .more-option.active {
        opacity: 1;
        visibility: visible;
    }

    .more-option .icon-group {
        justify-content: flex-start;
        flex-direction: unset;
        width: 100%;
        cursor: pointer;
    }

    .more-option .icon-group label {
        opacity: 1;
        pointer-events: none;
    }
}


@media screen and (max-width: 900px) and (orientation: landscape)   { 
    .gameplay-container.on-frame .game-details { 
        display: none !important;

    }

    .gameplay-container.on-frame .back-button {
        position: absolute;
        top: 20px;
        left: 0;
        background: #fff;
        display: flex;
        align-items: center;
        gap: 10px;
        border-top-right-radius: 99px;
        border-bottom-right-radius: 99px;
        overflow: hidden;
        padding: 10px;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        -moz-user-select: none;
    }
}


@media screen and (max-width: 378px) {
    .gameplay-container {
        grid-column-start: span 2 !important;
        grid-row-end: span 2 !important;
    }

    .m-category-grid {
       display: block !important;
    }

    .m-category-grid .m-category-card {
        margin-top: 20px;
    }
}
