@font-face {
  font-family: Anton;
  src: url(../fonts/Anton/Anton-Regular.ttf)
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 200px;
}

html * {
  scroll-behavior: auto;
}

@font-face {
  font-family: Roboto;
  src: url(../fonts/Roboto/Roboto-Regular.ttf)
}

@font-face {
  font-family: Roboto-Black;
  src: url(../fonts/Roboto/Roboto-Black.ttf)
}

/* Main layout */
body {
  font-family: Roboto, Arial, sans-serif;
}

#chapter-container {
  font-size: 18px;
}

#chapter-container blockquote {
  margin-left: 3em;
  margin-right: 3em;
  font-style: italic;
}

/* Callouts */
#chapter-container div.callout {
  border-radius: 14px;
  padding: 0;
  background-color: #fafafa;
  border: 1px silver solid;
  margin-top: 2em;
  margin-bottom: 2em;
  display: block;
  padding: 20px 20px 10px 20px;
}

#chapter-container div.callout h3,
#chapter-container div.callout div.fs-4 {
  font-size: 1.4em;
  font-weight: bold;
  background-color: #e5e5e5;
  padding: 10px 20px;
  margin: 20px -20px 20px -20px;
  clear: both;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

#chapter-container div.callout h3:first-child,
#chapter-container div.callout div.fs-4:first-child {
  margin: -20px -20px 20px -20px;
}

#chapter-container div.callout h3.no-border-radius {
  border-radius: 0;
}

#chapter-container div.good h3 {
  background-color: #e5f5e5;
}

#chapter-container div.bad h3 {
  background-color: #f5e5e5;
}

#chapter-container div.objectives h3 {
  background-color: #e5e5f5;
}

#chapter-container div.exercises h3 {
  background-color: #f5e5f5;
}

#chapter-container div.info h3 {
  background-color: #B7FFFB;
}

#chapter-container[contenteditable] {
  border: none;
  outline: 0px solid transparent;
}

.outlines * {
  border: 1px gray dashed;
}

.outlines *::before {
  content: attr(tag) " ";
  font-size: 12px;
  background-color: #e5e5e5;
  padding: 4px 8px;
  margin: 4px;

}

#page-container {
  min-height: 70vh;
  margin-bottom: 150px;
}

#editor-tray {
  max-width: 1400px !important;
  max-height: 84px !important;
  padding: 0;
}

