.dc-chart g.row text {
    fill: #000;
    font-size: 13px;
    font-weight: 500; 
}


.story-title {
    flex: wrap;
    font-size: 18px;
    font-weight: 600; 
    color: black;
    text-decoration: none;
    margin-right: 10px; 
    /* font-family: untitled-serif, serif; */
}

.story-count {
    font-size: 22px; 
    font-weight: 600; 
}

.state-story-count {
    font-size: 12px; 
    font-weight: 500; 
}

.story-filters {
    font-size: 18px; 
    font-weight: 500;
    opacity: 0.8;
}

.story-title:hover {
    text-decoration: underline;
}

.story-date {
    flex: wrap;
    font-size: 12px;
    font-weight: 500; 

    margin-left: 10px;
    margin-right: 10px; 
    margin-bottom: 20px; 
}

.story-authors {
    flex: wrap;
    font-size: 14px;
    font-weight: 500; 

    margin-left: 10px;
    margin-right: 10px; 
    margin-bottom: 20px; 
}


.story-topics-and-status {
    color: #060ff0;
    font-size: 14px;
    font-weight: 500;
}

.story-parties {
    flex: wrap;
    font-size: 17px;
    font-weight: 500; 
    margin-right: 10px; 
}

.story-excerpt{
    font-size: 14px;
    font-weight: 400; 
    line-height: -2px;

    margin-right: 10px; 
    margin-block-start: 2px;
    margin-block-end: 2px;
}

.story {
    display: flex;
    flex-direction: row;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #D3D3D3;
}

#chart-topic label {
    display: block;
    padding-right: 10px;
    padding-left: 20px;
    text-indent: -22px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
}

#title h1 {
    font-size: 48px;
    font-weight: 700;
    margin-top: 0px; 
    margin-bottom: 0px; 
}

#title h3 {
    font-size: 26px;
    font-weight: 600; 
    margin: 0px .1rem .5rem .2rem;
}


.state-img {
    padding-top: 16px;
    padding-right: 16px;
}

#filters {
    padding-top: 8px;
    font-size: 20px;
    font-weight: 500;   
}

.y-axis-label {
    font-size: 14px;
}


.clear-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 8px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 16px;
    height: 30px; /* Explicitly set height */
  }
  
  .clear-button:hover {
    background-color: #e0e0e0;
  }




.story {
    margin: .7rem .1rem .7rem .1rem;
}

.story-image {
    object-fit: cover;
    float: right;
}

.logo-image {
    float: left;
}

h3.story-title {
    font-size: .7em;
    margin: .3rem .1rem .1rem .2rem;
}



.story-body {
    margin-left: .5rem;
    overflow: auto;
}

.story-topic {    
    margin: .0rem .2rem .05em .2rem;  
    
    font-weight: 500;
    font-size: .6em;
    color: var(--red-text);
}

.media-outlet {    
    font-weight: 500;
    font-size: 1.4em;
}

.date-authors {    
    font-weight: 400;
    font-size: 1.2em;
}


p.story-headline {
    color: var(--black-text);
    font-size: .7em;
    margin: .3rem .2rem .1rem .2rem;  
    text-decoration: none;
}

p.story-excerpt {
    color: var(--grey-text);
    font-size: .6em;
    margin: .05rem .2rem .2rem .2rem;  
    text-decoration: none;
}



.story-body {
    cursor: pointer; 
    transition: background-color 0.3s ease; 
}

.story-body:hover {
    background-color: #f0f0f0; 
}


.filter-boxes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.filter-box {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 12px;
    background-color: #f5f5f5;
}

.filter-box-title {
    font-size: 0.8em;
    margin-bottom: 4px;
    color: #888;
}

.filter-box-values {
    font-size: 0.7em;
    color: #333;
    margin-bottom: 4px;
}


#filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#filters .right-links {
  display: flex;
  gap: 2px;
  margin-left: auto;   /* pushes them to the right */
}

#filters .github-link {
  position: static;   /* cancel the global absolute */
  display: inline-block;
  margin-right: 10px;
  text-decoration:none;
  padding-top: 0px;
  font-size: 16px;
  font-weight: 500;  
}

.github-link,
.github-link:visited,
.github-link:focus,
.github-link:active {
    color:#333;  
    font-weight:500;
}

#filters .github-link:hover {
    font-weight:700;  
}


#loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.2s ease;
}

.loading-hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-visible {
    opacity: 1;
    pointer-events: all;
}
.spinner {
    width: 200px;
    height: 200px;
    border: 40px solid #f3f3f3;
    border-top: 40px solid #9ecae1;
    border-radius: 90%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.story-image {
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

.story-image.loaded {
    opacity: 1;
}