* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
    background: #000;
}

body {
    font-family: "Helvetica Neue", Helvetica, Tahoma, "PingFang SC",
        "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei",
        sans-serif !important;
}

.container {
    height: 100%;
    overflow-y: scroll;
    /* We'll disable this in JavaScript */
    scroll-snap-type: y mandatory;
    /* Remove these as we'll handle scrolling with JS */
    /*scroll-behavior: smooth;
    transition: scroll 0.5s ease-in-out;*/
}

.container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.container::-webkit-scrollbar {
    display: none;
}

section {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden; /* Add this line to hide overflowing content */
}

h1 {
    font-size: 3rem;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
}

img {
    width: 100%;
    height: auto;
}

.section1,
.section2,
.section3 {
    background-color: #000;
    background-size: cover;
}

.section1 {
    background-image: url("../assets/bdt-assets/background-top-new.jpg");
}

.section3 {
    background-image: url("../assets/bdt-assets/background-bottom.jpg");
}

.section1-inner {
    display: flex;
    width: 100%;
    max-width: 75rem;
    justify-content: center;
    text-align: left;
}

.section1-img {
    display: flex;
    align-items: center;
    width: 50%;
}

.download-title {
    margin: 2.5rem 0;
    color: #e7e4e4;
}

.download-title h2 {
    font-size: 1.65rem;
    font-weight: normal;
    text-align: left;
}

.download-title h1 {
    font-size: 3.5rem;
    font-weight: normal;
    padding: 0 0 0.125rem 0;
    color: #ffffff;
}

.download-info {
    width: 50%;
}

.download-info > p:nth-of-type(2) {
    margin-top: 0.9375rem;
}

.download-info > p {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: lighter;
    letter-spacing: 0.0625rem;
    line-height: 1.875rem;
    text-align: left;
}

.download-info > p:nth-of-type(3) {
    margin: 0.3rem 0;
}

.help-btn {
    font-size: 1rem;
    font-weight: 400;
    line-height: 20px;
    font-family: "Helvetica", sans-serif;
    letter-spacing: normal;
    cursor: pointer;
}

.download-container {
    display: inline-flex;
    margin: 0.625rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 4.375rem;
}

