
/* main {
    width: 100%;
    padding: 20px;
}

main > * {
    @apply max-w-7xl mx-auto
}

section {
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
} */

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
}

#confirmationBox {
  position: fixed;
  /* Keep it fixed at the top */
  top: 1%;
  /* Stick it to the top of the viewport */
  left: 50%;
  /* Start from the middle of the page */
  transform: translateX(-50%);
  /* Move it back 50% of its own width to center */
  width: 70%;
  /* Set it to 70% of the page width */
  z-index: 1000;
  /* Ensure it's above other content */
  justify-content: center;
  /* Center the content horizontally */
  margin: 0 auto;
  /* Center it */
}

#error_message_box,
#success_message_box {
  position: fixed;
  /* Keep it fixed at the top */
  top: 1%;
  /* Stick it to the top of the viewport */
  left: 50%;
  /* Start from the middle of the page */
  transform: translateX(-50%);
  /* Move it back 50% of its own width to center */
  width: 70%;
  /* Set it to 70% of the page width */
  z-index: 1000;
  /* Ensure it's above other content */
  justify-content: center;
  /* Center the content horizontally */
  margin: 0 auto;
  /* Center it */
}



/* Animated riksdagen diagram */

.riksdagen-chart {
  width: 340px;
  height: 200px;
  z-index: 0;
}

.riksdagen-chart-title {
  text-align: center;
  margin-bottom: 8px;
}

.riksdagen-chart svg {
  width: 340px;
  height: 200px;
  border: 1px solid #ccc;
  background: #fafafa;
  display: block;
}

.riksdagen-chart-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
  z-index: 1;
}

.riksdagen-chart circle {
  transition: filter 0.2s ease;
}

.riksdagen-chart-darken {
  filter: saturate(1.3) brightness(0.9);
}


.ai-summary { max-width: 75ch; line-height: 1.7; }
.ai-summary h1 { font-family: "Noto Serif", serif; font-size: 1.875rem; margin: 0 0 .75rem; }
.ai-summary h2 { font-size: 1.375rem; margin: 1.75rem 0 .5rem; }
.ai-summary p  { margin: .4rem 0 1rem; }
.ai-summary ul { list-style: disc inside; margin: .25rem 0 .75rem; }
.ai-summary li { margin: .2rem 0; }

/* Collapsed state */
.ai-collapsed { max-height: 300px; overflow: hidden; }

/* Bottom gradient fade when collapsed */
.ai-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  display: none;           /* hidden when expanded */
}
.ai-collapsed + .ai-fade { display: block; }

.cat {
  margin-left: 0.5rem
}


.cat-item {
  margin-left: 1rem
}

.ok-button {
  display: block;
  margin: 0.5rem auto;

  padding: 4px 12px;
  border: 1px solid #000;
  background: transparent;
  cursor: pointer;
}

.category-select .main-dropdown {
  max-height: 50vh;       
  overflow-y: auto;       
  overscroll-behavior: contain;
}