@font-face {
  font-family: 'Rancho';
  font-weight: 400;
  src: url('../fonts/Rancho/Rancho-Regular.ttf');
}
@font-face {
  font-family: 'Special Elite';
  src: url('../fonts/Special_Elite/SpecialElite-Regular.ttf');
}

@font-face {
  font-family: 'Impact Label Reversed';
  src: url('../fonts/Impact_Label/Impact_label_reversed-webfont.ttf');
}

@media (max-width: 700px) {
  .hide-on-tiny {
    display: none;
  }
}

@view-transition {
  navigation: auto;
}

:root {
  --bg-image: url('../images/photo/trumpet.webp');
  --bg-image: url('../images/photo/trombone-in-case.webp');
  --bg-image: url('../images/photo/clarinet-on-bed.webp');

  /*.Jazz-drummer-in-a-nightclub-1-hex { color: #F2DB66; }*/
  --color-1: #F3F3F3;
  --color-2: #A61419;
  --color-3: #ED1C24;
  --color-5: #0D0D0D;

  --color-10: oklch(60% 0.2 15);
  --color-11: oklch(60% 0.2 75);
  --color-12: oklch(60% 0.2 135);
  --color-13: oklch(60% 0.2 195);
  --color-14: oklch(60% 0.2 255);
  --color-11-80: oklch(80% 0.2 75);
  --color-11-95: oklch(95% 0.2 75);


  --typed-font-family: 'Special Elite', Courier, Courier New, monospace;
  --hand-font-family: 'Rancho', cursive;

  --ui-control-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --ui-control-font: 400 1.1rem/1.5 var(--ui-control-font-family);

  --instruction-font: 100 1.1rem/1.5 caption, helvetica, sans-serif;

  /* INFO MARKER*/
  --font-typed-large: 2.0rem/1.4 var(--typed-font-family);

  /* INPUT / QUERY*/
  --font-typed-medium: 1.7rem/1.4 var(--typed-font-family);
  --font-typed-small-tight: 100 18px/0.8 var(--typed-font-family);
  --font-typed-small: 100 18px/1.5 var(--typed-font-family);
  --font-typed-smaller: 100 15px/1.2 var(--typed-font-family);

  /* BOOKS*/
  /* SEMANTIC COLORS */
  --default-book-color: var(--color-13);
  --real-book-color: var(--color-12);
  --sher-book-color: var(--color-10);
  --jazz-fake-color: var(--color-11);
  --available-book-color: var(--color-14);
  --book-color: var(--default-book-color);
  --book-opacity: 0.5;
  --book-opacity-hover: 0.7;


  /* SONGS*/
  --song-font-family: var(--hand-font-family);
  --song-font-medium: 200 2.6rem/0.9 var(--song-font-family);
  --song-font-large: 200 3.1rem/1.1 var(--song-font-family);

  /* TAGS / TAGGINGS*/
  --tags-font-family: var(--typed-font-family);
  --tags-font-small: 100 1.3rem/normal var(--tags-font-family);
  --tags-padding-small: 6px 8px 2px 8px;
  --tags-border-radius: 10px;

  --tags-font-large: 100 1.6rem  var(--tags-font-family);
  --tag-color: oklch(34.2% 0.1 303.7);

  /* COMPOSERS */
  --composer-color: color-mix(in oklab, black 50%, var(--color-11));

  /* Other dimensions */
  --drag-handle-width: 30px;
  --header-ht: 6rem;
  --dialogy-modal-buttons-height: 110px;
}

@media (hover: hover) {
  :root {
    --dialogy-modal-buttons-height: 85px;
  }
}

*:is(
.RealBk1,.RealBk1-Bb,.RealBk1-Eb,.RealBk1-Bass,
.RealBk6,.RealBk6-Bb,
.RealBk2,.RealBk2v2,.RealBk2-Bb,.RealBk2-Eb,
.RealBk3,.RealBk3-Bb,
.RealVocal
)::before {
  --book-color: var(--real-book-color);
}

*:is(.NewReal1,.NewReal1-Bb,
.NewReal2,.NewReal2-Bb,.NewReal2-Eb,
.NewReal3,.NewReal3-Bb,
.Sher-Standards)::before {
  --book-color: var(--sher-book-color);
}

/* RESET */
ul, li, h1, h2, h3, h4, section {
  margin: 0;
  padding: 0;
}

h1 {
  margin: .67em 0;
/ / Chrome default
}

