/* Font declarations */
@font-face {
    font-family: 'CocoSharp';
    src: url('fonts/cocosharp-regular-webfont.woff2') format('woff2'),
         url('fonts/cocosharp-regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CocoSharp';
    src: url('fonts/cocosharp-bold-webfont.woff2') format('woff2'),
         url('fonts/cocosharp-bold-webfont.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.woff2') format('woff2'),
         url('fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;
    background: #0C2B42;
    color: #fff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: normal;
}

.container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#globeViz {
    width: 100vw !important;
    height: 100vh !important;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    z-index: 1;
}

#globeViz canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

/* Scene wrapper */
.scene-container {
    width: 100% !important;
    height: 100% !important;
}

/* Hide the default navigation info */
.scene-nav-info {
    display: none !important;
}

/* Make sure the canvas is visible */
canvas {
    display: block !important;
}

.country-menu {
    position: fixed;
    left: 20px;
    top: 0;
    z-index: 3;
    backdrop-filter: blur(10px);
    padding: 100px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 100vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.1);
}

.country-item {
    cursor: pointer;
    padding: 15px;
    border-radius: 26px;
    background: #fff;
    transition: background-color 0.3s;
    color: #000;
    font-size: 36px;
    text-align: center;
    font-weight: bold;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    font-family: 'CocoSharp', sans-serif;
}

.country-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.country-item img {
    width: 100%;
    height: auto;
    max-width: 181px;
    max-height: 90px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.country-menu::-webkit-scrollbar {
    width: 8px;
}

.country-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.country-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.country-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.popover {
    position: fixed;
    right: 0;
    bottom: 0;
    background: white;
    color: #333;
    padding: 100px 0 30px 0;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    width: 100%;
    max-width: 100vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 80vh;
    min-height: 60vh;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    display: flex;
    flex-direction: column;
}

@media screen and (min-height: 1000px) {
    .popover {
        height: auto;
        max-height: 70vh;
        min-height: auto;
    }
}

.popover-content {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 30px;
    height: 100%;
}

/* Webkit scrollbar styling for popover */
.popover::-webkit-scrollbar {
    width: 10px;
    background-color: transparent;
}

.popover::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
    margin: 100px 0 30px 0;
}

.popover::-webkit-scrollbar-thumb {
    background: #0C2B42;
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}

.popover::-webkit-scrollbar-thumb:hover {
    background: #0a2235;
}

/* Firefox scrollbar styling */
.popover {
    scrollbar-width: thin;
    scrollbar-color: #0C2B42 #f1f1f1;
}

/* Hide scrollbar when not scrolling but keep functionality */
@media (hover: hover) {
    .popover::-webkit-scrollbar-thumb {
        opacity: 0;
        transition: opacity 0.3s;
    }

    .popover:hover::-webkit-scrollbar-thumb {
        opacity: 1;
    }
}

.popover.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.close-btn {
    position: absolute;
    right: 50px;
    top: -90px;
    background: #f0f0f0;
    border: none;
    padding: 20px 50px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 25px;
}

.close-btn:hover {
    background: #e0e0e0;
}

.country-title {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'CocoSharp', sans-serif;
    font-weight: bold;
}

.country-title img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.country-description {
    color: #000;
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
    font-size: 28px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
}

.payment-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 30px 15px;
    background: #f8f8f8;
}
.payment-methods .payment-method:nth-child(even){
    background: #fff;
}
.payment-method img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.payment-method-details {
    flex: 1;
}

.payment-method-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
    font-size: 28px;
    font-family: 'CocoSharp', sans-serif;
}

.payment-method-description {
    font-size: 28px;
    color: #000;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
}

.payment-logos {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.payment-logos img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.header {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
    width: 90%;
    max-width: 800px;
    /* background: linear-gradient(180deg, rgba(12, 43, 66, 0.9) 0%, rgba(12, 43, 66, 0) 100%); */
    padding: 40px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

h1 {
    font-family: 'CocoSharp', sans-serif;
    font-weight: bold;
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-family: 'CocoSharp', sans-serif;
    font-weight: bold;
    font-size: 24px;
    color: #000;
    line-height: 1.4;
    
}
.header h2{
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.country-item span{
    font-family: 'CocoSharp', sans-serif;
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
}
.container-min {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 30px;
}
.payment-method .container-min {
    display: flex;
    align-items: center;
    gap: 15px;
}
.payment-method .payment-method-icon img{
    width: 100%;
    max-width: 100px;
    height: auto;
}
.payment-method-icon{
    width: 50%;
    display: flex;
    align-items: center;
    gap: 50px;
}

.payment-method.qr-block {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.payment-method.qr-block h3 {
    font-family: 'CocoSharp', sans-serif;
    font-weight: bold;
    color: #000;
}

.payment-method.qr-block img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
}
body.active-popover .container::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.7);
    z-index: 7;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}