* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Dosis", sans-serif;
    text-decoration: none;
}

::-webkit-scrollbar {
    display: none;
}

:root {
    --text_color: #ffffff;
    --rounded: 15px;
    --border-color: #e5e7eb;
    --btn_bg: #f09636;
    --btn-text-color: #383030;
    --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: black;
    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%;
    background: linear-gradient(180deg, black, rgba(30, 31, 34, 0));
}

.bg-bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(0deg, black, rgba(30, 31, 34, 0));
}

.main_div {
    max-width: 400px;
    text-wrap: nowrap;
    width: 100%;
    height: 100%;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    position: relative;
    background-color: black;
    color: var(--text_color);
    /* overflow-y: scroll; */
    /* padding: 12px 8px; */
    gap: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.play_btn {
    background-color: #1f1f1f;
    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 var(--border-color);*/
}

.play_btn_txt {
    font-size: 18px;
    color: var(--text_color);
    font-weight: 500;
    text-wrap: wrap;
}

.click_btn {
    background-color: var(--btn_bg);
    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;
}

.more_game {
    width: 370px;
}

/* .click_btn_option {
    font-size: 14px;
    margin-top: 20px;
    color: var(--btn-text-color);
    padding: 10px 28px 10px 28px;
    background-color: #20213f;
    border: 1px solid #404380;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    min-height: 32px;
} */
.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: transparent;
    padding: 16px;
    width: 370px;
    border-radius: var(--rounded);
    border: 1px solid var(--border-color);
    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; */

}

.game_section1 {
    padding: 4px 0 4px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    justify-items: center;
}

.game_section2 {
    border-radius: 25px;
    background-color: transparent;
    border: 1px solid #ebecf2;
    box-shadow: var(--div-boxShadow);
}

.game_section3 {
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
    height: 100%;
    width: 100%;
}

.game_section4 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game_section_img {
    width: 100%;
    /* height: 160px; */
    height: unset;
    /* border-radius: 4px; */
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.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: #000000;
    text-transform: uppercase;
}

.game_section5 button {
    background-color: var(--btn_bg);
    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;
    color: var(--text_color);
}

.about_section p {
    text-wrap: wrap;
    text-align: start;
    color: #888;
    font-size: 16px;
}

footer {
    display: flex;
    width: 370px;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0px;
    color: white !important;
    /* width: 100%; */
}

.anchor_text {
    color: black;
}

.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 #e5e7eb;
    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;
    }

}

@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);
    }
}