* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: unset;
}

:root {
  --color-primary-main: #FFF7EB;
  --color-secondary-main: #496F5D;
  --color-ternary-main: #714032;
  --color-ternary-dark: #392019;
}

body {
  background-color: var(--color-primary-main);
  position: relative;
}

header {
  position: sticky;
  top: 24px;
  z-index: 3000;
}

main {
  height: 100%;
  font-family: "Italianno", cursive;
}

.logo {
  font-size: 4rem;
  text-align: center;
  user-select: none;
  line-height: 2.5rem;
  margin-bottom: 8px;
  border-bottom: 1px solid black;
}

.sign {
  background-color: beige;
  border: 8px solid var(--color-ternary-main);
  margin: 24px auto 0px auto;
  position: relative;
  width: 280px;
  border-radius: 2px;
  padding: 16px 16px 8px 16px;
  font-family: "Italianno", cursive;
}

.sign::after,
.sign::before {
  position: absolute;
  content: ' ';
  height: 24px;
  width: 8px;
  top: -32px;
}

.sign::after {
  background-color: var(--color-ternary-main);
  left: 32px;
}

.sign::before {
  background-color: var(--color-ternary-main);
  right: 32px;
}

.menu {
  display: flex;
  font-family: "Tangerine", cursive;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.5rem;
}

.menu li {
  list-style: none;
  cursor: pointer;
}

.book-shelf {
  background-color: var(--color-ternary-dark);
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  gap: 32px;
  padding: 32px;
  margin: 32px auto 0 auto;
  width: 80%;
  overflow: hidden;
  justify-content: space-evenly;
  max-width: 800px;
  border-radius: 4px 4px 0 0;
}

.book {
  min-height: 120px;
  max-height: 120px;
  min-width: 80px;
  max-width: 80px;
  border-left: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all .15s ease-in-out;
  position: relative;
  overflow: hidden;
}

.book::after {
  content: ' ';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 8px;
  background: inherit;
  filter: hue-rotate(180deg);
}

.back-drop {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.449);
  z-index: 5000;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-page {
  max-height: 80vh;
  min-height: 30vh;
  width: 80%;
  max-width: 800px;
  background-color: var(--color-primary-main);
  padding: 24px 32px;
  border-radius: 2px;
  overflow: hidden;
  overflow: auto;
  position: relative;
}

.book-page p:nth-child(1) {
  margin-bottom: 16px;
  font-size: 3rem;
  font: bold;
  font-family: "Italianno", cursive;
  position: sticky;
}

.book-page p:nth-child(2) {
  font-family: "Tangerine", cursive;
  font-size: 2rem;
  overflow: hidden;
}

.book-wrapper {
  overflow: hidden;
  color: white;
  font-size: 2rem;
  display: flex;
  gap:8px;
  flex-direction: column;
  align-items: center;
}

.book-wrapper p {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 4px;
}