      

    #mobile-message {
        display:none;
    }
      
      @media only screen and (max-width: 768px) {
        
        #desktop-only-content {
          display: none;
        }
        
        #mobile-message {
            display: flex; 
            color: rgba(255,255,255,0.7);
            font-family: sans-serif;
            font-size: 1em;
            text-align: center;
            margin:0 2rem;
            
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
          }
      }

    body { 
        margin: 0; 
        padding: 0;
        font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    .mapboxgl-popup {
        z-index: 9999;
    }
    #reset-map-button {
        text-decoration:none !important;
    }
    .map-reset-button-container {
        position:absolute;
        bottom:80px;
        left:50%;
        transform:translateX(-50%);
        text-align:center;
        z-index:9999;
        transition:all 0.2s ease-in-out;
    }

    .hub-iecho-profile-link {
        opacity:0.5;
        font-size:12px;
    }
    .hub-info-container {
        position:absolute;
        bottom:150px;
        left:50%;
        transform:translateX(-50%);
        text-align:center;
        transition:all 0.2s ease-in-out;
    }
    .hub-info {
        margin:0px 300px;
        padding:20px;
        min-width:200px;
        border-radius:10px;
        text-decoration:none;
    }
    .hub-info a {
        text-decoration:none;
        color:white;
    }



.mapboxgl-popup-content {
    background: rgba(6, 18, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-out;
    padding: 16px 20px;
    color: white;
    font-family: inherit;
}

.mapboxgl-popup-tip {
    border-top-color: rgba(6, 18, 24, 0.95) !important;
    border-left-color: rgba(6, 18, 24, 0.95) !important;
    border-right-color: rgba(6, 18, 24, 0.95) !important;
    border-bottom-color: rgba(6, 18, 24, 0.95) !important;
}

.instructions-container {
    z-index: 9999;
    position: absolute;
    left:30px;
    bottom:200px;
    transition: all 0.2s ease-in-out;
    }

.instructions-button {
    width: 120px;
}

.hidden {
    opacity:0 !important;
    scale:0.9;
}
.instructions-content {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    line-height:1.5;
    transition: all 0.2s ease-in-out;
}
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    color: rgba(255,255,255,0.4);
}

.toggle-rotation-container {
z-index: 9999;
position: absolute;
right:30px;
bottom:200px;
}
.button {
display:block;
text-align:center;
background-color: rgba(255,255,255,0.07);
color: rgba(255,255,255,0.4);
margin-bottom:5px;
padding: 6px 12px;
cursor:pointer;
text-decoration: none;
border-radius: 9px;
font-size:11px;
transition: all 0.2s ease-in-out;
}
.button:hover {
background-color: rgba(255,255,255,0.2);
color: rgba(255,255,255,0.8);
}

    #map { position: absolute; top: 0; bottom: 0; width: 100%; }
    #heading {
        color: white; position: absolute; z-index: 1;
        font-size: 48px;
        letter-spacing:-1px;
        font-weight: bold;
        text-align: center;
        width: 100%;
        top: 20px;
        left: 0;
    }
    .logo {
        position:absolute;
        left:20px;
        top:20px;
        width:200px;
        height:auto;
        z-index:1000;
    }
    #subheading {
        color: white; position: absolute; z-index: 1;
        font-size: 30px;
        font-weight:200;
        letter-spacing:-1px;
        opacity:0.2;
        text-align: center;
        width: 100%;
        top: 100px;
        left: 0;            
    }
    .hub-info-name {
        opacity:0.8;
        margin-bottom:5px;
    }
    .focus-area {
        display: inline-block;
        color: #eee;
        border-radius: 5px;
        padding:2px 8px;
        margin: 3px 4px;
        background-color: rgba(255,255,255,0.1);
    }
    .hub-name {
        font-size: 13px;
        margin-bottom:4px;
        padding-bottom:4px;
        font-weight: bold;
        color: rgba(255,255,255,0.8);
    }
    #footer {
        color: rgba(255,255,255,0.15); position: absolute; z-index: 1;
        font-size: 12px;
        text-align: center;
        width: 100%;
        bottom: 0;
        padding-bottom:20px;
        left: 0;
    }
    .focusAreaPills {
        position: absolute;
        top: 200px;
        left: 0;
        width: 100%;
        max-width: 1400px; 
        margin: 0 auto;    
        right: 0;         
        text-align: center;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
    }
    .focusAreaPill {
display: inline-block;
padding: 7px 14px;
margin: 6px 10px;
font-size: 13px;
font-weight: 500;
color: rgba(255, 255, 255, 0.6);
        
background: rgba(255, 255, 255, 0.07); 
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50px;
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px); 
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 

transition: all 0.2s ease-in-out;
}

.focusAreaPill:hover {
background: rgba(255, 255, 255, 0.18);
transform: translateY(-3px);
color: rgba(255,255,255,0.9) !important;
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.trending-topics {
position:absolute;
top:160px;
left:0;
width:100%;
text-align:center;
color:white;
opacity:0.8;
font-size:20px;
transition: all 0.2s ease-in-out;
}

/* Themes Popup Styles */
.themes-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(6, 18, 24, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: popupFadeIn 0.3s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.themes-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.themes-popup-header h3 {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 24px;
    font-weight: 600;
}

.close-popup {
    background: none;
    z-index: 10000;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Make focus area pills clickable */
.focusAreaPill {
    cursor: pointer;
    user-select: none;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
}

.loading-content {
    transition: all 0.15s ease-out;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 14px;
}

/* Themes and Hubs Sections */
.themes-section, .hubs-section {
    margin-bottom: 25px;
}

.themes-section:last-child, .hubs-section:last-child {
    margin-bottom: 0;
}

.themes-section h4, .hubs-section h4 {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
}

.themes-section h4 i, .hubs-section h4 i {
    margin-right: 8px;
    opacity: 0.7;
}

/* Smooth content transitions */
.themes-popup-content {
    padding: 20px 25px 25px 25px;
    transition: all 0.3s ease-out;
}

.themes-popup-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 80px;
}

.themes-popup-content li {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    line-height: 1.4;
}

.themes-popup-content li:last-child {
    border-bottom: none;
}

.themes-popup-content li:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -10px;
    padding: 8px 10px;
    border-radius: 5px;
}

.hubs-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hub-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hub-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hub-logo img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

/* Country Popup Styles */
.country-popup {
    position: fixed;
    background: rgba(6, 18, 24, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    z-index: 10001;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: countryPopupFadeIn 0.2s ease-out;
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes countryPopupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.country-popup .country-flag {
    font-size: 20px;
    flex-shrink: 0;
}

.country-popup .organization-name {
    color: white;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
