/* CSS rules for clickable infographics */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
}

/* Container equivalent to Bootstrap's container-fluid */
.container {
    width: 100%;
  /*   padding: 0 15px;  */
/*     margin: 0 auto;  */
}
/* Row equivalent to Bootstrap's row */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
/* Column base styles */
.col {
    padding: 0 15px;
}
/* Main content column (equivalent to col-md-9) */
.main-content {
    flex: 0 0 75%;
    max-width: 75%;
}

.modal-title {
    padding-left: 20px;
    font-size: larger;
}

/* Sidebar column (equivalent to col-md-3) */
.sidebar {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Custom Accordion Styles */
.custom-accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.accordion-panel {
    border-bottom: 1px solid #ddd;
}

.accordion-panel:last-child {
    border-bottom: none;
}

.accordion-header {
    background-color: #f8f9fa;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    position: relative;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header.active {
    background-color: #e9ecef;
}

.accordion-header:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

.accordion-header::after {
    /* Removed - arrows now handled in JavaScript */
}

.accordion-header.active::after {
    /* Removed - arrows now handled in JavaScript */
}

.accordion-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-title {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-panel.open .accordion-content {
    max-height: 1000px; /* Large enough value for content */
}

.accordion-body {
    padding: 20px;
    background-color: #fff;
}

.accordion-body ul {
    margin: 0;
    padding-left: 20px;
}

.accordion-body li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.accordion-body a {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

.accordion-body a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Responsive breakpoint for medium screens and below */
@media (max-width: 768px) {
    .main-content,
    .sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* Additional styling for demonstration */
#svg1 {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    min-height: 400px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}
#toc1 {
    list-style: none;
}
#toc1 li {
    margin-bottom: 10px;
    color: #495057;
}

/* Section title styles for sectioned_list */
.section-title {
    font-weight: bold;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 80%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}
.modal.show {
  display: block !important;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-backdrop.fade.show {
  opacity: 0.5;
}
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
  margin: 1.75rem auto;
  max-width: 90%;
}
.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}
body.modal-open {
  overflow: hidden;
}
/* Close button styles */
.close, .modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  cursor: pointer;
  background: transparent;
  border: 0;
  z-index: 1051;
}
.close:hover, .modal-close:hover {
  opacity: 0.75;
}