/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
}

.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 1;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }


/* ==========================================================================
   YOUR CUSTOM ANNOTATION LABEL STYLES - UNCHANGED
   This section styles the small, circular clickable points.
   ========================================================================== */
.v3d-annotation {
    /* Remove default styles */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    
    /* Apply solid white styling instead of glassmorphism */
    background: #fefefe !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important; /* Make it circular */
    
    /* Typography */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 10px !important; /* Smaller font size */
    font-weight: 600 !important;
    color: black !important;
    text-align: center !important;
    
    /* Layout */
    padding: 6px !important; /* Smaller padding */
    width: 30px !important; /* Fixed width for circular shape */
    height: 30px !important; /* Fixed height for circular shape */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Animation */
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    
    /* Positioning */
    transform-origin: center center !important;
    z-index: 1000 !important;
}

/* Hover state for annotation labels */
.v3d-annotation:hover {
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Active/clicked state for annotation labels */
.v3d-annotation.active,
.v3d-annotation:active {
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

/* Semi-transparent annotation labels */
.v3d-annotation-transparent {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important; /* Make it circular */
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 9px !important; /* Smaller font size */
    font-weight: 500 !important;
    color: rgba(0, 0, 0, 0.7) !important;
    
    padding: 4px !important; /* Smaller padding */
    width: 25px !important; /* Fixed width for circular shape */
    height: 25px !important; /* Fixed height for circular shape */
    transition: all 0.3s ease !important;
}

.v3d-annotation-transparent:hover {
    background: #ffffff !important;
    color: black !important;
}

/* ==========================================================================
   REVISED ANNOTATION DIALOG BOX - THIS IS THE NEW STYLE
   This section styles the pop-up box that appears at the bottom.
   ========================================================================== */
.v3d-annotation-dialog {
    /* Positioning: Fixed to the bottom-center of the screen */
    position: fixed !important;
    bottom: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    /* Appearance: Solid white background as requested */
    background-color: white !important;
    backdrop-filter: none !important; /* IMPORTANT: Turn off glassmorphism */
    color: #333333 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e0e0e0 !important;
    
    /* Sizing & Spacing */
    width: 90% !important;
    max-width: 700px !important;
    padding: 25px !important;
    
    /* High z-index to ensure it's on top of all other page content */
    z-index: 2000 !important;
    
    /* Other */
    opacity: 1 !important;
    transition: opacity 0.3s ease, bottom 0.3s ease !important;
    pointer-events: auto !important;
}

/* Style for the Title inside the box */
.v3d-annotation-dialog h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #0056b3 !important; /* A professional blue for the title */
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #eeeeee !important;
    text-transform: none !important; /* Use normal case for titles */
    letter-spacing: 0 !important;
}

/* Style for the Description Text inside the box */
.v3d-annotation-dialog p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #333333 !important;
}

/* Style for the default close button that Verge3D creates */
.v3d-annotation-close-button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 30px !important;
    height: 30px !important;
    background-color: #f1f1f1 !important;
    border-radius: 50% !important;
    text-align: center !important;
    line-height: 30px !important;
    font-size: 20px !important;
    color: #555 !important;
    cursor: pointer !important;
    transition: background-color 0.2s, color 0.2s !important;
}

.v3d-annotation-close-button:hover {
    background-color: #e0e0e0 !important;
    color: #000 !important;
    transform: none !important; /* Remove scaling from previous style */
}

/* ==========================================================================
   YOUR OTHER CUSTOM STYLES - UNCHANGED
   ========================================================================== */

/* Pulse animation for attention-grabbing annotations */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
}

.v3d-annotation.pulse {
    animation: pulse-glow 2s infinite !important;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    /* This only affects the small circular labels on mobile */
    .v3d-annotation {
        font-size: 8px !important; /* Even smaller for mobile */
        padding: 4px !important;
        width: 25px !important;
        height: 25px !important;
    }
    
    /* The dialog box is already responsive due to width: 90% */
}

/* Custom annotation types */
.v3d-annotation.info {
    background: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #1e40af !important;
}

.v3d-annotation.info:hover {
    background: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.v3d-annotation.warning {
    background: #ffffff !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #92400e !important;
}

.v3d-annotation.warning:hover {
    background: #ffffff !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

.v3d-annotation.success {
    background: #ffffff !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    color: #166534 !important;
}

.v3d-annotation.success:hover {
    background: #ffffff !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}