body {
  margin: 0;
}
h1 {
  text-align: center;
}
#intro {
  margin: auto;
  width: 50em;
}

#intro button {
  padding: 1em;
  margin: 1em;
  font-weight: bold;
  height: 4em;
}

#settings {
  margin: 1em;
}
#settings span {
  margin-right: 10px;
}
#display {
  text-align: center;
}
#search {
  font-size: 1em;
  width: 95%;
  margin: 1em;
}
#count {
  text-align: center;
}
#authors-list, #subjects-list {
  display: flex;
  flex-direction: column;
  max-height: 200px;
  flex-wrap: wrap;
  overflow-x: visible;
  width: 100%;
  overflow-y: hidden;
  column-gap: 1em;
  row-gap: 0.1em;
  padding-bottom: 1em;
}
#authors-list a {
  max-width: 8em;
  text-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#request {
  text-align: center;
  font-weight: bold;
  margin: 1em;
  background: lightgreen;
  border: 1px solid darkgreen;
}
#list {
  display: flex;
  width: 100%;
  flex-flow: wrap;
}
.hidden {
  display: none !important;
}

.book-cover {
  width: 150px;

  margin: 0.5em;
  border: 2px solid darkgoldenrod;

  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 0px 0px;
  grid-template-areas:
    "title title"
    "image image"
    "book book"
    "info date";
  align-items:center;
}
.book-cover h3 {
  grid-area: title;
  font-size: 0.9em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background-color: lightgoldenrodyellow;
  margin: 0;
  padding: 5px;
  height: 1.3em;
  line-height: 1.3em;
}
.book-list .book, .book-cover .book {
  grid-area: book;
  margin: 1em;
  font-weight: bold;
  height: 4em;
}
.book-cover img {
  grid-area: image;
  border: 1px solid black;
  border-radius: 5px;
  margin: auto;
  max-width: 150px;
}
.book-cover .info {
  grid-area: info;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
}
.book-cover .info, .book-cover .date {
  font-size: 0.8em;
  line-height: 1em;
  height: 1em;
}
.book-cover .date {
  grid-area: date;
  color: darkgray;
  text-align: end;
}

.book-list {
  width: 100%;
  margin: 5px;
  padding: 5px;

  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;

  grid-template-areas:
    "title date cal size page-count"
    "author subject subject publisher serie"
    "book desc desc desc desc";
}
.book-list .title {
  font-weight: bold;
  grid-area: title;
}
.book-list .authors {
  grid-area: author;
}
.book-list .date {
  grid-area: date;
}
.book-list .size {
  grid-area: size;
  text-align: right;
  padding-right: 1em;
}
.book-list .page-count {
  grid-area: page-count;
  text-align: right;
}
.book-list .serie {
  grid-area: serie;
}
.book-list .subject {
  grid-area: subject;
}
.book-list .publisher {
  grid-area: publisher;
  text-align: center;
}
.book-list .description {
  grid-area: desc;
}
.book-list .cal {
  grid-area: cal;
}
.book-list:nth-child(odd) {
  background: #f0f0f0;
}
