* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Funnel Display", sans-serif, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

body {
    background-color: #070713;
    color: #e0e0ff;
    overflow-x: hidden;
    min-height: 100vh;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    background: rgba(10, 10, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(100, 100, 255, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6a9eff;
    text-shadow: 0 0 10px rgba(106, 158, 255, 0.5);
    margin-bottom: 0.5rem;
}

.team-name {
    color: #9eff6a;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: #b0c4ff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.a-inline{
    color: #6a9eff;
    font-family: "IBM Plex Sans", sans-serif, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav a:hover, nav a.active {
    background: rgba(106, 158, 255, 0.2);
    color: #6a9eff;
}

main {
    max-width: 1400px;
    /* margin: 0 auto; */
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    /* padding: 0 15px; */
    /* min-height: calc(100vh - 120px); */
}

.page {
    display: block;
    animation: fadeIn 0.5s ease;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #6a9eff;
    text-shadow: 0 0 15px rgba(106, 158, 255, 0.3);
    text-align: center;

    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    color: #e0e0ff;
    /* border-bottom: 1px solid rgba(138, 180, 255, 0.3); */
    padding-bottom: 1rem;

    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    
}

h3 {
    font-size: 1.4rem;
    margin: 1.2rem 0 0.8rem;
    color: #9eff6a;

    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #9999b3;
    font-family: "IBM Plex Sans", sans-serif, 'Segoe UI', Tahoma, Geneva, Verdana;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.italic {
    font-style: italic;
}

.card {
    background: rgba(20, 20, 40);
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 5rem;
    border: 1px solid rgba(100, 100, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* text-align: center; */
    /* max-width: 50rem; */
    /* margin: 0 auto; */
}



.visualization-container {
    height: 500px;
    background: rgba(10, 15, 30);
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100, 100, 255, 0.2);
    overflow: hidden;
}

.visualization-placeholder {
    color: #8ab4ff;
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.comparison-card {
    background: rgba(20, 20, 40, 0.6);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(100, 100, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.comparison-visualization {
    height: 300px;
    background: rgba(10, 15, 30, 0.7);
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100, 100, 255, 0.2);
}


.insight-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.insight-list li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.pale-dot-image{
  width: 100%;
  height: 100%;
}


.pale-blue-dot {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(30, 30, 60, 0.5);
    border-radius: 8px;
    border-left: 4px solid #6a9eff;
}


.quote {
    font-style: italic;
    font-size: 1.2rem;
    color: #ffffff;
    margin: 1.5rem 0;
    text-align: center;
}

.author {
    text-align: right;
    color: #8eff24;
    margin-top: 0.5rem;
}



.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,.7); 
  margin: 10rem;

}

.quote{
    /* text-align: center; */
    padding: 1.5rem;
    margin: 0 auto;
}

.overlay h3{
    transform: translateY(-45rem);
}




 

footer {
    background: rgba(10, 10, 30, 0.8);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(100, 100, 255, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    main {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
    }
}

.exoplanets-visualization-container {
    background: rgba(10, 20, 40, 0.8);
    border: 1px solid rgba(80, 227, 194, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    position: relative;
    width: 100%;
    min-height: 400px;
}

.exoplanets-visualization {
    width: 100% !important;
    min-height: 400px;
    display: block;
}

.exoplanets-comparison-visualization {
    background: rgba(20, 30, 60, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    width: 100%;
}

#exoplanets-discovery-timeline,
#exoplanets-discovery-methods,
#exoplanets-interactive-explorer {
    width: 100% !important;
    min-height: 400px;
}

.vega-embed {
    width: 100% !important;
}

.vega-embed summary {
    color: #50E3C2 !important;
}

.exoplanets-loading {
    color: #50E3C2;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.exoplanets-error {
    color: #ff6b6b;
    text-align: center;
    padding: 2rem;
    font-style: italic;
    border: 1px dashed #ff6b6b;
    border-radius: 8px;
    width: 100%;
}

.exoplanets-loading::after {
    content: '...';
    animation: exoplanets-dots 1.5s steps(4, end) infinite;
}

@keyframes exoplanets-dots {
    0%, 20% { color: rgba(80, 227, 194, 0); text-shadow: 0.25em 0 0 rgba(80, 227, 194, 0), 0.5em 0 0 rgba(80, 227, 194, 0); }
    40% { color: #50E3C2; text-shadow: 0.25em 0 0 rgba(80, 227, 194, 0), 0.5em 0 0 rgba(80, 227, 194, 0); }
    60% { text-shadow: 0.25em 0 0 #50E3C2, 0.5em 0 0 rgba(80, 227, 194, 0); }
    80%, 100% { text-shadow: 0.25em 0 0 #50E3C2, 0.5em 0 0 #50E3C2; }
}

@media (max-width: 768px) {
    .exoplanets-visualization-container {
        padding: 10px;
        margin: 10px 0;
        min-height: 300px;
    }
    
    .exoplanets-visualization {
        min-height: 300px;
    }
    
    #exoplanets-discovery-timeline,
    #exoplanets-discovery-methods,
    #exoplanets-interactive-explorer {
        min-height: 300px;
    }
}











.worldmap-container {
    width: 100%;
    height: 520px;
    background: transparent;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(100, 100, 255, 0.3);
    box-shadow: 0 0 20px rgba(106, 158, 255, 0.2);
    position: relative;
}

#worldmap-view,
#worldmap-view > div,
#worldmap-view canvas {
    background: transparent !important;
}

.worldmap-visualization-container {
    background: rgba(10, 20, 40, 0.8);
    border: 1px solid rgba(80, 227, 194, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    position: relative;
}

.worldmap-controls {
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background: rgba(20, 20, 40, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(100, 100, 255, 0.2);
    backdrop-filter: blur(10px);
}

.worldmap-dropdown {
    padding: 10px 20px;
    background: rgba(30, 30, 60, 0.9);
    color: #e0e0ff;
    border: 1px solid rgba(106, 158, 255, 0.4);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.worldmap-dropdown:hover {
    border-color: rgba(80, 227, 194, 0.6);
    box-shadow: 0 0 10px rgba(80, 227, 194, 0.3);
}

.worldmap-dropdown:focus {
    outline: none;
    border-color: #50E3C2;
    box-shadow: 0 0 15px rgba(80, 227, 194, 0.5);
}

.worldmap-dropdown option {
    background: rgba(30, 30, 60, 0.95);
    color: #e0e0ff;
    padding: 10px;
}

.responsive-img {
    max-width: 100%;
    height: auto;
}

.button {
    background-color: #10102c;
    border: 2px solid #2270ff;
    border-radius: 2rem;
    color: #22ff59;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    letter-spacing: 1px;

    display: block;
    width: 250px;
    margin: 20px auto;
    text-align: center;
    

    box-shadow:
        0 0 8px #2270ff,
        0 0 15px #2270ff,
        0 0 25px rgba(34, 112, 255, 0.6);

    transition: 
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease,
        color 0.25s ease;
}

.button:hover {
    background-color: #121A33;
    color: #4284fe;

    transform: translateY(-3px);

    box-shadow:
        0 0 12px #2270ff,
        0 0 22px #2270ff,
        0 0 35px #2270ff,
        0 0 45px rgba(34, 112, 255, 0.9);
}

.button:active {
    transform: translateY(-1px);
    box-shadow:
        0 0 6px #2270ff,
        0 0 12px #2270ff,
        0 0 18px rgba(34, 112, 255, 0.5);
}



/* ==============================
   World Map Decade Slider
============================== */

.worldmap-slider-wrapper {
  
  
  gap: 12px;
  color: #b0c4ff;
  font-family: "IBM Plex Sans", sans-serif;
}

/* Remove default browser styling */
#worldmap-decadeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 220px;
  height: 6px;
  background: linear-gradient(
    90deg,
    #4a6fcc,
    #50e3c2
  );
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(80, 227, 194, 0.35);
}

#worldmap-decadeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #8ab4ff;
  border-radius: 50%;
  border: 2px solid #50e3c2;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(138, 180, 255, 0.8);
}





.worldmap-checkbox input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #4a6fcc;
  border-radius: 4px;
  background: transparent;

  position: relative;
}

.worldmap-checkbox input[type="checkbox"]:checked {
  background: #50e3c2;
  border-color: #50e3c2;
  box-shadow: 0 0 10px rgba(80, 227, 194, 0.8);
}

.worldmap-checkbox input[type="checkbox"]:checked::after {
  content: "✔";
  position: absolute;
  top: -3px;
  left: 1px;
  color: #0a1429;
  font-size: 15px;
  font-weight: bold;
}





/*Styling for Global UFO trends*/




.ufo-trends-view-wrapper {
  
  max-width: 280rem;
}

#ufo-trends-view {
  max-width: 280rem;
  
  
}


@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.event-icon {
    width: 16rem;
    height: 16rem;
    margin-left: 3rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #7ea9f8;
    border-radius: 10px;
    filter: drop-shadow(0 0 50px rgba(80, 227, 194, 0.5));
    animation: float 3s ease-in-out infinite;

}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.hover-text {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(15%, -51%);
  
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7ea9f8;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  background: #1c3263;
  padding: 6px 14px;
  border-radius: 20px;
}

.image-wrapper:hover .hover-text {
  opacity: 1;
}








/* IMPORTANT: allow Vega to display tooltips */
.vega-embed,
.vega-embed svg {
  overflow: visible !important;
}

/* Styling for the Voyager Embed Card */

#voyager-embed-container {
    width: 100%;
    /* 16:9 aspect ratio is good for videos/interactive content. 
       This helps the embed resize cleanly on mobile */
    aspect-ratio: 16 / 9; 
    min-height: 400px; 
}

#voyager-embed-container iframe {
    /* Ensure the iframe fills its container */
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* --- Discovery Methods Explained Section --- */

#discovery-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
}

.method-item {
    background: rgb(10 12 18 / 70%);
    border: 1px solid #1c3263;
    border-radius: 12px;
    padding: 15px;
    /* border-left: 4px solid #50E3C2; */
    position: relative; /* Crucial for image positioning */
    /* display: flex; */
    flex-direction: column;
    justify-content: space-between;
}

.method-header {
    /* display: flex; */
    align-items: center;
}

.method-header h3 {
    margin: 0;
    color: #8ab4ff;
    font-size: 1.2rem;
}

.method-icon {
    width: 70px;
    height: 70px;
    margin-right: 10px;
    object-fit: contain;
    /* filter: drop-shadow(0 0 5px rgba(80, 227, 194, 0.5)); */
}

/* Style for the image diagrams */
.method-item + img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid rgba(80, 227, 194, 0.2);
}

.method-explanation {
    /* Slight margin at the top to separate from the H3 */
    margin-top: 10px; 
    font-size: 0.95rem; 
    line-height: 1.5;
    color: #c0c0e0; /* A slightly dimmer color for body text */
}


/* --- Styles for Two Images Stacked Horizontally --- */

.image-stack-container {
    display: flex;         /* Use Flexbox for side-by-side layout */
    gap: 15px;             /* Space between the two images */
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 10px;       /* Ensure a little space from the card edges */
    justify-content: center; /* Center the images if the total width is less than container */
    align-items: flex-start; /* Aligns images to the top if they have different heights */
}

.stacked-image {
    /* Each image will take up equal space */
    flex: 1 1 50%; 
    max-width: 50%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* --- Mobile View (Stacking Vertically) --- */
/* For smaller screens, we can change the direction to vertical for better viewing. */
@media (max-width: 768px) {
    .image-stack-container {
        flex-direction: column; /* Stack images vertically on small screens */
        gap: 10px; /* Adjust vertical gap */
    }
    
    .stacked-image {
        max-width: 100%; /* Image takes full width of the container */
    }
}

.text-width{
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}