@media (min-width: 0px) {

  .offcanvas-start,
  .offcanvas-end {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (min-width: 992px) {

  .offcanvas-start,
  .offcanvas-end {
    width: 300px !important;
    height: 100% !important;
  }
}

.container {
  max-width: 940px !important;
}

.container-xl {
  max-width: 1040px !important;

}

.container-xxl {
  max-width: 1140px !important;

}

@media (min-width: 1400px) {}

h1 {
  padding-top: .4em;
  margin-bottom: 1.4em;
}

h2 {
  margin-top: 1.2em;
  margin-bottom: .4em;
}

.list-filter {
  background-image: url('../images.v2/feather_icons_black/search.svg');
  background-repeat: no-repeat;
  background-size: 1.4em;
  background-position: top .4em left .3em;
  padding-left: 2em;
}

.list-filter-big {
  background-size: 1.4em;
  background-position: top .2em left .3em;
  padding-left: 2.4em;
}

#status-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  transition: width 0.5s ease;
  z-index: 1031;
  background-attachment: fixed;
}

:root {
  --rainbow: linear-gradient(90deg,
      hsl(0, 100%, 50%),
      hsl(30, 100%, 50%),
      hsl(60, 100%, 50%),
      hsl(90, 100%, 50%),
      hsl(120, 100%, 50%),
      hsl(150, 100%, 50%),
      hsl(180, 100%, 50%),
      hsl(210, 100%, 50%),
      hsl(240, 100%, 50%),
      hsl(270, 100%, 50%),
      hsl(300, 100%, 50%),
      hsl(330, 100%, 50%),
      hsl(360, 100%, 50%));
  --rainbow-vertical: linear-gradient(0deg,
      hsl(0, 100%, 50%),
      hsl(30, 100%, 50%),
      hsl(60, 100%, 50%),
      hsl(90, 100%, 50%),
      hsl(120, 100%, 50%),
      hsl(150, 100%, 50%),
      hsl(180, 100%, 50%),
      hsl(210, 100%, 50%),
      hsl(240, 100%, 50%),
      hsl(270, 100%, 50%),
      hsl(300, 100%, 50%),
      hsl(330, 100%, 50%),
      hsl(360, 100%, 50%));
}

.bg-rainbow,
.bg-rainbow-hover:hover {
  background: var(--rainbow);
  background-attachment: fixed;
}

h1,
h2 {
  font-family: Roboto-Black;
  line-height: 1.2em;
}

th {
  font-family: Roboto-Black;
}

:target {
  border-bottom: 4px rgb(177, 246, 255) solid !important;
  /* fixed header height */
}

.book-title {
  font-family: Roboto-Black;
  font-size: 2.8em;
}

[data-etb-active] {
  background-color: rgb(235, 249, 255);
}

cite {
  font-style: normal;
}

.reference {
  padding-left: 3em;
  text-indent: -3em;
  overflow: auto;
  display: block;
  word-wrap: break-word;
  word-break: break-word;
}

.os-math-in-para,
.MathJax_Display {
  overflow-x: auto;
  display: block;
  padding-top: 20px;
  padding-bottom: 20px;
}

[data-etb-alert-type] {
  display: none;
}

.hover-opacity-100:hover {
  opacity: 1 !important;
}

.hover-opacity-75:hover {
  opacity: .75 !important;
}

.table_figure_number {
  font-family: Roboto-Black;
}

strong,
[data-etb-glossary-term-id] {
  font-family: Roboto-Black;
}

.table_figure_title {
  font-style: italic;
}

/* Start print */
@media print {
  html {
    font-size: 12px;
  }

  body {
    background-color: #ffffff !important;
    background-image: unset !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: unset !important;
    width: 100% !important;
  }

  .collapse:not(.show) {
    display: block;
  }

  div#chapter-container {
    width: 100% !important;
    font-size: 12px;
  }

  div.callout {
    page-break-inside: avoid;
  }

  dt {
    page-break-after: avoid;
  }

  /*
  a:after {
    content: " ["attr(href)"]";
  }
  */
  #status-bar {
    display: none;
  }

  ul,
  ol {
    page-break-inside: avoid;
  }

  figure {
    page-break-inside: avoid;
  }

  .chapter-separator {
    page-break-before: always;
  }

  h1:first-of-type {
    page-break-before: avoid !important;
  }

  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }

  img {
    max-height: 2in !important;
  }

  #chapter-container img {
    max-height: 4.5in !important;
  }

  img.col-12 {
    width: unset !important;
  }

  .page-break-avoid {
    page-break-inside: avoid;
  }

  .page-break-before {
    page-break-before: always;
  }

  .page-break-after {
    page-break-after: always;
  }

  #toc .btn-outline-light {
    border-width: 0 !important;
  }

  hypothesis-sidebar,
  hypothesis-notebook,
  hypothesis-profile,
  hypothesis-adder,
  hypothesis-highlight-cluster-toolbar {
    display: none;
  }

  hypothesis-highlight,
  .hypothesis-highlight {
    background-color: unset !important;
  }

  iframe {
    display: none !important;
  }

  @page {
    margin-left: .75in;
    margin-right: .75in;
    margin-top: .75in;
    margin-bottom: .75in;
  }
}

/* End print */
/* Practice quiz */
.practice_quiz {
  margin-bottom: 1em;
  margin-top: .4em;
}

.pq-active {
  cursor: pointer;
  padding-left: 56px;
  background-image: url('../images/empty.png');
  padding-left: 56px;
  background-repeat: no-repeat;
  background-position: 12px center;
  border: 1px #f5f5f5 solid;
  background-color: white;
  padding-top: 1em;
  padding-bottom: 1em;
  margin-bottom: 0;
  margin-top: 0;
}

.pq-fill {
  margin: 0 .4em 0 .4em;
  border-color: #e5e5e5;
  border-width: 0 0 1px 0;
  padding: 0 .4em 0 .4em;
  min-width: 60px;
  width: 100px;
}

.pq-active:hover {
  border-color: rgba(0, 0, 0, .25);
}

.pq-correct {
  background-image: url('../images/checkmark.png');
  padding-left: 56px;
  background-repeat: no-repeat;
  background-position: 12px center;
  border: 1px #f5f5f5 solid;
  padding-top: 1em;
  padding-bottom: 1em;
  margin-bottom: 0;
  margin-top: 0;
  background-color: rgb(209, 231, 221);
  color: rgb(20, 108, 67);
}

.pq-incorrect {
  background-image: url('../images/x.png');
  padding-left: 56px;
  background-repeat: no-repeat;
  background-position: 12px center;
  border: 1px #f5f5f5 solid;
  padding-top: 1em;
  padding-bottom: 1em;
  margin-bottom: 0;
  margin-top: 0;
  background-color: #f5f5f5;
}

/* Survey */
.survey {
  margin-bottom: 1em;
  margin-top: .4em;
}

