/* Whole document: */
body{
    font-family: "Lato"; sans-serif;
    font-family: "CMU Serif", serif;
}

.book .book-body .page-wrapper .page-inner section.normal h1.title {
  display: block;           /* put on its own line */
  font-size: 1.5em;          /* smaller text */
  font-weight: normal;       /* optional: make lighter */
  color: #5B83BF;               /* optional: gray text */
  margin-bottom: 0em;
  padding-bottom: 0em;
  border-bottom: 0px 
}


/* Make "Chapter" + number small */
.book .book-body .page-wrapper .page-inner section.normal h1 .header-section-number {
  display: block;           /* put on its own line */
  font-size: 0.7em;          /* smaller text */
  font-weight: normal;       /* optional: make lighter */
  font-style: italic; 
  color: #5B83BF;               /* optional: gray text */
  margin-bottom: 0.3em;
}


/* Make the actual chapter title big */
.book .book-body .page-wrapper .page-inner section.normal h1 {
    font-size: 2em;                 /* large title */
    font-weight: bold;
    margin-top: 0;                  /* remove extra space above */
    line-height: 1.2;
    border-bottom: 2px solid black; /* black line */
    padding-bottom: 0.3em;          /* space between title text and line */
    margin-bottom: 20px;             /* space after line */
}

/* 2nd header */
.book .book-body .page-wrapper .page-inner section.normal h2 {
    border-top: 2px solid #bebebe; /* grey line */
    padding-top: 10px;
    padding-bottom: 10px;
}

footer {
    border-top: 2px solid black; /* black line */
    
}

footer p {
     text-align: center;
}


p.caption {
  color: #777;
  margin-top: 10px;
  margin-left: 10px;
  margin-right: 150px;
  text-align: center;
  
}

p {
    text-align: justify;
    margin-top: 10px;
    margin-bottom: 10px;
}


p code {
  white-space: inherit;
}

pre {
  word-break: normal;
  word-wrap: normal;
}




.book .book-body .page-wrapper .page-inner section.normal blockquote, .book .book-body .page-wrapper .page-inner section.normal dl, .book .book-body .page-wrapper .page-inner section.normal ol, .book .book-body .page-wrapper .page-inner section.normal p, .book .book-body .page-wrapper .page-inner section.normal table, .book .book-body .page-wrapper .page-inner section.normal ul {
    margin-top: 5px;
    margin-bottom: 5px;
}

#header .date {
    margin-top: 5px;
}

.book .book-body .page-wrapper .page-inner section.normal pre {
    overflow: auto;
    word-wrap: normal;
    margin: 0 0 1.275em;
    padding: .85em 1em;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 7px; 
    
}



pre code {
  white-space: inherit;
}



.ol ul{
    margin-bottom: 15px;
}

summary p {
  margin: 0; /* Remove default margin from the <p> tag */
  display: inline; /* Display text inline */
}

.highlight-box {
  padding: 10px;          /* Padding inside the box */
  background-color: #f9f9f9; /* Background color */
  border-radius: 15px;     /* Rounded corners */
  margin: 15px 0;         /* Margin around the box */
  border-left: 0.8rem solid black;      /* Margin around the box */
  border-top: 1px solid black;      /* Margin around the box */
  border-bottom: 1px solid black;      /* Margin around the box */
  border-right: 1px solid black;      /* Margin around the box */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); 
}

.exercise-box {
  border: 2px solid #ccc; /* Border color */
  padding: 10px;          /* Padding inside the box */
  background-color: #FFFFCE; /* Background color */
  border-radius: 10px;     /* Rounded corners */
  margin: 15px 0;         /* Margin around the box */
}

