::selection {
    background: rgba(120, 220, 255, 0.3);
    color: rgba(120, 220, 255, 1);
    border-radius: 4px;
}

::-moz-selection {
    background: rgba(120, 220, 255, 0.3);
    color: rgba(120, 220, 255, 1);
    border-radius: 4px;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000813;  /* Slightly blue-tinted black */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hologram-wrapper {
    width: 95vw;
    height: 90vh;
    position: relative;
}

.holoviewer {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: rgb(0, 10, 20); /* Slightly lighter background */
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    cursor: default; /* Change from 'none' back to 'default' */
}

/* Replace checkerboard with horizontal scanlines */
.holoviewer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(120, 220, 255, 0.03) 0px,
        rgba(120, 220, 255, 0.03) 1px,
        transparent 1px,
        transparent 4px
    );
    animation: scanlineMove 20s linear infinite;
    z-index: -1;
}

.holoviewer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(
        circle at center,
        rgba(120, 220, 255, 0.05) 0%,
        rgba(120, 220, 255, 0.02) 40%,
        transparent 70%
    );
    animation: rotateGradient 30s linear infinite;
    z-index: -1;
}

.holoviewer-title-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.title-group {
    text-align: center;
}

.holoviewer-title {
    color: rgba(130, 225, 245, 1);
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 48px;
    text-shadow: 
        0 0 15px rgba(140, 235, 255, 0.9),
        0 0 30px rgba(120, 220, 255, 0.8),
        0 0 45px rgba(100, 200, 255, 0.6);
    line-height: 1;
    animation: titlePulse 4s ease-in-out infinite;
}

.holoviewer-subtitle {
    color: rgba(120, 220, 255, 0.7);
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 24px;
    text-shadow: 
        0 0 10px rgba(120, 220, 255, 0.3),
        0 0 15px rgba(120, 220, 255, 0.2);
    margin-top: 5px;
    animation: subtitlePulse 4s ease-in-out infinite 0.5s;
}

#infobutton {
    position: absolute;
    right: 0;
    color: rgba(120, 220, 255, 0.9);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

#infobutton:hover {
    color: rgba(120, 220, 255, 1);
}

#infobutton::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 0;
    top: 100%;
    width: 300px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(0, 20, 40, 0.95);
    color: rgba(120, 220, 255, 0.9);
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(120, 220, 255, 0.4);
    box-shadow: 
        0 0 20px rgba(120, 220, 255, 0.2),
        inset 0 0 20px rgba(120, 220, 255, 0.1);
    z-index: 10;
}

#infobutton:hover::after {
    opacity: 1;
    transform: translateY(5px);
}

.holoviewer-content {
    flex: 1;
    display: flex;
    gap: 20px;
    min-height: 0;
}

.viewscreen {
    flex: 2;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(0, 195, 255, 0.2);
    background: black; /* Solid black background */
    z-index: 1; /* Ensure it's above the background effects */
}

.sidepanel-to-viewscreen {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
    max-height: 100%;
}

.holo-panel {
    /* Flex properties for scrolling */
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    
    /* Visual styling */
    color: rgba(120, 220, 255, 0.9);
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    padding: 15px;
    border: 1px solid rgba(120, 220, 255, 0.2);
    border-radius: 10px;
    text-shadow: 0 0 10px rgba(120, 220, 255, 0.3);
    background: linear-gradient(
        135deg,
        rgba(0, 20, 40, 0.9) 0%,
        rgba(0, 40, 80, 0.8) 100%
    );
    box-shadow: 
        0 0 15px rgba(0, 195, 255, 0.1),
        inset 0 0 20px rgba(0, 195, 255, 0.05);
    position: relative;
    overflow: visible;
}

/* Add text cursor only to text content */
.holo-panel p,
.holo-panel span,
.anomaly-specific-info {
    cursor: text;
}

.info-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

/* Move the scanline effect to the shared class */
.holo-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 195, 255, 0.1),
        transparent
    );
    transform: skewX(-20deg);
    animation: scanline 8s linear infinite;
}

.hologram-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    pointer-events: none;
    z-index: 2;
    box-shadow: 
        0 0 20px rgba(0, 195, 255, 0.3),
        inset 0 0 20px rgba(0, 195, 255, 0.2),
        0 0 30px rgba(0, 195, 255, 0.1);
    border: 1px solid rgba(0, 195, 255, 0.4);
    animation: hologramFlicker 8s infinite, borderPulse 4s ease-in-out infinite;
}

@keyframes hologramFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
    52% { opacity: 1; }
    54% { opacity: 0.98; }
} 

@keyframes titlePulse {
    0%, 100% { 
        text-shadow: 
            0 0 15px rgba(140, 235, 255, 0.9),
            0 0 30px rgba(120, 220, 255, 0.8),
            0 0 45px rgba(100, 200, 255, 0.6);
    }
    50% { 
        text-shadow: 
            0 0 20px rgba(140, 235, 255, 1),
            0 0 40px rgba(120, 220, 255, 0.9),
            0 0 60px rgba(100, 200, 255, 0.7);
    }
}

