  /* Inline styles for scrollbar hiding */
  .scrollbar-hide {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}


.popup-trigger:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 1000px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    cursor: pointer;
}

.clickable {
    cursor: pointer;
}

.highlight-dems {
    background-color: #bee3f8; /* Light blue for Democrats */
    color: #1c3d5a; /* Optional: change text color if needed */
}

.highlight-reps {
    background-color: #fed7d7; /* Light red for Republicans */
    color: #822727; /* Optional: change text color if needed */
}

.highlight-markets {
    background-color: #adadad; /* Light gray for Markets */
    color: #464646; /* Optional: change text color if needed */
}

.highlight-generic {
    background-color: #cfcfcf; /* Light gray for Markets */
    color:  #464646; /* Optional: change text color if needed */
}

.popup-content.highlight-dems {
    background-color: #bee3f8; /* Light blue for Democrats */
}

.popup-content.highlight-reps {
    background-color: #fed7d7; /* Light red for Republicans */
}

.popup-content.highlight-markets {
    background-color: #d4d4d4; /* Light gray for Markets */
}

.popup-content.highlight-generic {
    background-color: #d4d4d4; /* Light gray for Markets */
}


:root {
    /* Set default size for blue and red sections to 25px */
    --blue-size: 25px;
    --red-size: 25px;
}

html {
    height: 100%;
    /* Use CSS variables for blue and red sections size */
    background: linear-gradient(to right, #6565ff 1%, #dddddd var(--blue-size), #f7f7f7, #dddddd calc(100% - var(--red-size)), #ff5959 99%);
}

/* Media query to adjust sizes based on 5% of the viewport width */
@media (min-width: 500px) { /* 500px is the point where 5% is equal to 25px */
    :root {
        --blue-size: 5%;
        --red-size: 5%;
    }
}


body {
    min-height: 100vh; /* Ensures body takes up at least the viewport height */
    margin: 0 7%; /* Removes default margin */
    font-family: 'Libre Baskerville', serif;
    overflow-x: hidden;
}


/* THE FOLLOWING BLOCK IS FOR THE TUG OF WAR MARGIN */
.tugOfWarLine {
    width: 100%;
    height: 5px; /* Adjust as needed to fit the images */
    background-size: contain;
    position: relative;
}



#tugOfWarLine {
  width: 100%;
  height: 5px;
  /* Start the blue and red gradients slightly inside of each other for a smoother transition */
  background: linear-gradient(to right, blue 0%, blue 45%, red 55%, red 100%);
  position: relative;
}

.tugOfWarLittleLine {
  width: 80%;
  height: 2px; /* Adjust as needed to fit the images */
  background-size: contain;
  position: relative;
  margin-right: auto;
  margin-left: auto;
}

#tugOfWarLittleLine {
  width: 80%;
  height: 2px;
  /* Start the blue and red gradients slightly inside of each other for a smoother transition */
  background: linear-gradient(to right, blue 0%, blue 45%, red 55%, red 100%);
  position: relative;
}

/* THE FOLLOWING BLOCK IS FOR THE TUG OF WAR MARGIN */