.survey-active {
  cursor: pointer;
  padding-left: 56px;
  background-image: url('../images/empty.png');
  padding-left: 56px;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-color: white;
  border: 1px #f5f5f5 solid;
  padding-top: 1em;
  padding-bottom: 1em;
  margin-bottom: 0;
  margin-top: 0;
}

.survey-active:hover {
  border-color: rgba(0, 0, 0, .25);
}

.survey-selected {
  background-image: url('../images/checkmark.png');
  padding-left: 56px;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-color: rgb(209, 231, 221);
  border: 1px #f5f5f5 solid;
  color: rgb(20, 108, 67);
  padding-top: 1em;
  padding-bottom: 1em;
  margin-bottom: 0;
  margin-top: 0;
}

.survey-unselected {
  background-image: url('../images/empty.png');
  padding-left: 56px;
  background-repeat: no-repeat;
  background-position: 12px center;
  border: 1px #f5f5f5 solid;
  padding-top: 1em;
  padding-bottom: 1em;
  margin-bottom: 0;
  margin-top: 0;
}

.pdf-only {
  display: none;
}

.offcanvas {
  border: 0 !important;
}

.inline-code {
  background-color: #e5e5e5;
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  padding-left: .4em;
  padding-right: .4em;
}

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

@keyframes wobble {
  0% {}

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }

  100% {}
}

@media (prefers-reduced-motion: no-preference) {

  a .svg-icon:hover,
  button .svg-icon:hover,
  .wobble {
    animation: wobble 0.3s ease;
  }

  a .book-cover-link,
  a .pdf-cover-link,
  a.chapter-thumbnail-cover-link,
  .zoom-in {
    transition: transform 0.2s ease-in-out;
  }
  a .book-cover-link:hover,
  a .pdf-cover-link:hover,
  a.chapter-thumbnail-cover-link:hover,
  .zoom-in:hover {
    transform: scale(1.25);
  }

  a.svg-icon:not(:hover),
  button .svg-icon:not(:hover),
  a .book-cover-link:not(:hover),
  .wobble:not(:hover) {
    animation: none;
  }
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background-color: var(--bs-dark);
}

::-webkit-scrollbar-thumb {
  background-color: var(--bs-secondary);
  border-radius: 12px;
  border: 1px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--bs-light);
}

.text-rainbow,
.text-rainbow-hover:hover {
  background: var(--rainbow);
  background-attachment: fixed;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#navbarSupportedContent .nav-link.active {
  border-bottom: 4px var(--bs-secondary) solid;
  padding-bottom: 4px;
}

.bg-dark-hover:hover {
  background-color: var(--bs-dark) !important;
}

.border-info-hover:hover {
  border-color: var(--bs-info) !important;
}

.text-light-hover:hover {
  color: var(--bs-light) !important;
}

figure.side-caption img, figure.side-caption figcaption {
  width: 48%;
  display: inline-block;
}
figure.side-caption img {
  float: right;
}
figure.side-caption-right img, figure.side-caption-right figcaption {
  width: 48%;
  display: inline-block;
}
figure.side-caption-right img {
  float: left;
}
figure.side-caption-right figcaption {
  clear: both;
}
figure.side-caption, figure.side-caption-right {
  clear: both;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) scaleY(1);
  }
  40% {
    transform: translateY(-20px) scaleY(1);
  }
  50% {
    transform: scaleY(1);
  }
  55% {
    transform: scaleY(0.8);
  }
  60% {
    transform: translateY(-10px) scaleY(1);
  }
}

#search-spinner {
  animation: bounce 1.5s infinite;
}
.tox-tinymce-inline {
    z-index: 3;
}
#chapter-container *[data-etb-type] {
  border: 1px dashed #e5e5e5;
  padding: 4px;
}
#chapter-container *[data-etb-type]::before {
  content: attr(data-etb-type); /* Assuming the type is stored as a data attribute */
  position: relative;
  top: 0;
  left: 0;
  background-color: #f00; /* Change the background color as needed */
  color: #fff; /* Change the text color as needed */
  padding: 4px;
  font-size: 12px;
}
#chapter-container *[data-etb-type]::after {
  content: "/" attr(data-etb-type); /* Assuming the type is stored as a data attribute */
  position: relative;
  top: 0;
  left: 0;
  background-color: #f00; /* Change the background color as needed */
  color: #fff; /* Change the text color as needed */
  padding: 4px;
  margin: -10px 4px 4px 4px;
  font-size: 12px;
}
#chapter-container *[data-etb-selected] {
  border-color: #ff0000;
  background-color: #fafafa;
}
#code-editor-menu {
  display: none;
  position: absolute;
  background-color: #333;
  border: 1px solid #000;
  padding: 5px;
  border-radius: 4px;
  color: #fff;
  z-index: 3;
}