@keyframes subtitlePulse {
    0%, 100% { text-shadow: 0 0 10px rgba(120, 220, 255, 0.3), 0 0 15px rgba(120, 220, 255, 0.2); }
    50% { text-shadow: 0 0 12px rgba(120, 220, 255, 0.4), 0 0 20px rgba(120, 220, 255, 0.3); }
}

@keyframes panelPulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(0, 195, 255, 0.1), inset 0 0 20px rgba(0, 195, 255, 0.05);
        border-color: rgba(0, 195, 255, 0.2);
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 195, 255, 0.2), inset 0 0 25px rgba(0, 195, 255, 0.1);
        border-color: rgba(0, 195, 255, 0.3);
    }
}

@keyframes scanline {
    0% { left: -150%; }
    100% { left: 150%; }
}

@keyframes borderPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 195, 255, 0.3), inset 0 0 20px rgba(0, 195, 255, 0.2), 0 0 30px rgba(0, 195, 255, 0.1); }
    50% { box-shadow: 0 0 25px rgba(0, 195, 255, 0.4), inset 0 0 25px rgba(0, 195, 255, 0.3), 0 0 35px rgba(0, 195, 255, 0.2); }
} 

/* Replace gridMove with scanlineMove */
@keyframes scanlineMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

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

.holo-select-container {
    position: relative;
    margin-top: 15px;
}

.holo-select {
    width: 100%;
    padding: 8px 35px 8px 15px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    color: rgba(64, 255, 248, 0.9);
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid rgba(64, 255, 248, 0.3);
    border-radius: 6px;
    appearance: none;
    cursor: pointer;
    outline: none;
    box-shadow: 
        0 0 10px rgba(64, 255, 248, 0.1),
        inset 0 0 10px rgba(64, 255, 248, 0.05);
    transition: all 0.3s ease;
    background-image: none;  /* Remove default arrow in some browsers */
}

.holo-select:hover, .holo-select:focus {
    border-color: rgba(64, 255, 248, 0.5);
    box-shadow: 
        0 0 15px rgba(64, 255, 248, 0.2),
        inset 0 0 15px rgba(64, 255, 248, 0.1);
}

.holo-select option {
    background: rgba(0, 20, 40, 0.95);
    color: rgba(64, 255, 248, 0.9);
    padding: 10px;
}

.holo-select option:checked,
.holo-select option:hover,
.holo-select option:focus {
    background: linear-gradient(
        90deg,
        rgba(64, 255, 248, 0.15) 0%,
        rgba(64, 255, 248, 0.3) 50%,
        rgba(64, 255, 248, 0.15) 100%
    );
    color: rgba(64, 255, 248, 1);
    text-shadow: 0 0 8px rgba(64, 255, 248, 0.5);
}

/* For Webkit browsers (Chrome, Safari) */
.holo-select::-webkit-listbox {
    background: rgba(0, 20, 40, 0.95);
    border: 1px solid rgba(64, 255, 248, 0.3);
    border-radius: 6px;
}

.holo-select::-webkit-listbox option:hover {
    background: linear-gradient(
        90deg,
        rgba(64, 255, 248, 0.15) 0%,
        rgba(64, 255, 248, 0.3) 50%,
        rgba(64, 255, 248, 0.15) 100%
    );
}

.holo-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(64, 255, 248, 0.7);
    pointer-events: none;
    font-size: 14px;
}

.holo-select:hover + .holo-select-arrow {
    color: rgba(64, 255, 248, 0.9);
} 

