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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #000;
            overflow: hidden;
            color: #fff;
        }

        #canvas-container {
            width: 100vw;
            height: 100vh;
            position: relative;
        }

        #message-container {
    position: absolute;
    top: 20px;  /* Changed from bottom to top */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

        #message-container.visible {
            opacity: 1;
        }

        #message-text {
            font-size: 16px;
            line-height: 1.6;
            color: #e0e0e0;
            font-style: italic;
        }

        #person-info {
            position: absolute;
            background: rgba(0, 0, 0, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            padding: 15px;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            pointer-events: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            min-width: 200px;
        }

        #person-info.visible {
            opacity: 1;
        }

        #person-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.5);
            object-fit: cover;
            background: rgba(255, 255, 255, 0.1);
        }

        #person-avatar.anonymous {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: bold;
            color: white;
        }

        #person-avatar.anonymous-male {
            background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%); /* Blue for male */
        }

        #person-avatar.anonymous-female {
            background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%); /* Pink for female */
        }

        #person-avatar.anonymous-blank {
            background: linear-gradient(135deg, #666666 0%, #444444 100%); /* Gray for blank */
        }

        #person-name {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            text-align: center;
        }

        #person-religion {
            font-size: 13px;
            color: #a0a0a0;
            font-style: italic;
        }

        #person-location {
            font-size: 14px;
            color: #c0c0c0;
            text-align: center;
        }

        #loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 20px;
            color: #fff;
        }

        .fade-in {
            animation: fadeIn 0.8s ease-in;
        }

        .fade-out {
            animation: fadeOut 0.8s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        #category-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.category-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-btn::after {
    content: attr(data-name);
    position: absolute;
    bottom: -25px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0.8;
    font-family: 'Segoe UI', sans-serif;
}

.category-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.category-btn.active {
    background: rgba(255, 255, 255, 0.2);
    
}

.category-btn:not(.active) {
    opacity: 0.3;
    filter: grayscale(100%);
}




/* Mobile responsive styles */
@media (max-width: 768px) {
    #message-container {
        top: 10px;
        width: 90%;
        max-width: none;
        padding: 15px;
    }

    #message-text {
        font-size: 14px;
    }

    #person-info {
        padding: 10px;
        min-width: 160px;
        font-size: 14px;
    }

    #person-avatar {
        width: 50px;
        height: 50px;
    }

    #person-name {
        font-size: 14px;
    }

    #person-religion {
        font-size: 11px;
    }

    #person-location {
        font-size: 12px;
    }

    #category-buttons {
        bottom: 10px;
        padding: 10px 15px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 95%;
        -webkit-overflow-scrolling: touch;
    }

    .category-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .category-btn::after {
        font-size: 10px;
        bottom: -22px;
    }
}

@media (max-width: 480px) {
    #message-container {
        padding: 12px;
    }

    #message-text {
        font-size: 13px;
    }

    #person-info {
        padding: 8px;
        min-width: 140px;
    }

    #person-avatar {
        width: 45px;
        height: 45px;
    }

    #person-name {
        font-size: 13px;
    }

    #person-location {
        font-size: 11px;
    }

    .category-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-width: 2px;
    }

    .category-btn::after {
        font-size: 9px;
        bottom: -20px;
    }

    #category-buttons {
        gap: 6px;
        padding: 8px 12px;
    }
}

/* Landscape mobile */
@media (max-width: 900px) and (orientation: landscape) {
    #message-container {
        top: 5px;
        padding: 10px;
    }

    #category-buttons {
        bottom: 5px;
        padding: 8px 12px;
    }

    .category-btn {
        width: 40px;
        height: 40px;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .category-btn {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }

    .category-btn:active {
        transform: scale(0.95);
    }
}


/* Mobile category display */
#category-display {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
}

#current-category-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#current-category-btn:active {
    transform: scale(0.95);
}

#current-category-btn i {
    font-size: 18px;
}

@media (max-width: 768px) {
   
    #person-info {
        top: 250px !important;
        left: 50% !important;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
    }

  

    #category-buttons {
        bottom: 10px;
        padding: 8px 12px;
        gap: 6px;
        max-width: 100%;
        justify-content: center;
        position: fixed;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .category-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .category-btn::after {
        display: none; /* Hide labels on mobile */
    }
}


    #current-category-btn {
        padding: 8px 16px;
        font-size: 14px;
        font-size: 16px;
    }

  
    #category-display {
        bottom: 100px;
    }

    .category-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
