body {
  font-family: sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  background: #f8f9fa;
  padding: .1em;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

h1 {
  color:	#0437F2;
}

.summary-h1 {
  font-size: 1.5em;      /* adjust to match your h1 */
  font-weight: bold;
  display: inline-block; /* keeps it inline so it doesn't force extra spacing */
  margin: 0.67em 0;     /* same as h1 default, tweak as needed */
  color:	#0437F2;

}


strong > em,
em > strong {
  color: #0077cc;
  font-size: 1.1em;
}

#pageWrapper {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;         /* ? Center the whole thing */
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}
/* === MAIN CONTENT === */
#content {
  flex: 1;
  padding: 0.05em 1em 1em 1em;
  overflow-y: auto;
  width: 80%;         /* ? Use percentage width */
  max-width: 1000px;  /* Optional: limit max width */
  margin: 0 auto;     /* ? Center horizontally */
  line-height: 1.5;   /* Optional: better readability */
}



footer {
  background: #f8f9fa;
  padding: .2em .1em;           /* Thicker vertically */
  /* text-align: center; */
  border-top: 1px solid #ddd;
  font-size: 0.75em;
}


/* Entire sidebar layout */


#sidebarNav {
  flex: 1;
  overflow-y: auto;
  padding: .51em;
}

/* === SEARCH (STICKY ABOVE BUTTONS) === */
#searchContainer {
  /* padding: 1em;
  border-top: 1px solid #ddd;
  position: sticky;
  bottom: 80px;
  background: #fefefe;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center; */
  background-color: #f0f8ff; /* soft blue to verify visibility */
} 

#searchContainer {
  padding: 1em;
  background: #fefefe;
  border-top: 1px solid #ddd;
  position: sticky;
  bottom: 3.5em; /* Adjust so it's above the buttons */
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}





#searchBox {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}


#searchResults {
  max-height: 150px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  margin-top: 0.4em;
  display: none;
}

#searchResults div {
  padding: 0.4em;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

#searchResults div:hover {
  background: #f0f0f0;
}

/* === NAVIGATION LINKS === */

/* Entire sidebar layout */
#sidebar {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95em;
  background: #fff;
  padding: 1em;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  height: 100%;
  width:25%;
}



/* Section summary (main chapter groupings) */
#sidebar summary {
  font-weight: 500;
  padding: 4px 0;
  color: #333;
  cursor: pointer;
  list-style: none;
}

/* Remove default triangle spacing */
#sidebar summary::marker {
  display: none;
}

/* Subchapter header (selected chapter) */
#sidebar summary.active {
  font-weight: 600;
  color: #004b88;
  border-left: 3px solid #0077cc;
  padding-left: 0.5em;
}

/* Subsection link */
#sidebar a {
  display: block;
  padding: 4px 1.5em;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 1.05em;
}

/* Italic entries */
#sidebar a i {
  font-style: italic;
  color: #555;
}

/* Hover and active link effects */
#sidebar a:hover {
  color: #0077cc;
  background: #f5faff;
}

#sidebar a.active {
  /* font-weight: bold; */
  color: #004b88;
  border-left: 3px solid #0077cc;
  padding-left: 1.2em;
  background-color: #f0f8ff;
}

/* Sub-subsection nesting indentation */
#sidebar details details a {
  padding-left: 12.5em;
}

#sidebar details a {
  padding-left: 5.5em;
}


#sidebarFooter {
  background: #fefefe;
  border-top: 1px solid #ddd;
}


/* === BOTTOM CONTROLS (PREV/NEXT BUTTONS) === */
/* Make sure buttons are sticky at the bottom */
#sidebarControls {
  position: sticky;
  bottom: 0;
  background: #fefefe;
  display: flex;
  justify-content: space-between;
  padding: 1em;
  border-top: 1px solid #ddd;
  z-index: 1;
}



#sidebarControls button {
  width: 48%;
  padding: 0.6em;
  font-size: 0.895em;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 2.5px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


#sidebarControls button:hover:not(:disabled) {
  background-color: #005fa3;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

#sidebarControls button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}




/* Default style for section summary */
#section-summary {
  padding-left: 0;
  margin-left: 0;
  font-weight: 500;
}

/* Optional: tighten up the alignment of its anchor tag */
#section-summary a {
  padding-left: 0;
  margin-left: 0;
  /* display: inline-block; */
}


/* Default style for section summary */
#chapter-summary {
  padding-left: 0;
  margin-left: 0;
  font-size: 1.05em;
  font-weight: 500;
  /* font-weight: bold; */
}

/* Optional: tighten up the alignment of its anchor tag */
#chapter-summary a {
  padding-left: 0;
  margin-left: 0;
  /* font-weight: bold; */
  /* display: inline-block; */
}

#chapter-summary a.active {
  /* font-weight: bold; */
  color: #004b88;
  border-left: 3px solid #0077cc;
  background-color: #f0f8ff;
  font-weight: 600;
}