h2 {
  margin: 0.83em 0;
/ / Chrome default
}


html {
  color-scheme: dark;
  background-color: var(--color-5);
  margin: 0;
  padding: 0;
}


html, body {
  height: 100%;
  margin: 0;
  padding: 0;

  background-image: var(--bg-image);
  background-size: cover;
  background-attachment: fixed;
}

/*
L A Y O U T
 */
body {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;

  > header {
    inset: 0;
    width: 98svw; /* might lose end of sign-in button, but we don't care */
    height: var(--header-ht);
    z-index: 2;

    position: sticky;
    top: 0;
  }

  > ol {
    flex: 1 1 max-content;
    overflow-y: auto;
  }

  .spacer {
    flex: 100 0 0;
  }

  .details-container {

    details {
      border-top: 1px solid #ddd;
      overflow: hidden;
      max-height: 50px; /* default closed ht */
      transition: max-height 0.6s ease-in-out;
    }
    details[open] {
      max-height: 200vh; /* should hold any possible content */
    }
    details summary {
      cursor: pointer;
    }

    details ul, details menu {
      box-sizing: border-box;
      max-height: 33svh;
      overflow-y: auto;
      padding: 10px 5px;
    }
  }
}



/* Button */
.button {
  cursor: pointer;
  color: #ddd;
  padding: 5px 10px 5px 10px;
  border: 2px solid #bbb;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  font-weight: 400;
  font-family: var(--ui-control-font-family);
  white-space: nowrap;
}

.button:is(:hover,:active,:focus-visible) {
  color: white;
  background-color: #444;
  border-color: white;
}

.button.no-border {
  border: none;
}

/* Shared on dialog windows */
.dialogy-modal-buttons {
  position: sticky;
  bottom: 0;
  width: 100%;
  height: var(--dialogy-modal-buttons-height);
  background-color: transparent;
  opacity: 1;
  z-index: 2;
}

.dialogy-modal-buttons:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(#00000050, #000000);
  z-index: -1;
}

.dialogy-modal-buttons > * {
  width: 47%;
  height: 80px;
  display: inline-block;
  font-size: 30px;
  padding: 0;
  border-radius: 18px;
  margin-top: 15px;
  margin-inline: 1%;
  border: 2px solid #333;
  color: #ccc;
  background-color: #333;
}

.dialogy-modal-buttons > *:disabled {
  background-color: #777;
  border-color: #777;
  color: #555;
  cursor: not-allowed;
}


.dialogy-modal-buttons > *:not(:disabled) {
  cursor: pointer;
  border-color: var(--color-13);
}

.dialogy-modal-buttons > *:not(:disabled):nth-of-type(2) {
  color: white;
  background-color: var(--color-13);
}

@media (hover: hover) {
  .dialogy-modal-buttons > * {
    transition: opacity 0.5s, border-color 0.5s;
    opacity: .8;
    height: 50px;
    border-radius: 10px;
  }

  .dialogy-modal-buttons > *:not(:disabled):is(:hover, :active) {
    opacity: 1;
    border-color: white;
  }
}


body > header {
  display: grid;
  grid-template-columns: 5fr auto auto auto auto auto;
  column-gap: 1svw;
  align-content: space-between;
  align-items: baseline;
}

@media (max-width: 500px) {
  body > header {
    grid-template-columns: 6em  4em  6em auto auto;
  }

  body > header *:nth-child(1) {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 1;
  }

  body > header *:nth-child(2) {
    grid-column-start: 4;
    grid-column-end: 5;
    grid-row-start: 1;
    grid-row-end: 1;
  }

  body > header *:nth-child(3) {
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 2;
    grid-row-end: 2;
  }

  body > header *:nth-child(4) {
    grid-column-start: 4;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 2;
  }

  body > header *:nth-child(5) {
    grid-column-start: 5;
    grid-column-end: 5;
    grid-row-start: 1;
    grid-row-end: 1;
  }

  body > header > :is(*:nth-child(3),*:nth-child(4)) {
    display: none;
  }

  body > header:has(input:placeholder-shown) > :is(*:nth-child(3),*:nth-child(4)) {
    display: block;
  }
}

body > header::before {
  /* a little piece of the background image inlaid behind the header */
  content: ' ';
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--header-ht) - 2.5rem);
  position: absolute;
  background-image: var(--bg-image);
  background-size: cover;
  background-attachment: fixed;
  z-index: -1;
}