.custom-select {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.select-selected {
    width: 100%;
    padding: 8px 35px 8px 15px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    color: rgba(64, 255, 248, 0.9);
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid rgba(64, 255, 248, 0.3);
    border-radius: 6px;
    box-shadow: 
        0 0 10px rgba(64, 255, 248, 0.1),
        inset 0 0 10px rgba(64, 255, 248, 0.05);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.select-selected:hover {
    border-color: rgba(64, 255, 248, 0.5);
    box-shadow: 
        0 0 15px rgba(64, 255, 248, 0.2),
        inset 0 0 15px rgba(64, 255, 248, 0.1);
}

.select-items {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: rgba(0, 20, 40, 0.95);
    border: 1px solid rgba(64, 255, 248, 0.3);
    border-radius: 6px;
    box-shadow: 
        0 0 20px rgba(64, 255, 248, 0.1),
        inset 0 0 20px rgba(64, 255, 248, 0.05);
    z-index: 100;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.select-hide {
    display: none;
    pointer-events: none;
}

.select-item {
    padding: 10px 15px;
    color: rgba(64, 255, 248, 0.9);
    transition: color 0.2s ease, text-shadow 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background: transparent;
    text-shadow: 0 0 0 transparent;
}

/* Separate hover and selected states */
.select-item:hover {
    background: linear-gradient(
        90deg,
        rgba(64, 255, 248, 0.05) 0%,
        rgba(64, 255, 248, 0.15) 50%,
        rgba(64, 255, 248, 0.05) 100%
    );
    color: rgba(64, 255, 248, 1);
    text-shadow: 0 0 8px rgba(64, 255, 248, 0.3);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.select-item.selected {
    background: linear-gradient(
        90deg,
        rgba(64, 255, 248, 0.15) 0%,
        rgba(64, 255, 248, 0.3) 50%,
        rgba(64, 255, 248, 0.15) 100%
    );
    color: rgba(64, 255, 248, 1);
    text-shadow: 0 0 8px rgba(64, 255, 248, 0.5);
    position: relative;
}

/* Add a subtle indicator for the selected item */
.select-item.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: rgba(64, 255, 248, 0.6);
    box-shadow: 0 0 8px rgba(64, 255, 248, 0.4);
    border-radius: 2px;
    transition: transform 0.2s ease;
    transform-origin: center top;
}

/* Add rounded corners to first and last items in dropdown */
.select-item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.select-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.cursor-glow {
    position: fixed;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(
        circle at center,
        rgba(64, 255, 248, 0.0375) 0%,
        rgba(64, 255, 248, 0.025) 20%,
        rgba(64, 255, 248, 0.0125) 40%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
    margin-left: 2px;
    margin-top: 2px;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

.playback-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(
        to top,
        rgba(0, 20, 40, 0.8) 0%,
        transparent 100%
    );
    z-index: 2;
}

.play-pause-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(64, 255, 248, 0.4);
    border-radius: 6px;
    background: rgba(0, 20, 40, 0.8);
    color: rgba(64, 255, 248, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(64, 255, 248, 0.1),
        inset 0 0 10px rgba(64, 255, 248, 0.05);
    position: relative;
    z-index: 3;
    outline: none;  /* Remove focus outline */
    overflow: hidden;  /* Contain the ripple */
}

/* For browsers that don't respect outline: none */
.play-pause-btn:focus {
    outline: none;
    box-shadow: none;
}

.play-pause-btn:hover {
    border-color: rgba(64, 255, 248, 0.6);
    color: rgba(64, 255, 248, 1);
    box-shadow: 
        0 0 15px rgba(64, 255, 248, 0.2),
        inset 0 0 15px rgba(64, 255, 248, 0.1);
}

/* Ripple effect */
.play-pause-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(64, 255, 248, 0.4) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.play-pause-btn.ripple::after {
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.progress-container {
    width: 100%;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(64, 255, 248, 0.1);
    border-radius: 1px;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(64, 255, 248, 0.4);
    box-shadow: 0 0 10px rgba(64, 255, 248, 0.3);
}

.progress-handle {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: rgba(64, 255, 248, 1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 4px rgba(64, 255, 248, 0.6),
        0 0 8px rgba(64, 255, 248, 0.4),
        0 0 12px rgba(64, 255, 248, 0.2);
    pointer-events: none;
    transition: width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease;
}

.progress-container:hover .progress-handle {
    width: 12px;
    height: 12px;
    box-shadow: 
        0 0 6px rgba(64, 255, 248, 0.8),
        0 0 12px rgba(64, 255, 248, 0.6),
        0 0 18px rgba(64, 255, 248, 0.4);
} 

.anomaly-specific-info {
    margin-top: 15px;
    color: rgba(120, 220, 255, 0.8);
    font-size: 14px;
    line-height: 1.4;
    cursor: text; /* Add I-beam cursor for text content */
}

.anomaly-specific-info a {
    color: rgba(255, 180, 220, 0.9); /* Light pinkish magenta */
    text-decoration: none;
    transition: all 0.3s ease;
}

.anomaly-specific-info a:hover {
    color: rgba(255, 180, 220, 1); /* Brighter on hover */
    text-shadow: 0 0 8px rgba(255, 180, 220, 0.4);
} 

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin-top: 10px;
    min-height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
} 

.hidden {
    display: none;
} 

.link-wrapper {
    display: inline-block;  /* Ensure the wrapper doesn't break the text flow */
    position: relative;     /* Create a new stacking context */
    z-index: 1;            /* Ensure link is above other elements */
} 

/* Add specific hover state for selected item */
.select-item.selected:hover {
    background: linear-gradient(
        90deg,
        rgba(64, 255, 248, 0.25) 0%,
        rgba(64, 255, 248, 0.4) 50%,
        rgba(64, 255, 248, 0.25) 100%
    );
    color: rgba(64, 255, 248, 1);
    text-shadow: 0 0 12px rgba(64, 255, 248, 0.6);
} 