/* Hover and active link effects */
.section-summary a:hover {
  color: #0077cc;
  background: #f5faff;
}

.section-summary a.active {
  /* font-weight: bold; */
  color: #004b88;
  border-left: 3px solid #0077cc;
  background-color: #f0f8ff;
}

#sidebar .section-summary  {
  font-size: 1.05em;
  padding-left: 0.1em;       /* Align to the far left */
  /*font-weight: bold;     /* Optional: match summary style */
  background: none;      /* Reset any hover bg if needed */
  border-left: none;     /* Reset any border */
  color: #333;           /* Match summary text color */
  display: inline-block; /* Optional: tighter layout */
}

#sidebar a.section-link {
  padding-left: 0.1em;       /* Align to the far left */
  /*font-weight: bold;     /* Optional: match summary style */
  background: none;      /* Reset any hover bg if needed */
  border-left: none;     /* Reset any border */
  color: #333;           /* Match summary text color */
  display: inline-block; /* Optional: tighter layout */
}

#sidebar a.section-link.active {
  /* font-weight: bold; */
  color: #004b88;
  border-left: 3px solid #0077cc;
  background-color: #f0f8ff;
}



  /*content: "▼";  /* Downward arrow by default */



details > summary::after {
  padding-top: .95em;
  margin-left: 0.5em; 
  font-size: 0.5em;
}

/* Rotate the arrow when the details are open */
details[open] > summary::after {
  padding-top: 0.25em;
  margin-left: 0.5em;
  font-size: 0.5em;
}







#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3); /* soft dimming */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

/* Show with fade-in when sidebar is open */
.sidebar-open #overlay {
  opacity: 1;
  visibility: visible;
}

#overlay {
  cursor: pointer;
}

.cardYellowBack {
  background: #FFFFE0;
  border: 1px solid #b4e9a6;
  border-left: 5px solid grey;
  padding: .1em 1em;
  /* margin: 1.5em 1.5em 1.5em 1.5em; */
  margin: 0.5em ;
  border-radius: 3px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}
.cardYellowBack-title {
  font-weight: bold;
  background: #FFFF8F;
  /* margin-bottom: 0.5em; */
  font-size: 1.1em;
}

.cardSilvia {
  background: #e7d2fc;
  border: 1px solid #0077cc;
  border-left: 5px solid #af96ba;
  padding: .1em 1em;
  /* margin: 1.5em 1.5em 1.5em 1.5em; */
  margin: 1em 2.5em 0.5em 2.5em;
  border-radius: 6px;
  box-shadow: 0px 2px 6px #af96ba;
  font-style: italic;
  font-size: 0.85em;
}
.cardSilvia-title {
  background: #e7d2fc;
  /*color: #af96ba;*/
  font-weight: bold;
  font-style: italic;
}


.card {
  background: #f8f8f8;
  border: 1px solid #0077cc;
  border-left: 5px solid #0077cc;
  padding: .1em 1em;
  /* margin: 1.5em 1.5em 1.5em 1.5em; */
  margin: 0.5em ;
  border-radius: 1px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}


.card-title {
  font-weight: bold;
  margin-bottom: 0.05em;
  padding: 0 5px 0 5px;
  font-size: 1.1em;
  background: #f0f0f0;
  border-radius: 12px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);

}


