:root {
  --beige: #edece5;
  --white: #e8eef1;
  --orange: #ff5318;
  --green: #034b30;
  --black: #0b1215;
  --book-height: 2rem;
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var();
  color: var(--black);
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  padding: 1rem;
}

header h1 {
  margin-bottom: 0.2rem;
  font-size: large;
  text-transform: uppercase;
  margin: 0;
}

nav {
  display: flex;
  gap: 1rem;
}

nav li {
  list-style: none;
}

header p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var();
}

footer {
  margin-top: auto;
}

#map {
  height: 500px;
}

.shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
  align-items: end;
}

.shelf li {
  display: flex;
  width: max-content;
  background-color: var(--beige);
  list-style: none;
  align-items: end;
  justify-content: center;
  min-width: calc(var(--pages) * 0.2px);
  --padding-top: calc(12px * (4 + var(--random-number)));
  padding-top: var(--padding-top);
  padding-bottom: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  min-height: calc(13em + var(--padding-top));
}

.shelf li :first-child {
  /*  */
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
}

.shelf li :nth-child(2) {
  /*  */
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
}
