/* styles.css */
:root {
    --blue-bright: #0076c0; 
    --blue-dark: #003b71; 
    --accent-yellow: #ffc20e; 
    --light-gray: #f4f4f4; 
    --white: #ffffff;
    --text-dark: #1a1a1a;
  }
  
  h1,
  h2,
  h3 {
    font-family: "Merriweather", serif;
    text-align: center;
  }
  
  body {
    font-family: "Open Sans", sans-serif;
    margin: 0;
    background-color: var(--light-gray);
    color: var(--blue-dark);
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    background-color: var(--blue-dark);
    color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .nav-title {
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    color: var(--accent-yellow);
    letter-spacing: 0.5px;
    font-family: "Georgia", serif;
    transition: transform 0.2s ease-in-out;
  }
  
  .nav-title:hover {
    transform: scale(1.05) rotate(-1deg); /* Subtle hover pop */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  }
  
  /* Nav list */
  .nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin: 0;
    padding: 0;
  }
  
  /* Nav items */
  .nav-links li a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    color: var(--white);
  }
  
  .nav-links li a:hover {
    color: var(--blue-bright);
  }
  
  .card {
    width: 60%;
    margin: 0 auto 1rem;
    padding: 2rem;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
  }
  
  @media (max-width: 768px) {
    #intro {
      width: 90%;
      padding: 1.5rem;
    }
  }
  
  #intro h1 {
  }
  #intro p {
    font-size: 1rem;
  }
  
  .card .data-intro {
    margin-top: 2rem;
  }
  
  /* Visualization container styles - UPDATED */
  .visualization-container {
    width: 100%;
    height: 550px; /* Increased from 450px to 550px */
    margin: 1rem auto;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    overflow: visible; /* Changed from hidden to visible */
    background-color: #fff;
    padding-bottom: 50px; /* Added padding at the bottom */
    position: relative; /* Added position relative */
  }
  
  /* Add specific styling for the vega-embed container */
  .visualization-container .vega-embed {
    width: 100%;
    height: 100%;
  }
  
  /* Make sure the controls are visible */
  .visualization-container .vega-bind {
    margin-top: 10px;
    padding: 5px;
  }
  
  .viz-description {
    margin-top: 1rem;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
  }
  
  .error {
    color: #d32f2f;
    padding: 1rem;
    text-align: center;
  }
  
  @media (max-width: 600px) {
    .nav-links {
      flex-direction: column;
      gap: 1rem;
    }
  
    .visualization-container {
      height: 450px;
    }
  }
  