#globe-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: linear-gradient(to bottom, #1e4877 0%, #4584b4 50%, #add8e6 100%);
    /* Maintain aspect ratio */
    aspect-ratio: 16 / 9;
    max-height: 600px;
}

#globe-container canvas {
    display: block;
    outline: none;
    width: 100%;
    height: 100%;
}

.globe-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.globe-description {
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

.globe-legend {
    font-size: 0.9em;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#globe-tooltip {
    position: fixed !important;
    background-color: rgba(30, 30, 30, 0.95) !important;
    color: white !important;
    padding: 10px !important;
    border-radius: 5px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5) !important;
    font-size: 14px !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    width: 200px !important;
    display: block !important;
    opacity: 1 !important;
}

/* Container for 3D tooltips - needed for proper positioning */
#globe-all-tooltips {
    font-family: Arial, sans-serif;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Tooltip dots that mark exact marker locations */
[id^="tooltip-dot-"] {
    animation: pulseDot 2s infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
}

/* Connecting lines between dots and tooltips */
[id^="tooltip-line-"] {
    animation: pulseLine 2s infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes pulseLine {
    0% {
        opacity: 0.3;
        height: 90%;
    }
    50% {
        opacity: 0.7;
        height: 100%;
    }
    100% {
        opacity: 0.3;
        height: 90%;
    }
}

/* 3D Tooltip styles - these are used in the canvas rendering for consistency */
.tooltip3d-content {
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    color: white;
}

.tooltip3d-type {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.tooltip3d-country {
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* Control buttons styling */
.globe-control-btn {
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.globe-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Marker info panel */
#marker-info-panel {
    font-family: Arial, sans-serif;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

#marker-info-panel strong {
    color: #ddd;
}

#marker-info-panel h3 {
    letter-spacing: 0.5px;
}

#marker-info-panel button:hover {
    color: #ff7777 !important;
}

/* Change all markers in the list to a checkmark emoji */
ul::marker {
  content: "✅ "; /* Add a space after the emoji for spacing */
  color: green;
  font-size: 1.2em;
}

/* Customize a specific list item's marker */
li.custom-marker::marker {
  content: "\25CF ";
  font-size: 24px;
  /*color: blue;*/
}

/* Avian influenza */
li.custom-marker.h5n1::marker { color: #FF0000; }
li.custom-marker.h5n2::marker { color: #00FFFF; }
li.custom-marker.h5n5::marker { color: #00157D; }
li.custom-marker.h5n6::marker { color: #0000FF; }
li.custom-marker.h9n2::marker { color: #FF8000; }
li.custom-marker.h10n3::marker { color: #8000FF; }

/* Swine influenza */
li.custom-marker.h1n1v::marker { color: #00FFFF; }
li.custom-marker.h1n2v::marker { color: #FFFF00; }
li.custom-marker.h3n2v::marker { color: #FF0080; }

/* Eurasian / Other */
li.custom-marker.eurasian-h1n1v::marker { color: #80FF00; }
li.custom-marker.mers-cov::marker { color: #0080FF; }


/* Reset view button */
.globe-reset-btn {
    transition: background-color 0.2s, transform 0.1s;
}

.globe-reset-btn:hover {
    background-color: rgba(255,255,255,0.9) !important;
}

.globe-reset-btn:active {
    transform: scale(0.95);
}

/* Add loading animation */
.globe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-size: 1.2em;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.globe-loading:after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(255,255,255,0);
        text-shadow:
            .25em 0 0 rgba(255,255,255,0),
            .5em 0 0 rgba(255,255,255,0);
    }
    40% {
        color: white;
        text-shadow:
            .25em 0 0 rgba(255,255,255,0),
            .5em 0 0 rgba(255,255,255,0);
    }
    60% {
        text-shadow:
            .25em 0 0 white,
            .5em 0 0 rgba(255,255,255,0);
    }
    80%, 100% {
        text-shadow:
            .25em 0 0 white,
            .5em 0 0 white;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #globe-container {
        height: 400px;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 480px) {
    #globe-container {
        height: 300px;
        aspect-ratio: 1 / 1;
    }
} 