/* __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); }

/* Style the annotation divs directly */
.v3d-annotation {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.4) 0%, rgba(0, 217, 255, 0.15) 70%, transparent 100%) !important;
    border: 1.5px solid rgba(0, 217, 255, 0.6) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 6px rgba(0, 217, 255, 0.3), 0 0 12px rgba(0, 217, 255, 0.15) !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 900 !important;
    color: transparent !important;
    text-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: opacity 0.6s ease-in-out !important;
    position: relative !important;
    line-height: 1 !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

.v3d-annotation::before {
    content: '?' !important;
    font-size: 13px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #00d9ff !important;
    text-shadow: 0 0 4px rgba(0, 217, 255, 0.6) !important;
    text-indent: 0 !important;
}

/* Annotation Dialog Popup */
.v3d-annotation-dialog {
    background: rgba(20, 24, 30, 0.6) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(0, 217, 255, 0.4) !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(0, 217, 255, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.1),
                inset 0 0 60px rgba(0, 217, 255, 0.05) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    max-width: 320px !important;
    min-width: 240px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: absolute !important;
    left: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    text-indent: 0 !important;
    overflow: visible !important;
    z-index: 10 !important;
}

.v3d-annotation:hover,
.v3d-annotation-dialog:hover {
    border-color: rgba(0, 217, 255, 0.7) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(0, 217, 255, 0.5),
                inset 0 2px 4px rgba(255, 255, 255, 0.15),
                inset 0 0 80px rgba(0, 217, 255, 0.08) !important;
}

/* Annotation Hotspot Marker/Icon */
.v3d-annotation-hotspot {
    background: radial-gradient(circle, rgba(0, 217, 255, 0.4) 0%, rgba(0, 217, 255, 0.15) 70%, transparent 100%) !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border: 2px solid rgba(0, 217, 255, 0.6) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.3),
                0 0 15px rgba(0, 217, 255, 0.15),
                inset 0 0 4px rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    transition: opacity 0.6s ease-in-out, box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    animation: annotationPulse 2.5s ease-in-out infinite !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #00d9ff !important;
    text-shadow: 0 0 6px rgba(0, 217, 255, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transform: none !important;
}

.v3d-annotation-hotspot::before {
    content: '?' !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Override Verge3D's default annotation animations */
.v3d-annotation-hotspot[style*="visibility: hidden"],
.v3d-annotation-hotspot[style*="opacity: 0"] {
    opacity: 0 !important;
    visibility: hidden !important;
}

.v3d-annotation-hotspot[style*="visibility: visible"],
.v3d-annotation-hotspot:not([style*="visibility: hidden"]) {
    opacity: 1 !important;
    visibility: visible !important;
}

.v3d-annotation-hotspot:hover {
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.6),
                0 0 25px rgba(0, 217, 255, 0.3) !important;
    animation: none !important;
}

@keyframes annotationPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(0, 217, 255, 0.3),
                    0 0 15px rgba(0, 217, 255, 0.15),
                    inset 0 0 4px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 12px rgba(0, 217, 255, 0.5),
                    0 0 20px rgba(0, 217, 255, 0.25),
                    inset 0 0 6px rgba(255, 255, 255, 0.3);
    }
}

/* Since the HTML doesn't have title/description classes, style based on content structure */
.v3d-annotation-dialog::first-line {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #00d9ff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Annotation Close Button */
.v3d-annotation-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 18px !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

.v3d-annotation-close:hover {
    background: rgba(255, 80, 80, 0.8) !important;
    transform: rotate(90deg) !important;
}
