html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
  }  

/* Fonts */
 @font-face {
    font-family: 'American Average';
    src: url('../font/AmericanAverage-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'The Bold Font';
    src: url('../font/THEBOLDFONT-FREEVERSION.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }


/* Background */   
  .fixed-background-wrapper {
    background: url('../img/capitol.jpeg') center center / cover no-repeat fixed;
    background-color: #1A274A; /* fallback */
    filter: grayscale(45%);
    min-height: 100vh; /* 👈 this will force it to fill the screen */
    width: 100%; /* just in case */
    margin: 0;
    padding: 0;
    }

    .home-button {
        position: fixed !important;
        top: 1rem;
        right: 1rem;
        color: #991529;
        background-color: #fefbee;
        font-family: 'The Bold Font', sans-serif;
        font-size: 1.2rem;
        padding: 0.6rem 1rem;
        border-radius: 8px;
        text-decoration: none;
        z-index: 1000; /* make sure it stays on top */
        transition: background-color 0.3s ease;
      }
      
      .home-button:hover {
        background-color: #6f0f1f;
      }

#trends-section {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    min-height: 90vh; /* almost full screen height */
    padding: 2rem;
  }

  .trends-header{
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    font-family: 'American Average';
    text-align: center;
    color: #fefbee;
  }

  .trends-main-text{
    padding-top: 4.5rem;
    padding-bottom: 3rem;
    background-color: #1a274aa2;
  }

  .trends-graph-container {
    padding: 1rem;
    margin: 1rem auto;
    width: 90%; /* slightly narrower for smaller screens */
    max-width: none; /* remove max constraint */
    box-sizing: border-box;
    background-color: #fefbee;
  }
  
  .flourish-embed {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
  }
  
  .trends-graph {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
  }

  #trends-explainer {
    width: 100% !important;
    padding: 2rem 2rem;
    background-color: #1a274ac1;
    color: #fefbee;
    font-family: 'The Bold Font', sans-serif;
    box-sizing: border-box;
  }

  .mobile-learn-button {
    margin: 3rem auto 2rem auto;
    text-align: center;
  }
  
  .mobile-learn-button button {
    background-color: #1a274a;
    color: #fefbee;
    font-family: 'The Bold Font', sans-serif;
    font-size: 1.5rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 3rem;
  }

   /* FOOTER */
#site-footer {
    background-color: #1A274A;
    color: #fefbee;
    text-align: center;
    font-family: 'The Bold Font', sans-serif;
    font-size: 0.9rem;
    padding: 2rem 1rem;
    margin-top: 4rem;
  }
  
  .footer-content p {
    margin: 0.5rem 0;
  }

  .back-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    color: #991529;
    background-color: #fefbee;
    font-family: 'The Bold Font', sans-serif;
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #6f0f1f;
}