.exercise {
  padding: 10px;          /* Padding inside the box */
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: 0px;
  margin-right: 0px;
  background-color: #FFFFCE; /* Background color */
  border-left: 0.8rem solid #D0B938;
  border-radius: 15px;     /* Rounded corners */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

table{
    margin-left: auto;
    margin-right: auto;
}

.exercise p {
    margin-bottom: 0 !important;
    padding: 10px; 
}

.exercise ul p {
    margin-bottom: 0 !important;
    padding: 5px; 
}

.exercise p span.exercise {
    padding-top: 0px;
    margin-left: 0px;
    padding-left: 0px;
    border-left: 0rem;
    box-shadow: 0px 0px;
}

.note-box {
  padding: 20px;          /* Padding inside the box */
  background-color: #F7F7F7; /* Background color */
  border-radius: 20px;     /* Rounded corners */
  margin: 15px 0;         /* Margin around the box */
  font-style: italic;
  color: #898989;
  
}

.theorem{
  padding: 10px;          /* Padding inside the box */
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: 0px;
  margin-right: 0px;
  background-color: #DDF2D1; /* Background color */
  border-radius: 15px;     /* Rounded corners */
  border-left: 0.8rem solid green;
  text-align: justify;
  text-indent: 0em; /* Negative indent to pull the first line to the left */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.theorem p {
    margin-bottom: 0 !important;
    padding: 10px; 
    
}

.theorem p span.theorem {
    padding-top: 0px;
    margin-left: 0px;
    padding-left: 0px;
    border-left: 0rem;
    box-shadow: 0px 0px;
}

p span.math.display span.mjx-chtml.MJXc-display {
    margin-top: 5px;
    margin-bottom: 4px;
}


details {
    margin-left: 10px;
    margin-right: 10px;
    padding-left: 0px;
    margin-bottom: 10px;
}

summary:hover {
    text-decoration: underline;
}


th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd; /* Adds horizontal borders */
}

thead th {
    border-bottom: 2px solid #000; /* Thicker bottom border for the header */
    border-top: 2px solid #000; /* Thicker bottom border for the header */
    background-color: #f2f2f2;
}

tbody tr:last-child td {
    border-bottom: 2px solid #000;
}   

.definition{
  padding: 10px;          /* Padding inside the box */
  background-color: #E4F4FD; /* Background color */
  border-radius: 15px;     /* Rounded corners */
  border-left: 0.8rem solid #1644B5;
  margin: 15px 0;         /* Margin around the box */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); 
}

.definition p {
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px;  /* Increased margin for all lines */
    text-indent: 0px; /* Negative indent for the first line */
    border-left: 0rem;
}

.definition p span.definition {
    margin-left: 0px;
    padding-left: 0px;
    border-left: 0rem;
    box-shadow: 0px 0px;
}

/* styles.css */

.book-summary {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
    width: 400px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); 
}



/* Styles for the sidebar navigation */
#subsection-nav {
  position: fixed;
  top: 50px; /* Adjust based on your header height */
  right: 20px;
  width: 200px;
  padding: 10px;
  border-bottom: 1px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1000;
}
#subsection-nav ul {
  list-style-type: none;
  padding-left: 0;
}

#subsection-nav a {
  display: block;
  padding: 5px 10px;
  margin-bottom: 5px;
  color: #333;
  text-decoration: none;
}
/* Hover effect for navigation links */

#subsection-nav a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* Active link styling */
#subsection-nav a.active {
  background-color: #d3d3d3;
  color: #333;
}

/* Indentation for hierarchical structure */
#subsection-nav .level-2 {
  padding-left: 20px;
  cursor: pointer; /* Indicate clickable */
}
#subsection-nav .level-3 {
  padding-left: 40px;
  display: none; /* Initially hidden */
}

/* Show nested items when parent is expanded */
#subsection-nav .expanded + ul > li > a.level-3 {
  display: block;
}


/* Hide scrollbar arrows */
::-webkit-scrollbar-button {
    display: none;
}

/* Scrollbar track */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

/* Scrollbar handle */
::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 10px;
}

/* Scrollbar handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* Set scrollbar width */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}


