#middle-container {
  display: flex;
  flex-direction: row;
  --background-color: url("/library/images/handmadepaper.gif");
}

@media only screen and (max-width: 800px) {
  main {
    width: auto !important;
  }

  #bookshelf {
    width: auto !important;
  }

  #books img {
    width: 23% !important;
  }
}

@media only screen and (max-width: 500px) {
  #books img {
    width: 30% !important;
  }
}

:root {
  /* background colors */
  --background-color: url("/library/images/handmadepaper.gif");
  --main-background-color: url("/library/images/handmadepaper.gif");
  margin-left: 30px;
  margin-top: 20px;
}

main {
  width: 50%;
  height: fit-content;
  margin-left: 0;
}

main {
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--main-background-color);
  padding: var(--padding);
  max-width: 780px;
  margin-top: 10px;
  margin-left: 20px;
  margin-right: 20px;
  line-height: 1.5;
}

/* -------------------------------------------------------- */
/* BOOK SECTIONS  */
/* -------------------------------------------------------- */

#bookshelf {
  padding: 1em;
  width: 40%;
  border: 2px solid #726a63;
  border-radius: 5px;
  background-image: url("/library/images/retina_wood.png");
  height: fit-content;
}

#books {
  background-color: #d0b394;
  border-radius: 5px;
  box-shadow: inset 0px 0.5px 2px 2px #726a63;
  padding: 0.8em;
}

#books img {
  width: 20.5%;
  margin: 0.1em;
  background: linear-gradient(
    to right,
    rgb(60, 13, 20) 3px,
    rgba(255, 255, 255, 0.5) 5px,
    rgba(255, 255, 255, 0.25) 7px,
    rgba(255, 255, 255, 0.25) 10px,
    transparent 12px,
    transparent 16px,
    rgba(255, 255, 255, 0.25) 17px,
    transparent 22px
  );
  box-shadow: 0 0 5px -1px black, inset -1px 1px 2px rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  border: 2px solid rgb(255, 251, 240);
  border-left: transparent;
  border-bottom: transparent;
}

/* -------------------------------------------------------- */
/* BOOK SYNOPSIS SECTION  */
/* -------------------------------------------------------- */

.book-info > p,
h3,
li {
  text-align: left;
}

.book-info ul {
  padding: 0px;
}

.book-info li {
  list-style-position: inside;
}

.marquee p {
  width: 100% !important;
  animation: scroll-left 15s linear infinite;
}

main {
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--main-background-color);
  padding: var(--padding);
  max-width: 780px;
  margin-top: 10px;
  margin-left: 20px;
  margin-right: 20px;
  line-height: 1.5;
}

/* -------------------------------------------------------- */
/* code snippet from solaria via Starry  */
/* -------------------------------------------------------- */

.page {
  display: none;
  width: 95%;
}

.page:target {
  display: block;
}

.page:target ~ #home {
  display: none;
}

#spoiler-warning {
  width: 100%;
  text-align: center;
  border-bottom: 2px solid #633e1b;
  line-height: 0.1em;
  margin: 20px 0 10px;
}

#spoiler-warning span {
  background: #f3fad1;
  padding: 0 10px;
}

/* -------------------------------------------------------- */
/* INFO BOXES  */
/* -------------------------------------------------------- */

.card {
  width: 470px;
  background: rgb(234, 235, 234);
  font-family: "Courier New", Courier, monospace;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  overflow: hidden;
}

.card__title {
  color: black;
  font-weight: bold;
  padding: 5px 10px;
  border-bottom: 1px solid rgb(167, 159, 159);
  font-size: 0.95rem;
}

.card__data {
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  border-right: 3px solid rgb(203, 203, 203);
  border-left: 1px solid rgb(203, 203, 203);
  border-bottom: 2px solid rgb(203, 203, 203);
}

.card__right {
  width: 44%;
  border-right: 1px solid rgb(203, 203, 203);
}

.card__left {
  width: 26%;
  text-align: end;
}

.card__pic {
  width: 30%;
}
.item {
  padding: 3px 9px;
  background-color: white;
}

.card__right .item {
  padding-left: 0.8em;
}

.card__left .item {
  padding-right: 0.8em;
}

.item:nth-child(even) {
  background: rgb(234, 235, 234);
}
