body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;

    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-color: auto;
    /* scrollbar-width: thin; */
}

body::-webkit-scrollbar {
    width: 5px;
}

body::-webkit-scrollbar-thumb {
    background-color: grey;
    border-radius: 10px;
    cursor: pointer;
}

body::-webkit-scrollbar-track {
    background-color: #101010;
    cursor: pointer;
}

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

body::-webkit-scrollbar-thumb:hover {
    background-color: grey;
}

#other-content {
    padding: 20px;
    /* background-color: lightgray;
    width: 100%; */
    /* flex-shrink: 0; */
    /* overflow-y: auto; */
    height: auto;
}

#globe-container {
    /* width: 100vw; */
    height: 100vh;
    position: relative;
    background: url(https://democracyprojectnft.io/assets/textures/sky-stars.webp);
    font-family: Lexend-Medium, sans-serif;
    background-position: center;
}

canvas {
    display: block;
    width: 100%;
}

.controls {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}

.earth-section-blur {
    position: absolute;
    display: block;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 18.5%;
    background: linear-gradient(180deg, #181818 0%, rgba(24, 24, 24, 0) 100%);
    transform: scaleY(-1);
}

.scroll-down-btn {
    position: absolute;
    display: block;
    bottom: -65px;
    left: 0;
    font-family: Lexend-Medium, sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-size: 16px;
    line-height: 24px;
    color: #fff6;
    transform: scaleY(-1) rotate(-90deg);
    cursor: pointer;
    margin: 0;
}

.scroll-down-btn:after {
    content: "";
    display: block;
    width: 70px;
    height: 1px;
    background-color: #fff6;
    position: absolute;
    right: 100px;
    top: 50%;
}

.zoom-button {
    /*height: 16px;*/
    /*width: 30px;*/
    background-color: #181818 !important;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
}

#zoom-in {
    background: url(/assets/icons/zoom-in.png) no-repeat;
    background-size: 22px;
    background-position: center;
}

#zoom-out {
    background: url(/assets/icons/zoom-out.png) no-repeat;
    background-size: 22px;
    background-position: center;
}

.controls img {
    height: 100%;
    width: 100%;
}

.zoom-button:hover {
    border-color: #21c95d;
    -webkit-box-shadow: 0px 4px 16px 1px rgba(33, 201, 93, .5);
    box-shadow: 0 4px 16px 1px #21c95d80;
    border: 1px solid #21c95d;
}

/* Overlay effect when the popup is open */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    pointer-events: none;
}

/* General styling for the popup container */
#popup {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #181818;
    border-radius: 15px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 800px;
    overflow-y: auto;
    color: white;
}

/* Popup header for country name and close button */
#popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

#popup button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Heading (Country name) */
.country-heading {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: white;
    margin: 0;
}

/* Country flag styling */
.country-flag {
    width: 32px;
    height: 32px;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    margin-right: 10px;
}

/* Cards Container */
#cards-popups {
    display: flex;
    /* justify-content: center; */
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-color: auto;
}

#cards-popups::-webkit-scrollbar {
    height: 5px;
}

#cards-popups::-webkit-scrollbar-thumb {
    background-color: #00FF7F;
    border-radius: 10px;
    cursor: pointer;
}

#cards-popups::-webkit-scrollbar-track {
    background-color: #101010;
    border-radius: 5px;
    cursor: pointer;
}

#cards-popups::-webkit-scrollbar-button {
    display: none;
}

#cards-popups::-webkit-scrollbar-thumb:hover {
    background-color: #00d966;
}

/* Each Card */
.single-card {
    background: #121212;
    border-radius: 12px;
    overflow: hidden;
    /*max-width: 300px !important;*/
    width: 240px;
    gap: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    /*cursor: pointer;*/
    margin: 0;
    position: relative;
}

/* Coming Soon text overlay */
.single-card::before {
    content: var(--before-content, "Coming Soon");
    font-family: Lexend-Medium, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    font-size: 24px;
    line-height: 28px;
    width: 100%;
    height: 240px;
    position: absolute;
    top: 0;
    display: flex;
    margin-top: 0;
    left: 0;
    margin-left: 0;
    z-index: 3;
    text-align: center;
    /*-webkit-backdrop-filter: none;*/
    backdrop-filter: var(--after-backdrop-filter, blur(3px));
    align-items: center;
    justify-content: center;
}

/* Image inside card */
.single-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%) blur(2px);
    transition: filter 0.3s ease-in-out;
}

