html {
  scroll-behavior: smooth;
}

.modal {
  animation: fadeIn;
  animation-duration: 0.2s;
}

/* always show a scroll bar 
 * the element must set a fixed height (max-height)
*/
.vertical-scroll {
  overflow-y: scroll;
}

/* force showing a scroll bar on macOS */
.vertical-scroll::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}

.vertical-scroll::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

#close-ndc9:hover {
  color: red;
}

#book:hover {
  background-color: var(--bulma-info-soft);
}

#book input[type="checkbox"] {
  margin-right: 0.2rem;
}

/* #book label.checkbox { // this breaks tags
    text-indent: -1rem;
    padding-left: 1rem;
  } */
#book figure {
  margin-top: 0.5rem;
}

#book>figure.image {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#book label>span.icon {
  margin-left: 0.2rem;
}

#tableMode {
  table-layout: fixed;
}

#spineMode {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: auto;
  max-height: fit-content;
  margin: 0 auto;
  overflow-x: scroll;
  white-space: nowrap;
  position: relative;
}

#spine {
  /* max-height: inherit; */
  max-width: 60px;
  align-self: flex-end;
  flex-shrink: 1;
  object-fit: cover;
  box-sizing: border-box;
  /* background-color: skyblue; */
  /* padding: 0 3px; */
}

#spine:hover {
  box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.4);
  transition: 0.2s;
  z-index: 1;
  transform: scale(1.1) translate(0px, -20px);
}

.spine-border {
  /* transparent border */
  border: 3px solid transparent;
}

.spine-border-selected {
  border: 3px solid red;
}

.tabs strong {
  padding-right: 0.2rem;
}

.tabs ul {
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
}

div.modal figure.image {
  margin-bottom: 1.5rem;
}

#TableOutput {
  padding-bottom: 0.5rem;
}

footer {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

table td#chpTag {
  width: 20%;
}

/* #case {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  } */
#casebooks {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  /* Firefox */
}

#casebooks::-webkit-scrollbar {
  display: none;
  /* Safari, Chromium */
}