body > header::after {
  content: ' ';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  background-image: linear-gradient(180deg,
  rgba(0, 0, 0, 0.8) 0%,
  rgba(0, 0, 0, 0.8) calc(var(--header-ht) * 2 / 3),
  rgba(0, 0, 0, 0) var(--header-ht));
  z-index: -1;
}

suggesting-input {
  --border-color: transparent;
  --selected-color: var(--color-11);
  --highlight-color: var(--color-11-95);
  --list-bg-color: var(--color-5);
  --font-edit: var(--font-typed-medium);
  --font-suggestion: var(--font-typed-medium);
  position: relative;
  inset: 0;
  margin: .5rem 0 .5rem .5rem;
  width: calc(100% - 1rem);
}

suggesting-input:focus-within {
  --border-color: var(--color-1);
}

#clear {
  position: relative;
  display: block;
  top: .3ex;
  font: var(--font-typed-medium);
  font-size: 2rem;
  margin-left: -5px;
  padding-right: 1vw;
  text-decoration: none;
  color: var(--color-1);
}

/* TODO make component support this */
label:has(suggesting-input::part(input:placeholder-shown)) + #clear {
  opacity: 0.1;
}

#filters {
  text-wrap: nowrap;
  a {
    display: inline-block;
    margin-right: 1svw;
    margin-bottom: 1svw;
    padding: var(--tags-padding-small);
    background-color: var(--color);
    color: white;
    border: 1px solid var(--color);
    border-radius: var(--tags-border-radius);
    font: var(--tags-font-small);
    cursor: pointer;
    cursor: revert;
    user-input: none;
    text-decoration: none;
    span {
      padding: 6px 10px;
      display: inline-block;
    }
  }
  a.tag {
    --color: var(--tag-color);
  }
  a.composer {
    --color: var(--composer-color);
  }
  a:hover, a:focus {
    text-decoration: none;
    border-color: white;
    span {
      font-weight:900;
    }
  }
}


#about {
  margin: 0;
  font: var(--font-typed-large);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  background-color: #aaa;
  color: #333;
  border-radius: 50%;
  width: 1em;
  height: 1em;
  text-align: center;
  font-size: 2em;
}

#about:is(:hover,:active,:focus-visible) {
  color: black;
  background-color: white;
  text-decoration: none;
}

#tags {
  background-color:
    color-mix(in oklab, black 40%, var(--tag-color));
}

#tags > menu {
  margin: 0;
  padding: 15px 0 0 0;
  min-height: 3.3rem;
}

#tags > menu li {
  font: var(--tags-font-small);
  list-style: none;
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 15px;
}

#tags > menu li a {
  padding: 10px 8px 5px 8px;
  background-color: var(--tag-color);
  border-radius: var(--tags-border-radius);
  display: block;
  opacity: .7;
  color: white;
  text-decoration: inherit;
}

#tags > menu li a:focus, #tags > menu li a:hover {
  opacity: 1;
}

#tags > menu li a:active {
  outline: 2px solid white;
  opacity: 1;
}

#tags > menu li a::before {
  content: '#';
  opacity: .5;
}

/*
     B R A N D I N G
 */
footer {
  position: fixed;
  bottom: auto;
  left: 0;
  right: 0;
  top: calc(100svh / 2);
  translate: 0 -60%;
}

footer :is(h1, h2) {
  font: 1.7rem 'Impact Label Reversed';
  padding-left: 1rem;
  padding-right: 1rem;
  display: block;
  width: fit-content;
  margin-left: 1rem;
  animation: fade-to-bg 2s normal forwards;
}

@media (min-width: 1024px) {
  footer :is(h1, h2) {
    font: 2rem 'Impact Label Reversed';
  }
}

@keyframes fade-to-bg {
  from {
    background: linear-gradient(to bottom, var(--final-color), var(--final-shine), var(--final-color));
    color: white;
    box-shadow: 1px 1px 4px #666;
  }
  1% {
    background: var(--final-color);
  }
  20% {
    box-shadow: 1px 1px 4px #222;
  }
  66% {
    background: black;
  }
  99% {
    color: #444;
  }
  to {
    color: #444;
    box-shadow: 1px 1px 4px #222;
  }
}


footer h1 {
  --final-color: var(--color-2);
  --final-shine: var(--color-3);
  transform: rotate(-2deg);
}

footer h2 {
  --final-color: black;
  --final-shine: black;
}


body:has(input:placeholder-shown) h1 {
  animation: unfade-to-fg 5s normal forwards 1s;
}

