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;
    }

    .timeline-intro {
        font-family: 'The Bold Font', sans-serif;
        font-size: 2rem;
        color: #fefbee;
        margin: 0rem auto 0 auto; /* 1rem top margin, 0 bottom margin */
        padding: 5rem 2rem; /* 1rem top/bottom padding, 2rem left/right */
        text-align: center;
        max-width: 800px;
        background-color: #1a274aae;
      }
      
    
    
      /* slideshow styles */
      .slideshow-container {
        position: relative;
        display: flex;
        overflow-x: scroll;
        align-items: center;
        height: 667px;
      }

      #timeline-section .slideshow-container > section {
        min-width: 375px;
        height: 50%;
        margin: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        scroll-snap-align: start;
        transition: transform 0.2s ease-in-out; 
        position: relative;
      }
      
      #timeline-section .slideshow-container > section > img {
        position:absolute;
        top:0px;
        left:0px;
        transition:0.4s;
      }
    
        /* horizontal line */
        .timeline-line {
          position: absolute;
          top: 50%;
          left: 0;
          height: 4px;
          width: 7500px;
          background-color: #fefbee;
          z-index: 5;
          pointer-events: none;
          box-shadow: 0 0 6px rgba(0, 0, 0, 0.5); 
        }
    
        /* Small vertical dash in the center */
        .slideshow-container > section::after {
          content: '';
          position: absolute;
          top: 50%;
          left: 50%;
          width: 4px;
          height: 20px;
          background-color: #fefbee; /* same color as line */
          transform: translate(-50%, -50%);
          z-index: 6;
          pointer-events: none;
        }
    
        .slideshow-container > .spacer::after {
          display: none;
        }
    
        .timeline-spacer {
          flex-shrink: 0;
          width: auto;
          height: 100%;
          background: transparent;
          pointer-events: none;
        }
        
      .timeline-content {
        position: relative;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 2;
      }
    
      .top-half,
      .bottom-half {
        height: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1rem;
        z-index: 2;
        position: relative;
      }
    
      .timeline-image {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background-size: cover;
        background-position: center;
        z-index: 0;
        filter: grayscale(20%);
      }
    
        /* Text styles */
        .timeline-date,
        .timeline-caption {
          background-color: #991529a8; 
          padding: 0.5rem 1rem;
          color: #fefbee;
          text-shadow: none;
          font-size: 1rem;
          line-height: 1.4;
          max-width: 90%;
        } 
    
        .timeline-date {
          font-weight: bold;
          font-size: 2.2rem;
        }

      #timeline-explainer {
        padding: 4rem 2rem;
        background-color: #1a274ac1;
        color: #fefbee;
        font-family: 'The Bold Font', sans-serif;
      }
    
      .copy-container {
        display: flex;
        flex-direction: column; 
        gap: 1rem;
        margin: 1rem auto;
        padding: 0 1.5rem;
      }
      
      .copy-container .column {
        flex: 1 1 100%;
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
      }
      
      .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;
      }

      .home-button {
        position: fixed;
        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;
      }
      
      /* 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;
}
