.example-box {
    background-color: hsl(0deg 0% 95%);
    border: 1px solid black;
    border-radius: 15px;
    padding: 0.5em;
    margin-bottom: 1em;
    margin-top: 2em;
    padding-top: 1em;
    counter-increment: example;
    overflow: auto;
  }
  /* .example-box::before {
    margin-bottom: 1em;
    font-weight: bold;
    content: "Example " counter(example) ": ";
    border-bottom: 1px solid black;
    display: block;
  } */

  .example-box h3 {
    margin-top: -0.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.39);
    font-size: 16px;
  }

.figure-container {
  margin: auto;
  display: grid;
  justify-content: center;
  width: 100%;
  text-align: center;
}
  

.figure-row {
  margin: auto;
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.figure-col {
  text-align: center;
}

.figure_subdescription {
  text-align: center;
}

.figure-description {
  text-align: center;
  font-style: normal;
  margin-bottom: 3em;
  /* margin-top: -1em;  */ 
}
.figure-description-pre {
  font-style: normal;
}

.figure-description::before {
  font-style: normal;
  content: "Figure ";
}

figure {
  display: block;
  text-align: center;
  /* border: 3px solid green; */
  margin: 0 0.5rem;
}

figcaption {
  /* border: 3px solid green; */
  margin-top: -1em;
}
/* figcaption::before {
  content: "Figure ";
} */

.figImage {
  margin: 0 auto;
}

.figCol {
  display: block;
  text-align: center;
  /* border: 3px solid green; */
  margin: 0 0;
}

.figRow {
  display: flex;
  width: 100%;
  text-align: center;
  align-items: center;
  /* border: 1px solid rgb(25, 0, 255); */
  justify-content: center;
  margin-top: 1em;
}

.figContainer {
  margin: auto;
  width: 100%;
  /* border: 1px solid rgb(0, 0, 0); */
}


.note {
  margin-top: 1.5em;
  width: 100%;
  margin-left:auto;
  margin-right:auto;
  background-color:  aliceblue;
  border-radius: 5px;
  margin-bottom: 1em;
}
.note .content {
  padding: 10px;
  margin-left: 0;
}
.note .title{
  font-size: 105%;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding-left: 7px;
  padding-top: 2px;
  color: white;
  background: cornflowerblue;
}

.warning {
  margin-top: 1.5em;
  width: 95%;
  margin-left:auto;
  margin-right:auto;
  background-color:  #f1b3b1;
  border-radius: 5px;
  margin-bottom: 1em;
}
.warning .content {
  padding: 10px;
  margin-left: 0;
}
.warning .title{
  font-size: 105%;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding-left: 7px;
  padding-top: 2px;
  color: white;
  background: crimson;
}

.csl-left-margin {
  float: left;
  margin-right: 10px;
}

/* .csl-right-inline {
} */

.csl-entry {
  margin-bottom: 1em;
}

.recall {
  background-color:linen;
  border-radius: 15px;
  padding: 0.5em;
  margin-bottom: 1em;
  margin-top: 2em;
  padding-top: 1em;
  color: rgb(66, 66, 185);
}

.recall::before {
  margin-bottom: 1em;
    font-weight: bold;
    content: "Recall";
    border-bottom: 1px solid black;
    display: block;
}

html {
  /* font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; */
  /* 
  Computer Modern Bright
  Computer Modern Concret
  Computer Modern Sans
  Computer Modern Serif
  Computer Modern Typewriter
  */
  font-family: "Computer Modern Serif", Times, serif;
  font-size: 16px;
  line-height: 1.5;
}

.sidebar {
  font-family: "Computer Modern Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hljs {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background-color: hsl(0deg 0% 90%);
  /* border: 1px solid black; */
}

.example-box .hljs {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  background-color: hsl(0deg 0% 90%);
  border: 1px solid black;
  border-radius: 8px;
}

 .example-box .hljs::before {
    margin-bottom: 1em;
    font-weight: bold;
    content: "Matlab code:";
    border-bottom: 1px solid black;
    display: block;
  }

  .embedmatlab {
    background-color: white;
    width:100%;
    margin-left:auto;
    margin-right:auto;
    border: 1px solid black;
    border-radius: 10px;
    font-weight: bold;
    padding: 1em 1em 0em 1em;
  }
  
  .embedmatlab .mlxLink {
    text-decoration: none;
    color: black;
  }

  .matlabOutput {
    /*background-color: hsl(0deg 0% 95%);*/
    width:100%;
    margin-left:auto;
    margin-right:auto;
    font-family: monospace;
    font-size: var(--small);
  }
  
  .language-matlab {
    background-color: hsl(0deg 0% 96%);
    display: block;
    margin-left:auto;
    margin-right:auto;
    width:100%;
    overflow: auto;
  }

  .matlabOutput .language-matlab,
  .matlabOutput .matlab.hljs {
    background-color: white;
    display: block;
    margin-left:auto;
    margin-right:auto;
    width:100%;
  }

  .matlab.hljs {
    background-color: hsl(0deg 0% 96%);
    display: block;
    margin-left:auto;
    margin-right:auto;
    width:100%;
    border: none;
    border-radius: unset;
  }

  .embedPluto {
    background-color: white;
    width:100%;
    margin-left:auto;
    margin-right:auto;
    border: 1px solid black;
    border-radius: 10px;
    font-weight: bold;
    padding: 1em 1em 0em 1em;
  }

  .hintFrame {
    font-weight: 600;
    background-color: rgb(148, 182, 226);
    border-radius: 10px;
    padding-left: 0.3em;
    padding: 6px 6px;
    color: white;
  }
  .hintInnerFrame {
    color: black;
    background-color: rgb(214, 227, 244);
    border-radius: 2px;
    padding: 1em 0.8em;
    text-align: center;
    margin-top: -1em;
  }
  .hintContent {
    filter: blur(0.5rem);
    transition: 0.3s;
    margin: 0%;
  }

  .hintContent:hover {
    filter: blur(0rem);
  }

  .nonumber .katex-display::after {
    /* counter-increment: nothing; */ /* counter needs to increment otherwise equation references get messed up */
    content: "";
  }

  /* Style the button that is used to open and close the collapsible content */
 .collapsible {
  background-color: rgb(241, 240, 253);
  color: rgb(66, 66, 66);
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  text-align: left;
  outline: none;
  font-size: inherit;
  font-family: "Computer Modern Serif", Times, serif;
  margin-bottom: 0.5em;
  transition: background-color 300ms ease-in-out;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.collapsible:hover {
  background-color: rgb(229, 227, 245);
}

/* Style the collapsible content. Note: hidden by default */
.collapsibleContent {
  margin-top: -1em;
  padding: 5px;
  display: none;
  overflow: hidden;
  background-color: rgb(241, 240, 253);
  border: 5px solid rgb(241, 240, 253);
  border-radius: 10px;
}


.collapsibleCode {
  background-color: hsl(0deg 0% 96%);
  text-align: left;
  cursor: pointer;
  border: none;
  width: 100%;
  outline: none;
  font-family: "Computer Modern Serif", Times, serif;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.collapsibleCode:hover, 
.collapsibleCode.active,
.collapsibleCode:hover .language-matlab,
.collapsibleCode:hover .matlab.hljs,
.collapsibleCode.active .language-matlab,
.collapsibleCode.active .matlab.hljs {
  background-color: rgb(237, 236, 247);
}


.collapsibleCodeContent {
  margin-top: -1em;
  padding: 5px;
  display: none;
  overflow: hidden;
  background-color: white;
  border: 5px solid rgb(237, 236, 247);
  border-radius: 10px;
}

.figContainer img {
  image-rendering: -webkit-optimize-contrast;
  padding-left: 0;
}

.tooltip {
  border-bottom: 1px dotted black;
  position: relative;
  display: inline-block;
}

.tooltip .tooltipText {
  visibility: hidden;
  padding: 5px 5px;
  border-radius: 6px;
  background-color: #292929e3;
  color: #fff;
  position: absolute;
  z-index: 1;
  text-align: center;
  width: max-content;
  box-shadow: 0 0 4px 2px rgba(0,0,0,.2);
  

  transform: translate(-50%, -100%) scale(.5); 
  max-width: 200px;


}

.tooltip:hover .tooltipText {
  visibility: visible;
  transform: translate(-50%, -100%) scale(1);
  animation: pulse 0.2s;
}

@keyframes pulse {
  0% {
    opacity: .5;
    transform: translate(-50%, -100%) scale(.5); 
  }
  50%{
   opacity: 1;
   transform: translate(-50%, -100%) scale(1.2);
  }
  100% {
     transform: translate(-50%, -100%) scale(1);
  }
}

:root {
  scroll-behavior: smooth;
}

.youTubeIframe {
  aspect-ratio: 16 / 9;
}

.JUPlayframe {
  aspect-ratio: 16 / 9;
}

.invert-color img {
  -webkit-filter: invert(100%); 
  filter: invert(100%);
}

.MaterialTable {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}


.menu-btn {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background-color: transparent;
  padding: 0;
  border: none;
  display: flex;
  cursor: pointer;
}

.menu-btn:hover {
  filter: brightness(0.8);
}

.menu-btn .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
  pointer-events: none;
}

.sidebar-sticky {
  opacity: 1;
  transition: visibility 0.8s, opacity 0.8s ease-in-out;
}
.sidebar-sticky.closed {
  /* display: none; */
  opacity: 0;
  visibility: hidden;
}

.sidebar {
  transition: width 0.8s ease-in-out;
  /* overflow: hidden; */
}
.sidebar.closed {
  width: 4rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .content {
    transition: margin-left 800ms ease-in-out;
  }

  .content.closed {
    margin-left: 4rem;
    max-width: 60rem;
    transition: margin-left 800ms ease-in-out;
  }

  .franklin-content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
.franklin-content {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}


.sidebar-btn a {
  color: rgb(201, 255, 191);
}

.sidebar-btn .dropdown {
  position: absolute;
  right: 0;
  margin-right: 20px;
}

.sidebar-btn:hover,
.sidebar-btn:focus {
  text-decoration: underline;
  cursor: pointer;
}

.sidebar-submenu {
  padding-left: 5px;
  display: none;
}

.rotateChevron {
  transform: rotate(90deg);
}

.Remark::before {
  content: "Remark " counter(remark) ": ";
  font-style: italic;
  border-top: 1px solid black;
  display: block;
}
.Remark {
  /* border: 1px solid black; */
  margin-top: 2rem;
  margin-bottom: 2rem;
  counter-increment: remark;
  margin-bottom: 3rem;
  border-bottom: 1px solid black;
  padding-bottom: 2rem;
  /* background-color: rgb(250, 250, 250); */
}
.Remark::after {
  font-size: 2em;
  content: "□";
  float: right;
}