.download-btn {
    display: block;
    width: 17.25rem;
    height: 4.8125rem;
    margin-right: 1.25rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    color: #000000;
    font-size: 1.6875rem;
    font-weight: normal;
    line-height: 4.375rem;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

/*Section 2 styling */
.section2 {
    overflow: hidden;
}

.section2-title {
    margin: 2.5rem 0;
    text-align: center;
}

.section2-title h3 {
    color: #fce35a;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 15px;
    padding: 0.5rem 0;
    letter-spacing: 0.3rem;
}

.section2-title h4 {
    color: #e7e4e4;
    font-size: 1.95rem;
    font-weight: lighter;
    line-height: 1.2em;
    padding: 0.2rem 0;
    position: relative;
    letter-spacing: 0.0625rem;
}

.section-games {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    width: 100%;
}

.image-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.title {
    position: absolute;
    top: 26%;
    left: 5%;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    z-index: 2;
    /* width: 80%; */
    text-align: left;
}

.title p {
    color: #fce35a;
    font-size: 2.375rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.title span {
    color: #e7e4e4;
    font-size: 1.5rem;
    font-weight: lighter;
    line-height: 2rem;
    display: block;
    width: 100%;
}

.show-m {
    display: none;
}

@media screen and (min-width: 550px) {
    section:nth-of-type(2) {
        padding: 0;
    }
}

@media screen and (min-width: 768px) {
    .image-item:nth-of-type(1),
    .image-item:nth-of-type(3) {
        left: 2rem;
    }

    .image-item:nth-of-type(3),
    .image-item:nth-of-type(4) {
        top: -2rem;
    }
}

@media screen and (min-width: 1000px) {
    .image-item:nth-of-type(1),
    .image-item:nth-of-type(3) {
        left: 2.7rem;
    }

    .image-item:nth-of-type(3),
    .image-item:nth-of-type(4) {
        top: -3rem;
    }
}

@media screen and (max-width: 1000px) {
    .title p {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .title span {
        font-size: 1.2rem;
        line-height: normal;
    }
}

/* Responsive styling */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px;
    }

    .title p {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .title span {
        font-size: 1rem;
    }

    .image-item:nth-of-type(1),
    .image-item:nth-of-type(3) {
        left: 1.5rem;
    }

    .image-item:nth-of-type(3),
    .image-item:nth-of-type(4) {
        top: -1.7rem;
    }

    .section-games {
        padding: 0;
    }

    .section2-title h3 {
        line-height: normal;
        padding: 0;
    }

    .section2-title h3:nth-of-type(1) {
        font-size: 2rem;
    }

    .section2-title h4 {
        font-size: 1.8rem;
    }
}

@media (max-width: 550px) {
    .section2-title h3:nth-of-type(1) {
        font-size: 1.4rem;
        line-height: 15px;
    }

    .section2-title h3:nth-of-type(2) {
        font-size: 2rem;
        font-weight: 800;
    }

    .section-games {
        padding: 0;
    }

    .section2-title h4 {
        font-size: 1.1rem;
        line-height: 0.6rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        /* max-width: 90%; */
        margin: 0 auto;
    }

    .image-item:nth-child(1) {
        order: 1; /* Image 1 */
    }

    .image-item:nth-child(3) {
        order: 2; /* Image 3 */
    }

    .image-item:nth-child(2) {
        order: 3; /* Image 2 */
    }

    .image-item:nth-child(4) {
        order: 4; /* Image 4 */
    }

    .image-item:nth-of-type(1),
    .image-item:nth-of-type(2),
    .image-item:nth-of-type(3),
    .image-item:nth-of-type(4) {
        left: 1rem;
    }

    .image-item:nth-of-type(2) {
        top: -4rem;
    }

    .image-item:nth-of-type(3) {
        top: -2rem;
    }

    .image-item:nth-of-type(4) {
        top: -6rem;
    }

    .image-item {
        margin-bottom: 10px;
        height: auto;
        /* Handle potential transparent areas in images */
        background-color: transparent;
    }

    .image-item img {
        /* Ensure the image is centered and potential transparent areas don't affect alignment */
        display: block;
        margin: 0 auto;
    }

    .title p {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .title span {
        font-size: 0.75rem;
    }

    .show-m {
        display: block;
    }

    .show-d {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    .title {
        top: 25%;
    }

    .title p {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .title span {
        font-size: 0.7rem;
    }
}

/*Section 3 styling */

.section3-title {
    margin: 3.75rem 0 0;
}

.section3-title h4 {
    color: #e7e4e4;
    font-size: 1.8rem;
    font-weight: lighter;
    line-height: 5px;
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 1.25rem;
}

.section3-title h3 {
    display: inline-flex;
    color: #fce35a;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    align-items: flex-end;
    flex-wrap: wrap;
    line-height: 45px;
    padding: 0.5rem 0;
}

.section3-title h5 {
    color: #e7e4e4;
    font-size: 2.1875rem;
    line-height: 5px;
    padding: 0.5rem 0;
    position: relative;
    font-weight: 500;
}

/* General styles for section-features-container */
.section-features-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 75rem;
    padding-top: 40px;
}

.icon-feat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.payment-feature {
    padding-top: 25px;
}

.friendly-feature {
    margin-top: -18px;
}

/* Center and equalize width for section-image and section-features */
.section-image,
.section-features {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .section-image,
    .section-features {
        max-width: 100%;
    }
}

/* Style for section-features in a 3x3 grid */
.section-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Style for each feature */
.section-features div img {
    width: 75%;
    margin: 1rem 0;
    background: #129c6e;
    border-radius: 0.625rem;
    border: 0.125rem solid #fff;
    padding: 1rem 2rem;
    display: block;
}

.section-features div span {
    display: block;
    width: 100%;
    font-size: 1.1875rem;
    font-weight: 300;
    line-height: 1.4375rem;
    color: #e7e4e4;
}

.section-features div:nth-of-type(1) span {
    width: 65%;
}

@media screen and (min-width: 1200px) {
    .section-image,
    .section-features {
        max-width: 50%;
    }
}

@media screen and (max-width: 1200px) {
    .section-features div img {
        width: 90%;
    }
}

@media screen and (max-width: 1161px) {
    .section-features div:nth-of-type(1) span {
        width: 100%;
    }

    .section-features div span {
        font-size: 1rem;
    }
}

@media screen and (max-width: 900px) {
    .section-features div img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section-features-container {
        flex-direction: column;
    }

    .section-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-features div {
        position: relative;
    }

    .section-features div img {
        position: relative;
        width: 80%;
        padding: 1.5rem 1.8rem 6rem 1.8rem;
    }

    .section-features div span {
        position: absolute;
        width: 80%;
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-weight: bold;
        text-align: center;
        font-size: 14px;
    }

    .section-features div:nth-of-type(1) span {
        width: 60%;
    }

    .payment-feature {
        padding-top: 0;
    }

    .friendly-feature {
        margin-top: 0;
    }
}

@media screen and (max-width: 500px) {
    .section3-title {
        margin: 0;
    }

    .section-features div:nth-of-type(1) span {
        width: 80%;
    }

    .section-features div span {
        line-height: normal;
    }

    .section-features div img {
        position: relative;
        width: 100%;
        padding: 1.5rem 1.5rem 5rem 1.5rem;
    }

    .section-features div span {
        position: absolute;
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-weight: bold;
        text-align: center;
        font-size: 12px;
        width: 80%;
    }

    .section3-title h4 {
        font-size: 1.2rem;
        padding: 0.3rem 0;
        letter-spacing: 1rem;
    }

    .section3-title h3 {
        font-size: 1.6rem;
        padding: 0;
    }

    .section3-title h5 {
        font-size: 1.4rem;
        padding: 0.3rem 0;
    }
}

@media screen and (max-width: 400px) {
    .section-features div img {
        position: relative;
        width: 100%;
        padding: 1rem 1rem 4rem 1rem;
    }

    .section-features div span {
        font-size: 10px;
        width: 90%;
    }

    .section3-title h4 {
        font-size: 1rem;
        padding: 0.1rem 0;
    }

    .section3-title h3 {
        font-size: 1.4rem;
        padding: 0;
    }

    .section3-title h5 {
        font-size: 1.2rem;
        padding: 0.1rem 0;
    }
}

@media screen and (max-width: 350px) {
    .section3-title h4 {
        font-size: 0.8rem;
        padding: 0;
    }

    .section3-title h3 {
        font-size: 1.2rem;
    }

    .section3-title h5 {
        font-size: 1rem;
        padding: 0;
    }
}

/* Styling of main page on smaller screens */
@media screen and (max-width: 768px) {
    section {
        height: auto !important;
        scroll-snap-align: none; /* Disable snap points */
    }

    .section1-inner {
        flex-direction: column;
    }

    .section1-img {
        width: 100%;
        justify-content: center;
    }

    .section1-img img {
        width: 70%;
    }

    .download-info {
        width: 100%;
    }

    .download-title h2,
    .download-title h1 {
        text-align: center;
        line-height: 25px;
    }

    .download-title > h1 {
        font-weight: 500;
        font-size: 2.2rem;
    }

    .download-title > h2 {
        font-weight: lighter;
        font-size: 0.85rem;
    }

    .download-info > p {
        text-align: center;
        font-size: 0.65rem;
        line-height: 15px;
    }

    .download-info > p:nth-of-type(3) {
        margin: 20px 0 0 0;
    }

    .help-btn {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .download-btn img {
        width: 90%;
    }

    .download-container {
        width: 100%;
    }

    .download-btn {
        margin: auto;
    }

    .download-title {
        margin: 0 0 10px 0;
    }
}

@media screen and (max-width: 500px) {
    .section1-img img {
        width: 100%;
    }
}

/* installation pop-up styles */
#popupBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
    overflow-y: auto;
}

/* Default animations for smaller screens */
.show-popup {
    animation: popShowSmall 0.5s ease-in-out forwards;
}
.hide-popup {
    animation: popHideSmall 0.4s ease-in-out forwards;
}

@keyframes popShowSmall {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popHideSmall {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.pop-wrap {
    position: fixed;
    font-family: "Helvetica", sans-serif;
}
.pop-wrap {
    top: 0;
    /* left: 50%; */
    width: 100%;
    min-width: auto;
    overflow: hidden;
    transform: translateX(-50%);
    border-radius: 5px;
    background: #fff;
}
.pop-app-download-new {
    height: 100%;
    background: rgb(0, 0, 0);
    overflow: auto;
}
.pop-app-download-new .pop-title {
    border-color: transparent;
    background: transparent;
}
.pop-app-download-new .pop-title p {
    color: #fce35a;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.4;
    text-align: center;
    padding: 15px 50px 0;
}
.pop-app-download-new .pop-title .btn-close {
    background-color: transparent;
}
.pop-wrap .btn-close {
    display: flex;
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: 0.5s ease-out;
    background-color: rgba(23, 150, 110, 0.2);
    cursor: pointer;
}
.pop-app-download-new .pop-title .btn-close::before {
    background-color: #52c384;
}
.pop-wrap .btn-close::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    transition: 0.3s;
    background-color: #fff;
    -webkit-mask: url(https://img.b112j.com/images/web/icon-set/cancel.svg)
        no-repeat center / contain;
    mask: url(https://img.b112j.com/images/web/icon-set/cancel.svg) no-repeat
        center / contain;
}
.pop-app-download-new .pop-inner {
    padding: 0;
}
.pop-wrap .pop-inner {
    position: relative;
    padding: 15px 0;
    text-align: center;
}
.pop-app-download-new .pop-inner .slides-wrap {
    width: 100%;
    padding: 0;
    overflow: hidden;
    transition: all 0.5s ease-out;
    margin: 0;
    list-style: none;
}
.pop-wrap ul {
    text-align: left;
}
.pop-app-download-new .pop-inner .slides-wrap .android-wrap {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    padding: 0 1rem;
    overflow-y: none;
}
.pop-app-download-new .pop-inner .slides-wrap .android-wrap .step-wrap {
    display: inline-block;
    width: 100%;
    margin: 0.9375rem;
    text-align: center;
}
.pop-app-download-new .pop-inner .slides-wrap .android-wrap .step-wrap img {
    width: 60%;
    max-width: 200px;
}
.pop-app-download-new .pop-inner .slides-wrap .android-wrap .step-wrap .number {
    color: #52c384;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.1875rem;
    line-height: 2rem;
    margin-top: 10px;
}
.pop-app-download-new .pop-inner .slides-wrap .android-wrap .step-wrap .text {
    margin: 0.5rem auto;
    color: #ffffff;
    font-size: 0.675rem;
    line-height: 1.375rem;
    max-width: 90%;
}

/* Media Queries for installation help pop up */
@media screen and (min-width: 768px) {
    .pop-app-download-new .pop-title p {
        color: #fce35a;
        font-size: 1.25rem;
        font-weight: 300;
        line-height: 1.4;
        text-align: center;
        padding: 15px 50px 0;
    }

    .pop-app-download-new
        .pop-inner
        .slides-wrap
        .android-wrap
        .step-wrap
        .number {
        color: #52c384;
        font-size: 1.625rem;
        font-weight: bold;
        letter-spacing: 0.1875rem;
        line-height: 2rem;
        margin-top: 10px;
    }

    .pop-app-download-new
        .pop-inner
        .slides-wrap
        .android-wrap
        .step-wrap
        .text {
        margin: 0.5rem auto;
        color: #ffffff;
        font-size: 0.875rem;
        line-height: 1.375rem;
        max-width: 90%;
    }

    .pop-wrap .btn-close {
        width: 60px;
        height: 60px;
    }
    .pop-app-download-new .pop-inner .slides-wrap .android-wrap .step-wrap {
        width: calc(33.333% - 1.875rem);
    }
    .pop-app-download-new .pop-inner .slides-wrap .android-wrap .step-wrap img {
        width: 68%;
        max-width: none;
    }
    .pop-wrap .pop-inner {
        padding: 5px 0;
    }
    .pop-app-download-new .pop-inner .slides-wrap .android-wrap {
        padding: 0 1.875rem;
    }

    .pop-app-download-new {
        height: 100%;
        border: 0.1875rem solid #52c384;
        border-radius: 1.5625rem;
        background: rgb(0, 0, 0);
        overflow: auto;
    }

    .pop-wrap {
        top: 15%;
        left: 50%;
        width: 90%;
        max-width: 75rem;
        min-width: auto;
        overflow: hidden;
        transform: translateX(-50%);
        border-radius: 5px;
        background: #fff;
    }

    .pop-app-download-new {
        height: auto;
        border: 0.1875rem solid #52c384;
        border-radius: 1.5625rem;
        background: rgb(0, 0, 0);
    }

    .pop-app-download-new .pop-inner .slides-wrap .android-wrap {
        display: flex;
        flex-flow: row wrap;
        width: 100%;
        padding: 0 1rem;
        max-height: 70vh;
        overflow-y: auto;
    }

    .show-popup {
        animation: popShow 0.5s ease-in-out forwards;
    }
    .hide-popup {
        animation: popHide 0.4s ease-in-out forwards;
    }

    @keyframes popShow {
        0% {
            opacity: 0;
            transform: translateY(-20px) translateX(-50%);
        }
        100% {
            opacity: 1;
            transform: translateY(0) translateX(-50%);
        }
    }

    @keyframes popHide {
        0% {
            opacity: 1;
            transform: translateY(0) translateX(-50%);
        }
        100% {
            opacity: 0;
            transform: translateY(-20px) translateX(-50%);
        }
    }
}

/*installation help button styles */
.mobile-install-button {
    display: none; /* Hidden by default */
    position: fixed;
    top: 10%;
    left: 10px;
    transform: rotate(90deg) translate(100%, -50%);
    transform-origin: left top;
    background: linear-gradient(to top, #ffdf1a, #ffe544 35%, #ffeb71 80%);
    color: #003049;
    padding: 10px;
    font-weight: lighter;
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 99;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-family: "Helvetica", sans-serif;
}

/* Only show on mobile screens 768px and below */
@media screen and (max-width: 768px) {
    .mobile-install-button {
        display: block;
    }
}

/* nav dots button indicator styles*/
.nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav a {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 15px 0;
    transition: all 0.3s ease;
}

.nav a.active {
    background-color: white;
    transform: scale(1.2);
}