.single-card-texts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px;
}

/* Remove blur effect on hover */
/* .single-card:hover .single-card-image {
    filter: grayscale(0%) blur(0);
} */

/* Hover effect for cards */
/* .single-card:hover {
    transform: translateY(-5px);
} */

/* Card Project Name */
.single-card-project {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #fff;
    opacity: .4;
    margin: 0;
}

/* Card Title (Clickable link) */
.single-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: .3s;
}

/* Hover effect on card title */
.single-card-title:hover {
    color: #66e0ff;
}

/* Price wrapper */
.single-card-price-wrapper {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
    font-size: 14px;
}

/* Ethereum price styling */
.ethereum-price {
    color: #ffffff;
    margin: 0;
}

/* USD price styling */
.usd-price {
    color: #999;
    margin: 0;
}

/* Ethereum icon */
.ethereum-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/assets/icons/ethereum-icon.svg');
    background-size: cover;
    margin-right: 5px;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    #popup {
        padding: 15px 30px;
        width: 90%;
    }

    .country-heading {
        font-size: 20px;
    }

    #cards-popups {
        flex-wrap: nowrap;
        gap: 20px;
    }
    .single-card {
        max-width: unset !important;
        min-height: auto !important;
        width: 100%;
        height: auto;
        /*width: 280px;*/
    }
    .custom-single-cards-slider-wrapper{
        min-width: 250px;
        width: 100%;
    }
/*    .custom-single-cards-slider-wrapper.first-card.last-card,.custom-single-cards-slider-wrapper.first-card, .custom-single-cards-slider-wrapper.last-card,.custom-single-cards-slider-wrapper {*/
/*    width: 300px;*/
/*}*/

    .single-card-image {
        height: 200px;
    }
    .controls {
        bottom: unset;
    }
    #custom-left-slide-button, #custom-right-slide-button{
        padding: 20px;
    }
    #custom-right-slide-button{
        right: 10px;
    }
    #custom-left-slide-button{
        left: 10px;
    }
}

@media (max-width: 480px) {
    .single-card-image {
        height: 150px;
    }

    .country-heading {
        font-size: 18px;
    }

    .single-card-project,
    .single-card-title {
        font-size: 14px;
    }

    .single-card-price-wrapper {
        font-size: 12px;
    }
}

/*---------------------------------------------------*/

/* Loader container */
#loader {
    position: relative;
    width: 50px; /* Adjust size of loader */
    height: 50px; /* Adjust size of loader */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Center loader gif inside overlay */
#loader img {
    width: 100%; /* Full width of the loader container */
    height: auto;
}

/* Show the overlay when it has the "overlay" class */
#page-overlay.overlay {
    display: flex;
}
#page-overlay {
    position: fixed;
    top: 0;
    left: 0; /* Hidden by default */
    justify-content: center;
    align-items: center; /* Ensure it's on top of other elements */
}
.coming-soon-card::after {
    /*content: var(--after-content, "");*/
    content: unset;
    backdrop-filter: var(--after-backdrop-filter, blur(2.5px));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 240px;
    border-radius: 8px;
    z-index: 0 !important; /* Place the blur behind other elements */
}


/* new css */
#popup-content{
    display: flex;
    align-items: center;
}
#custom-left-slide-button,
#custom-right-slide-button{
    position: absolute;
    z-index: 11;
    border-radius: 50%;
    background-color: #21c95d;
    -webkit-box-shadow: 0px 3px 15px 1px rgba(33, 201, 93, .3);
    box-shadow: 0 3px 15px 1px #21c95d4d;
    background-image: url(https://democracyprojectnft.io/assets/slider-next.9aa9d8de.svg);
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: .3s;
    z-index: 99;
    border: none;
    outline: none;
    font-size: 0;
    padding: 25px;
}
#custom-left-slide-button {
    left: 5px;
    transform: rotate(-180deg);
}

#custom-right-slide-button {
    right: 5px;
}
#custom-left-slide-button:hover,
#custom-right-slide-button:hover{
    box-shadow: 0px 0px 30px 3px #21c95d;
}

#masthead {
    background: transparent;
}
#globe {
    margin-top: -94px;
}

/* Hide before and after for cards with coomingSoon="No" */
.hide-before-after::before,
.hide-before-after::after {
    content: none !important;
    backdrop-filter: none !important;
}

.no-coming-soon .single-card-image {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
}
 #faq .block_image img {
    height: 384px;
    width: 384px;
 }