body:has(input:placeholder-shown) h2 {
  animation: unfade-to-fg 5s normal forwards 5s;
}

@keyframes unfade-to-fg {
  from {
  }
  1% {
    background: black;
  }
  25% {
    background: black;
    color: white;
  }
  50% {
    color: white;
    box-shadow: 1px 1px 4px #666;
  }
  75% {
    background: var(--final-color);
  }
  77% {
    background: linear-gradient(to bottom, var(--final-color), var(--final-color), var(--final-color));
  }
  to {
    background: linear-gradient(to bottom, var(--final-color), var(--final-shine), var(--final-color));
    color: white;
    box-shadow: 1px 1px 4px #666;
  }
}

#feedback-link {
  position: absolute;
  bottom: 2rem;
  right: 1rem;
}

#feedback-link img {
  width: 3rem;
  height: 3rem;
}

/*
    R E S U L T S
 */
ol#song-matches {
  margin: 0;
  display: grid;
  padding: 0;
  /* 3-wide on iPad pro */
  grid-template-columns: repeat(auto-fill, minmax(39ch, auto));
  grid-template-rows: 1fr;
  row-gap: 2vmin;
  column-gap: 2vmin;
  z-index: 0;
  position: relative;
}

ol#song-matches[data-error]:after {
  content: attr(data-error);
  display: inline-block;
  font: var(--instruction-font);
  max-width: 64ch;
  background-color: darkred;
  padding: 10px 20px;
  font-weight: 900;
  letter-spacing: 2px;
  border-radius: 10px;
  margin-inline: 10px;
  text-align: center;
  grid-column-start: 1;
  grid-column-end: -1;

}

ol#song-matches > li {
  background-color: #000000aa;
  border: 1px solid #000000;
  box-shadow: 3px 3px 7px #00000080;
  padding: 2vmin 2vmin 0 2vmin;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  z-index: 0;
  position: relative;
}

/* when books are show, establish a center justification line */
body.show-books ol#song-matches > li {
  align-items: end;
}

body.show-books ol#song-matches > li > *:last-child {
  align-self: start;
}

body.hide-books ol#song-matches > li {
  padding-top: 0;
}

ol#song-matches > li:has( > .drag-handle) {
  padding-right: var(--drag-handle-width);
}

ol#song-matches > li > *:last-child {
  align-self: end;
}

ol#song-matches > li .name {
  font: var(--song-font-medium);
  color: var(--color-1);
  text-align: left;
  display: block;
  min-width: 10rem;
  opacity: 1;
}

ol#song-matches > li .drag-handle {
  position: absolute;
  background: repeating-linear-gradient(
    45deg,
    #303030,
    #101010 3px,
    #303030 6px
  );
  top: 0;
  bottom: 0;
  right: 0;
  height: auto;
  width: var(--drag-handle-width);
  cursor: grab;
  z-index: 10;
  border-radius: 0 5px 5px 0;
  opacity: 0.1;
}

ol#song-matches > li:hover .drag-handle {
  opacity: 0.8;
}

/* book pills */
ol#song-matches ul.books {
  display: block;
  text-align: right;
  margin-top: .5rem;
  z-index: 1;
  transform-origin: top;
}

body.show-books ol#song-matches ul.books {
  transform: scaleY(1);
  opacity: 1;
  max-height: 1000px;
}

::view-transition-group(:root) {
  animation-duration: .3s;
  animation-timing-function: ease-in;
}

body.hide-books ol#song-matches ul.books {
  margin: 0;
  opacity: 0;
  transform: scaleY(0);
  max-height: 0;
}

ul.books > li {
  list-style-type: none;
  display: inline-block;
  position: relative;
  z-index: 1;
  background-color: transparent;
  color: var(--color-1);
  padding: var(--tags-padding-small);
  margin-right: 10px;
  margin-bottom: 10px;
  font: var(--tags-font-small);
  white-space: nowrap;
  cursor: pointer;
}

ul.books li a, ul.books li a:is(:visited, :focus, :hover) {
  text-decoration: none;
  color: var(--color-1);
}

ul.books li *.title::before {
  content: attr(title)
}

/* background screen: semi-transparent */
ul.books li::before {
  display: block;
  position: absolute;
  content: '';
  inset: 0;
  width: auto;
  height: auto;
  opacity: var(--book-opacity);
  z-index: -1;
  background-color: var(--default-book-color);
  border-radius: 4px;
}