.cardSilviaxxx {
  background: #f9f9f;
  border: 1px solid #0077cc;
  border-left: 5px solid #0077cc;
  padding: .1em 1em;
  /* margin: 1.5em 1.5em 1.5em 1.5em; */
  margin: 2.5em ;
  border-radius: 1px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

.cardSilviaxxx-title {
  background: #f9f9f9;
  color: #007bff;
}

ul li,
ol li {
  margin-bottom: 0.5em;  /* Adjust this value as needed */
  line-height: 1.25;      /* Optional: makes multi-line bullets easier to read */
}




/* Style the outer <details> */
details.dropdown {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 1em 0;
  background-color: #f9f9f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border-left: 3px solid grey;
}

/* Style the <summary> title line */
details.dropdown > summary {
  background-color: #f5f6f8;
  padding:5px 2px;
  font-weight: 600;
  font-size: 1.1em;
  list-style: none;
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  /*display: flex;*/
  align-items: center;
  justify-content: space-between;
}

/* Add a custom arrow */
details.dropdown > summary::after {
  /*content: "▾";
  font-size: 1.1em;*/
  color: #666;
  transition: transform 0.2s ease;
}

/* Rotate the arrow when open */
details[open].dropdown > summary::after {
  transform: rotate(90deg);
}

/* Remove default disclosure triangle */
details.dropdown > summary::-webkit-details-marker {
  display: none;
}

/* Inner content of the dropdown */
.dropdown-body {
  padding: 1em;
  background-color: #fff;
}



 .dropdown summary::marker {
  content: "▶ ";

}

.dropdown[open] summary::marker {
  content: "▼ ";

} 



/* table */
/* Base table style */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  font-size: 1em;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Header row */
thead {
  background-color: #f5f6f8;
}

th {
  padding: 0.75em;
  text-align: left;
  border-bottom: 2px solid #2f80ed; /* blue line */
  font-weight: bold;
  color: #333;
}

/* Data cells */
td {
  padding: 0.75em;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

/* Zebra striping */
tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Emojis spaced nicely */
td:first-child {
  white-space: nowrap;
}

details.cardAllGrey {
  border: 1px solid #ddd;
  border-left: 3px solid grey;
  background-color: #f5f6f8;
  border-radius: 6px;
  padding:5px 25px;
  margin: 1em 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;

}


details.cardAllGrey > summary {
  background-color: #f5f6f8;
  padding:0px 0px;
  font-weight: 600;
  font-size: 1.1em;
  list-style: none;
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  /*display: flex;*/
  align-items: center;
  justify-content: space-between;
}

.cardAllGrey .dropdown-body {
  padding: .5em;
  background-color: #f5f6f8;
}

details.cardBlueBack {
  border: 1px solid #a3d3f5;
  border-left: 5px solid #0077cc;
  background-color: #e2f0fb;
  border-radius: 6px;
  padding:5px 25px;
  margin: 1em 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}


details.cardBlueBack > summary {
  border-left: 0px solid #0077cc;
  background-color: #e2f0fb;
  padding:0px 0px;
  font-weight: 600;
  font-size: 1.1em;
  list-style: none;
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  /*display: flex;*/
  align-items: center;
  justify-content: space-between;
}

.cardBlueBack .dropdown-body {
  background-color: #e2f0fb;
}

details.cardYellowBack {
  background: #FFFFE0;
  border: 1px solid #b4e9a6;
  border-left: 5px solid grey;
  padding: .01em .1em;
  /* margin: 1.5em 1.5em 1.5em 1.5em; */
  margin: 0.5em ;
  border-radius: 3px;
  /* box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05); */
}


details.cardYellowBack > summary {
  font-weight: bold;
  background: #FFFF8F;
  /* margin-bottom: 0.5em; */
  font-size: 1.1em;
  border-left: 0px solid grey;
}

.cardYellowBack .dropdown-body {
  background-color: #FFFFE0;
}

details.cardYellowBackGrey {
  background: #FFFFE0;
  border: 1px solid #b4e9a6;
  border-left: 5px solid grey;
  padding: 0.01px;
  /* margin: 1.5em 1.5em 1.5em 1.5em; */
  margin: 0.5em ;
  border-radius: 3px;
  /* box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05); */
}


details.cardYellowBackGrey > summary {
  font-weight: bold;
  background: #FFFF8F;
  padding:5px 30px;
  /* margin-bottom: 0.5em; */
  font-size: 1.1em;
  border-left: 0px solid grey;
}

.cardYellowBackGrey .dropdown-body {
  background-color: #f9f9f9;
}



.dropdown .dropdown {
  margin-left: 1.25em;
  border-left: 2px dashed #aaa;
}

h4 {
  margin: 10px
}
p {
  margin: 5px
    text-indent: 30px; /* Indents all paragraphs by 30 pixels */
}
ul {
  margin: 0px
}
ol {
  margin: 0px
}






/* mobile-device settings*/
.img-float-right,
.img-float-left {
  width: 35%;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  margin: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-float-right {
  float: right;
  margin-left: 15px;
}

.img-float-left {
  float: left;
  margin-right: 15px;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .img-float-right,
  .img-float-left {
    float: none;
    width: 100%;
    margin: 1em 0;
  }
}




#sidebarToggle {
  display: none;
  font-size: 1.5em;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 1em;
  top: 1em;
  z-index: 1001;
}


/* READING OPTIONS */
.reading-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.25em;
  margin: 0 auto;
  max-width: 1000px;
  padding: 0 1em;
}

.reading-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.reading-card h4 {
  color: blue;
  margin-top: 0;
  margin-bottom: 0.005em;
  font-size: 1.0em;
}

.reading-card p {
  flex-grow: 1;
  font-size: 0.95em;
  line-height: 1.05;
}



.reading-button {
  display: inline-block;
  margin-top: 0.005em;
  padding: 0.06em 0.5em;
  background: #FFFFE0;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease-in-out;
}

.reading-button:hover {
  background: #004999;
}
/* end of READING OPTIONS */








/* Show it on small screens only */
@media (max-width: 768px) {
  #sidebarToggle {
    display: block;
  }
}


/* === Responsive layout === */
@media (max-width: 768px) {
  #sidebarToggle {
    display: block;
  }

  #layout {
    flex-direction: column;
  }



  #sidebar.open {
    left: 0;
  }

  #content {
    padding: 1em;
    flex: none;
  }

  body.sidebar-open {
    overflow: hidden; /* prevent background scroll */
  }
}






