.spacer {
  height: 64px;
}
nav {
  font-family: arial;
  font-size: 1rem;
  z-index: 1;
}
.menu-font-serif {
  font-family: serif;
  font-size: 18;
}
.menu-font-sans-serif {
  font-family: sans-serif;
  font-size: 18;
}
.menu-font-small {
  font-size: 0.75rem;
}
.menu-font-large {
  font-size: 1.5rem;
}
.fakeimg {
  height: 200px;
  background: #aaa;
}
#main-content ~ .popover {
  max-height: 80%;
  min-width: 400px;
  overflow: auto;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.no-select {
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.hover-show {
  opacity: 0;
  z-index: 1; /* Show above book content */
}
.hover-show:hover {
  opacity: 0.5;
}
.fix-left {
  left: 0;
  position: fixed;
}
.fix-right {
  right: 0;
  position: fixed;
}
.no-animate,
.no-animate.collapsing {
  transition: none !important;
}
.w-33 {
  width: 33% !important;
}
.w-66 {
  width: 66% !important;
}

/**
 * Toggle button css (no bootstrap)
 * ::before is the content, ::after is the toggle circle
 */
.tgl {
  display: none;
}
.tgl + .tgl-btn {
  display: block;
  min-width: 6em;
  height: 2em;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0;
  padding: 2px;
  transition: all 0.3s ease;
  border: 1px solid #fff;
  border-radius: 2em;
}
.tgl + .tgl-btn:after,
.tgl + .tgl-btn:before {
  transition: all 0.3s ease;
  position: relative;
  display: block;
  content: '';
  width: 30%;
  height: 100%;
  top: 0.1em;
  color: #fff;
}
.tgl + .tgl-btn:after {
  transition: all 0.3s ease;
  left: 0;
  background: #fff;
  content: '';
  border-radius: 1em;
  top: -1.65em;
}
.tgl:checked + .tgl-btn:after {
  left: 70%;
}
.tgl + .tgl-btn:before {
  content: attr(data-tgl-off);
  left: 2.3em;
}
.tgl:checked + .tgl-btn:before {
  content: attr(data-tgl-on);
  left: 1em;
}
#qDesc {
	width: 100%;
	margin-top: 2px;
	border-color: lightgray;
}
.boxContent p {
    margin-bottom: 1px;
}
p.topiclinkbox {
    border: 1px solid lightgray;
}
.delbutton {
	margin-right: 10px;
}
.flexline {
	display: flex;
}
.flexline input {
	flex: 2;
}
#tourchoice {
	margin-top: 10px;
}
#reader-toc {
    left: 0;
    position: fixed;
    max-width: 350px;
    margin-top: 50px;
    background-color: white;
    border: 1px solid black;
    border-radius: 5px;
    padding: 5px;
    height: 100vh;
    transition: height 0.001s;
}
#reader-toc .input-group {
    margin-top: 10px;
    margin-bottom: 30px;
}

/**
 * Content resizing
 */
@media (min-width: 576px) {
  .w-sm-auto {
    width: auto !important;
  }
  .w-sm-25 {
    width: 25% !important;
  }
  .w-sm-33 {
    width: 33% !important;
  }
  .w-sm-50 {
    width: 50% !important;
  }
  .w-sm-66 {
    width: 66% !important;
  }
  .flex-grow-sm-0 {
    flex-grow: 0 !important;
  }
  .flex-grow-sm-1 {
    flex-grow: 1 !important;
  }
  .mw-sm-16 {
    max-width: 16% !important;
  }
}

@media (min-width: 768px) {
  .w-md-auto {
    width: auto !important;
  }
  .w-md-25 {
    width: 25% !important;
  }
  .w-md-33 {
    width: 33% !important;
  }
  .w-md-50 {
    width: 50% !important;
  }
  .w-md-66 {
    width: 66% !important;
  }
  .flex-grow-md-0 {
    flex-grow: 0 !important;
  }
  .flex-grow-md-1 {
    flex-grow: 1 !important;
  }
  .flex-md-nowrap {
    flex-wrap: nowrap;
  }
  .mw-md-16 {
    max-width: 16% !important;
  }
}

@media (min-width: 992px) {
  .w-lg-auto {
    width: auto !important;
  }
  .w-lg-25 {
    width: 25% !important;
  }
  .w-lg-33 {
    width: 33% !important;
  }
  .w-lg-50 {
    width: 50% !important;
  }
  .w-lg-66 {
    width: 66% !important;
  }
  .flex-grow-lg-0 {
    flex-grow: 0 !important;
  }
  .flex-grow-lg-1 {
    flex-grow: 1 !important;
  }
  .flex-lg-nowrap {
    flex-wrap: nowrap;
  }
  .mw-lg-16 {
    max-width: 16% !important;
  }
}

@media (min-width: 1200px) {
  .w-xl-auto {
    width: auto !important;
  }
  .w-xl-25 {
    width: 25% !important;
  }
  .w-xl-33 {
    width: 33% !important;
  }
  .w-xl-50 {
    width: 50% !important;
  }
  .w-xl-66 {
    width: 66% !important;
  }
  .flex-grow-xl-0 {
    flex-grow: 0 !important;
  }
  .flex-grow-xl-1 {
    flex-grow: 1 !important;
  }
  .flex-xl-nowrap {
    flex-wrap: nowrap;
  }
  .mw-xl-16 {
    max-width: 16% !important;
  }
}