ul.books li:hover::before {
  opacity: var(--book-opacity-hover);
}

ul.books li::before {
  background-color: var(--book-color);
}

ul.books li .p:before {
  content: ' p.';
}

#card {
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: black;
  top: 0;
  left: 0;
  z-index: 100;
  view-transition-name: card;
  overflow: hidden;
}

#card span {
  display: block;
  text-align: center;
  font-family: var(--typed-font-family);
}

#card span.title::before {
  margin-top: 8lvmin;
  content: attr(song);
  text-decoration: underline;
  text-underline-style: single;
  font-size: 8lvmin;
  font-size: 15lvmin;
  line-height: 1;
  color: white;
}

#card span.title::after {
  margin-top: 5lvmin;
  font-size: 15lvmin;
  content: attr(title);
  color: white;
}

#card span.title::before,
#card span.title::after {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#card span.p {
  margin-top: 5lvmin;
  font-size: 30lvmin;
  color: white;
}

#card:empty {
  display: none;
}


ol#song-matches > li {
  z-index: 0;
}

body.hide-tags ol#song-matches > li > .name > .tags {
  display: none;
}

.tags {
  display: block;
  position: relative;
  padding: 0;
  height: min-content;
  font: var(--font-typed-small-tight);
}

.name > .tags > tag-toggle.off {
  display: none;
}

.name > .tags.edit-mode > tag-toggle.off {
  display: inline-block;
}

dialog .tags > .edit-mode-toggle {
  display: none;
}

.tags > .edit-mode-toggle {
  float: right;
  margin-right: 10px;
  text-decoration: none;
  color: #aaa;
  background-color: #333;
  border: 1px solid #333;
  padding: 6px 5px 3px 5px;
  border-radius: 4px;

  /* inside selected */
  background-color: var(--tag-color);
  color: white;
  border-color: white;

}


/*   Dialog   */
dialog {
  box-sizing: border-box;
  --animation-duration: 0.4s;
  background-color: black;
  opacity: 0;
  transform: scaleY(0);
  transition: opacity var(--animation-duration) ease-out,
  transform var(--animation-duration) ease-out,
  overlay var(--animation-duration) ease-out allow-discrete,
  display var(--animation-duration) ease-out allow-discrete;
  /* Equivalent to
  transition: all var(--animation-duration) allow-discrete; */

  position: fixed;
  margin: 0;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  min-width: 50svw;
}

@media (max-width: 769px) {
  dialog {
    width: 100svw;
  }
}
@media (max-height: 600px) {
  dialog {
    height: 100svh;
    min-width: 70svw;
  }
}

/*   Open state of the dialog  */
dialog[open] {
  opacity: 1;
  transform: scaleY(1);
}

/*   Before-open state  */
/* Needs to be after the previous dialog[open] rule to take effect,
    as the specificity is the same */
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scaleY(0);
  }

  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0%);
  }
}

/* Transition the :backdrop when the dialog modal is promoted to the top layer */
dialog::backdrop {
  background-color: rgb(0 0 0 / 0%);
  /*transition:
    display var(--animation-duration) allow-discrete,
    overlay var(--animation-duration) allow-discrete,
    background-color var(--animation-duration);*/
  transition: all var(--animation-duration) allow-discrete;
}

dialog[open]::backdrop {
  background-color: rgb(0 0 0 / 75%);
}


dialog p {
  font: var(--font-typed-small-tight);
  margin: 0;
}

dialog p.intro {
  font: var(--instruction-font);
  max-width: 64ch;
}

dialog header {
  display: flex;
  align-content: flex-end;
  justify-content: space-between;
  border-bottom: .25px solid #555;
  border-top: .25px solid #555;
  padding: 10px 0;
  flex-wrap: nowrap;
}

@media (width < 768px) {
  dialog header {
    flex-direction: column;
    flex-wrap: wrap;
    align-content: normal;
  }
}


dialog header > * {
  margin-left: 10px;
}

dialog header > *:first-child {
  margin-left: 0;
  flex-basis: 50%;
}

dialog header > .buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-basis: 50%;
}