/* fonts */
.libre-baskerville-regular {
    font-family: "Libre Baskerville", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .libre-baskerville-bold {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .libre-baskerville-regular-italic {
    font-family: "Libre Baskerville", serif;
    font-weight: 400;
    font-style: italic;
  }
  



  body #summaryContainer {
    position: fixed;
    right: 0;
    top: 0;
    width: 200px;
    background: #f0f0f0;
    height: 100%;
    overflow-y: auto;
    z-index: 50; /* Ensure it's above most content but below modal/popups */
  }
  
  body #summaryContainer .summaryItem {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #ddd; /* Add a subtle separator */
  }
  
  @media screen and (max-width: 768px) {
    body #summaryContainer {
      display: none; /* Hide summary on small screens */
    }
  
    #toggleSummary {
      display: block; /* Ensure toggle button is visible on small screens */
      position: fixed;
      right: 0;
      bottom: 0; /* Position it at the bottom-right corner */
      z-index: 51; /* Above the summary container */
    }
  }

  
  .header, .footer {
    width: 100vw;
    max-width: 100vw;
    position: fixed; /* Changed from 'relative' to 'fixed' for the header */
    top: 0; /* Added for the header to be fixed at the top */
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    padding-left: 5%;
    padding-right: 5%;
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    text-align: left;
    margin-right: 200px;
    z-index: 105; /* Ensure the header is above the summary container */
    background: #d6d6d6; /* Added background color for readability */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .header {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-size: clamp(1rem, 2rem, 2rem);
    font-weight: 700;
  }

  .header-content {
    display: flex;
    justify-content: space-between; /* Aligns items to the left and right */
    align-items: center; /* Centers items vertically */
    width: 100%;

}

  .logo-container {
    display: flex;
    align-items: center; /* Ensures the logo is vertically centered */
}

.company-logo {
  height: auto; /* Maintains the aspect ratio */
  max-width: 15%; /* Ensures the logo is responsive and scales with the screen width */
  min-width: 175px; /* Increased minimum width, adjust as needed */
}
  
  .footer {
    position: relative; /* Keep footer position relative for normal flow */
    bottom: 0; /* Align footer at the bottom */
    font-size: 0.75rem;
    font-weight: 400;
    text-align: center;
    background: #eeeeee;
  }
  
  .sectionName {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .subsectionName {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
  }
  
  #burgerMenu {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 110; /* Above the header and summary */
  }
  
  .burgerLine {
    width: 30px;
    height: 3px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
  }

  .mainTitle {
    padding-left: 15px; /* Default padding for smaller screens */
  }
  
  @media screen and (min-width: 768px) { /* Adjust the breakpoint as needed */
    .mainTitle {
      padding-left: 15%; /* Larger padding for larger screens */
    }
  }
  
  #summaryContainer {
    position: fixed;
    right: 0;
    top: 60px; /* Adjust based on the header's height */
    width: 200px;
    background: #f0f0f0;
    height: calc(100% - 60px); /* Adjust based on the header's height */
    overflow-y: auto;
    z-index: 100;
    display: none; /* Initially hidden */
    margin-top: 48px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
  }
  

  /* Article body with a smaller font size */
.article-body {
  font-size: 0.9rem; /* Adjust the size as needed */
}

/* Article title with a larger font size and bold */
.article-title {
  font-size: 1.25rem; /* Adjust the size as needed */
  font-weight: bold;
}



/* Base container styles */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 20px; /* Space between sections */
}

/* Styles for image and content containers */
.image-container, .content-container {
  flex: 1 1 50%; /* Take up to 50% width on desktop */
}

.image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.text-container {
  padding: 0 20px; /* Padding around text */
}

/* Desktop layout for Text on Right, Image on Left */
.tr-container .image-container { order: 1; }
.tr-container .content-container { order: 2; }

/* Desktop layout for Image on Right, Text on Left */
.it-container .image-container { order: 2; }
.it-container .content-container { order: 1; }

/* Mobile responsiveness */
@media (max-width: 768px) {
  .container {
    flex-direction: column; /* Stack children vertically */
  }

  .tr-container .image-container, .it-container .image-container,
  .tr-container .content-container, .it-container .content-container {
    flex-basis: 100%; /* Each child takes full width */
    order: 0; /* Reset order for default stacking */
  }

  /* Ensure text appears first in the mobile view for the .tr-container */
  .tr-container .content-container { order: -1; }
}





.republican-box {
  box-shadow: 0 0 15px 5px rgb(255, 196, 196); /* Red shadow with feathered effect */
  background: rgba(255, 196, 196, 0.7);
}

.democrat-box {
  box-shadow: 0 0 15px 5px rgba(196, 196, 255); /* Blue shadow with feathered effect */
  background: rgba(196, 196, 255, 0.7);
}