dialog.song-info {

  --image-width: 100px;
  --image-height: calc(var(--image-width) * 1.3);

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;

  .title-area:has(.composer-images) {
    min-height: var(--image-height);
  }
  .composer-images {
    display: flex;
    position: relative;
    float: right;
    gap: 10px;
    margin-left: 10px;
    margin-bottom: 10px;

    > div {
      position: relative;
      flex-basis: fit-content;
      min-width: var(--image-width);
      aspect-ratio: 1 / 1.3;
      border: 1px solid #ddd;
      border-radius: 8px;
      /* use ::after to show actual text */
      font-size: 1px;
      color: transparent;
    }

    > div::after {
      content: attr(data-composer);
      text-align: center;
      font: var(--font-typed-smaller);
      display: inline-block;
      position: absolute;
      bottom: -10px;
      left: 0;
      margin: 10px 0;
      color: gold;
      color: snow;
      color: oldlace;
      padding-inline: 5px;
      --blur: 3px;
      --offset: 3px;
      --negoffset: calc(-1 * var(--offset));
      text-shadow: black var(--offset) 0 var(--blur),
      black 0 var(--offset) var(--blur),
      black var(--negoffset) 0 var(--blur),
      black 0 var(--negoffset) var(--blur),
      black 0 0 var(--blur);
    }
  }

  @media (aspect-ratio < .8) {
    .composer-images {
      flex-direction: column;
    }
  }

  h3 {
    font: var(--song-font-large);
    letter-spacing: 2px;
    margin: 0;
  }

  .aka li {
    display: inline;
    font: var(--font-typed-small-tight);
  }

  .aka li:not(:last-of-type)::after {
    content: '; '
  }

  h4 {
    padding: 0;
    margin-block: 20px 10px;
    font: var(--font-typed-small-tight);
  }

  h4::before, h4::after {
    content: ' ** ';
  }

  section.books {
    span.p {
      padding-left: 1ex;
    }
  }

  @media (width < 700px) and (height < 700px) {
    .composer-images, section:has(.aka), section:has(.tags) {
      display: none;
    }
    .title-area:has(.composer-images) {
      min-height: 0;
    }
  }
}


/* Dialog for books */
#books-dialog {
  position: relative;
  box-sizing: border-box;
  padding: 0 15px;
  width: 100%;
  border-color: black;
  box-shadow: 0px 0px 3px var(--color-13);

  ol {
    list-style-type: none;
    display: grid;
    padding: 0;
    grid-template-columns: repeat(auto-fill, minmax(32ch, auto));
    grid-template-rows: 1fr;
    row-gap: 2vmin;
    column-gap: 2vmin;
  }

  li label {
    font-family: "Special Elite", Courier, Courier New, monospace;
    padding: 0.5em;
    color: white;
  }

  li input {
    float: left;
    height: 55px;
    width: 32px;
    margin-right: 10px;
    margin-top: 5px;
  }

  li h3 {
    font-size: 24px;
    font-weight: 100;
    margin: 0 0 0 40px;
    animation: none;
  }

  li h4 {
    font-size: 14px;
    margin: 0 0 0 40px;
  }


  .books > li {
    z-index: 1;
    position: relative;
    padding: 0 0 0 15px;
  }
}

.books > li::before {
  content: '';
  z-index: -1;
  position: absolute;
  display: block;
  inset: 0;
  opacity: var(--book-opacity);
  border-radius: 10px;
  background-color: var(--book-color);
}

details {
  position: relative;
  padding: 10px 20px;

  summary {
    font: var(--ui-control-font);
    width: 40%;
  }

  > toggle-switch, > a {
    float: right;
    transform: translateY(-26px);
    display: block;
  }

}

details#composers {
  background-color: var(--composer-color);

  toggle-switch {
    min-width: 29ex;
  }

  ul {
    clear: right;
    display: inline-block;
    padding: 0;
    text-align: justify;

    li {
      display: inline;
      font: var(--font-typed-small);
      letter-spacing: 1.5px;

      a {
        text-decoration: none;
        color: #ffffff90;

        b {
          display: inline-block;
          margin-left: .5ex;
          color: #ffffffc0;
          letter-spacing: 0;
        }
      }

      a:hover, a:focus {
        color: white;
        text-decoration: underline;

        b {
          color: white;
          text-decoration: underline;
        }
      }
    }

    li::before {
      content: ' ';
    }

    li::after {
      content: ' ';
      white-space: normal;
      word-spacing: 1em;
      background-image: radial-gradient(circle, white, white 7%, transparent 15%, transparent 35%, white 45%, white 48%, transparent 55%);
      background-size: 1em 1em;
      background-repeat: no-repeat;
      background-position: center center;
      opacity: 0.5;
    }
  }

  ul p {
    font: var(--font-typed-small);
  }
}
