*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: url('bg147.gif') repeat;
  background-size: auto;}


html, body {
  margin: 0;
  padding: 0;
  color: #4a2e21; 
  line-height: 1.7;
}

header {
  text-align: center;
  margin-bottom: 1.3rem;
  position: relative;
}

.wrapper {
  max-width: 620px;
  margin: 5rem auto;
  background-color: #fffaf5;
  border: 2px solid #6d4432;
  box-shadow: 4px 4px 0 #c4a089;
  padding: 2rem 2.5rem 2.5rem 2.5rem;
  position: relative;
}

.wrapper-header-bar {
  background: #d9bba7;
  border-bottom: 2px solid #6d4432;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  color: #4a2e21;
  letter-spacing: 0.03em;
  margin: -2rem -2.5rem 1.3rem -2.5rem; 
  box-shadow: 0 2px 0 #c4a089;
}

.wrapper-title {
  font-weight: bold;
}

.window-buttons {
  display: flex;
  gap: 6px;
}

.window-buttons .btn {
  font-family: monospace;
  font-size: 0.6rem;
  background: #fdf2e6;
  color: #6d4432;
  border: 1.5px solid #6d4432;
  padding: 1px 5px;
  border-radius: 1px;
  box-shadow: inset 1px 1px #fff6ef;
  cursor: default;
}



.hanging-header {
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 2rem;
  user-select: none;
  position: relative;
}

.sign-title {
  position: relative;
  display: inline-block;
  background: #f9f4ec; 
  color: #7a5a42; 
  border: 2px solid #a8886d; 
  border-top-width: 5px; 
  box-shadow: 3px 3px 0 #d2c1aa; 
  text-shadow: 0.5px 0.5px #faf5ef; 
  margin-bottom: 1rem;
  padding: 0.3rem 2rem 0.5rem 2rem;
}

.sign-title::after,
.sign-title::before {
  content: "";
  position: absolute;
  top: 4px;           
  width: 6px;
  height: 6px;
  background: #d2c1aa;
  border-radius: 50%;
  z-index: 2;
}

.sign-title::before {
  left: 8px;
}

.sign-title::after {
  right: 8px;
}



.subtitle {
  margin-top: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 0.8rem;
  color: #7a4f2a;            
  text-shadow: 1px 1px #f9f2e9;
  letter-spacing: 0.025em;
}

header h1 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.8rem;
  color: #6d4432;
  letter-spacing: 0.03em;
  margin: 0.2rem 0 0.2rem 0;
  text-shadow: 1px 1px #fceee2;
}

html, body { 
  font-family: 'Zilla Slab', serif;
}


main {
  font-size: 0.85rem;
  color: #4a2e21;
  font-weight: 500;
  letter-spacing: 0.012em;
  line-height: 1.7;
  text-align: justify;
  margin: 0 auto;
  max-width: 480px;
}

.wrapper h2 {
  font-family: 'Share Tech Mono', monospace;
  font-weight: normal;
  color: #b86b6b;
  font-size: 1.1rem;
  text-align: center;
}

.intro .greeting {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.15rem;
  color: #b86b6b;
  margin-bottom: 1.1rem;
  text-align: center;
}

.intro p {
  margin-bottom: 1.3rem;
}

a {
  color: #b86b6b;
  text-decoration: none;
  border-bottom: 1.5px dashed #b86b6b;
  transition: color 0.3s ease, border-color 0.3s ease;
  transition: background-color 0.3s ease, color 0.3s ease;

}

a:hover {
    background-color: #f8e8e6;
    color: #854a4a;
}

.wrapper hr.retro-divider {
  border: none;
  height: 0;
  margin-top: 1rem;
  margin-bottom: 1.8rem;
  border-top: 3px double #d9bba7;
  position: relative;
}


footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  text-align: center;
  color: #a0806b;
  border-top: 3px double #d9bba7;
  padding-top: 1rem;
  font-weight: 600;
  position: relative;
}

footer p {
  margin: 0;
  padding-top: 0;
}

footer a {
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;

}

footer a:hover {
  color: #854a4a;
  border-bottom-color: #854a4a;
}


.pixel-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-bottom: 0;

}

.pixel-nav li {
  margin: 0;
}

.pixel-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 3px 6px;
  background-color: #fffaf5;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: #4a2e21;
  text-decoration: none;
  border-style: solid;
  border-width: 1px 1px 2px 2px;
  border-color: #ffffff #6d4432 #6d4432 #ffffff;
  border-radius: 0;

}

.pixel-nav a:hover {
  background-color: #fffaf5;
  color: #4a2e21;
  border-color: #ffffff #6d4432 #6d4432 #ffffff;
}

.pixel-nav a:active {
  background-color: #f4e5d6;
  color: #854a4a;
  border-color: #6d4432 #ffffff #ffffff #6d4432;
}

.pixel-nav img {
  width: 12px;
  height: 12px;
  image-rendering: pixelated;
}

.fav-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}


.pixel-status-box {
  position: fixed;
  top: 200px;
  right: 80px;
  width: 180px;
  background: #fff8f0;
  border: 2px solid #6d4432;
  border-radius: 3px;
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #6d4432,
    3px 3px 0 #c4a089;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: #4a3c31;
  z-index: 999;
}

.pixel-header {
  background: #d9bba7;
  color: #4a2e21;
  font-size: 0.55rem;
  padding: 2px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #6d4432;
  font-weight: bold;
  letter-spacing: 0.03em;
}

.pixel-title {
  font-family: 'Share Tech Mono', monospace;
}

.pixel-controls {
  display: flex;
  gap: 3px;
}

.pixel-btn {
  font-size: 0.5rem;
  line-height: 1;
  padding: 0 3px;
  background: #fff8f0;
  border: 1px solid #6d4432;
  box-shadow: inset 1px 1px #fdf2e6;
  color: #854a4a;
  cursor: default;
}

.pixel-body {
  padding: 0.4rem 0.5rem;
  line-height: 1.4;
}

.pixel-body p {
  margin: 0.3rem 0;
}


@media (max-width: 640px) {
  body {
    padding: 2rem 1rem 3rem 1rem;
  }
  .wrapper {
    max-width: 100%;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
  }
  header h1 {
    font-size: 1.6rem;
  }
  nav ul {
    gap: 0.9rem;
    font-size: 0.8rem;
  }
  main {
    max-width: 100%;
    font-size: 0.85rem;
  }
  .intro .greeting {
    font-size: 1rem;
  }
}

.float-img-right {
  float: right;
  margin: 0 -1rem 0.5rem 1rem; 
  width: 70px;
  height: auto;
}
.poster-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.poster-frame {
  background: #fff9f4;
  position: relative;
  border: 2.0px dashed #d9bba7;
  border-radius: 15px;
  padding: 0.35rem;
  width: 100px;
  box-shadow:
    0 4px 6px rgba(217, 187, 167, 0.25);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  overflow: visible;
}

.poster-frame img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow:
    inset 0 0 12px 2px #f5e9e2;
  transition: filter 0.3s ease;
  position: relative; 
  z-index: 1;         

}


.poster-frame:hover {
  transform: scale(1.07);
  box-shadow:
    0 8px 15px rgba(217, 187, 167, 0.4);
}

.poster-frame:hover img {
  filter: brightness(1.05) saturate(1.1);
}
.mini-divider {
  border: none;
  border-top: 2px dotted #d7b8a1;
  margin: 1rem auto 1rem auto;
  width: 50%;
  position: relative;
  text-align: center;
}

.mini-divider::before {
  content: "✿";
  position: absolute;
  top: -0.7em;
  left: 50%;
  transform: translateX(-50%);
  background: #fff8f0;
  padding: 0 0.5em;
  color: #c8a68c;
  font-size: 0.9rem;
}

.film-section {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: #854a4a;
  margin-top: 0rem;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.04em;
  position: relative;
}


/* Start https://www.cursors-4u.com */ * {cursor: url(https://cur.cursors-4u.net/nature/nat-10/nat996.cur), auto !important;} /* End https://www.cursors-4u.com */

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: -1rem;
  padding-right: 1rem;
}

.book-cover {
  width: 100px;
  height: 150px;
  border: 1.5px solid #b86b6b;
  padding: 4px;
  background: #fffaf5;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.book-cover:hover {
  transform: scale(1.05);
}

.book-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.book-row.reverse-row {
  flex-direction: row-reverse;
}
.book-row.reverse-row .book-grid {
  margin-left: 0;
  margin-right: -1rem;
  padding-left: 1rem;
}
.book-row.reverse-row .book-section-text {
  text-align: left;
}

.book-row.wrap {
  display: block;
  overflow: hidden; 
}

.book-row.wrap .book-grid {
  float: left;
  width: 220px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.5rem;
  margin-right: 1rem; 
  margin-left: 0;
  padding-top: 0.5rem;
  box-sizing: border-box;
}


.book-row.wrap.reverse .book-grid {
  float: right;
  width: 220px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.5rem;
  margin-left: 1rem;
  margin-right: 0;   
  padding-top: 0.5rem;
  box-sizing: border-box;
}

.book-row.wrap.reverse {
  padding-top: 0.5rem;
  padding-right: 0.5rem;
  overflow: visible;
}


.book-row.wrap.reverse .book-grid {
  float: right;
  width: 220px; 
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.5rem;
  margin-left: 1rem; 
  margin-right: -1rem; 
}

.book-row.wrap .book-section-text,
.book-row.wrap.reverse .book-section-text {
  overflow: visible;
  display: block;
}

.book-row.wrap::after,
.book-row.wrap.reverse::after {
  content: "";
  display: table;
  clear: both;
}

.read-more-toggle {
  margin-top: 1rem;
  cursor: pointer;
}
.read-more-text {
  font-size: 0.85rem;
  font-weight: normal;
  color: #5a4a3a;
  display: inline;
  cursor: pointer;
}
.read-more-link {
  border-bottom: 1px solid #c8a68c;
  cursor: pointer;
  display: inline-block;
  padding-bottom: 0;
}
.read-more-text .triangle {
  font-size: 0.7rem;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.triangle.rotate {
  transform: rotate(180deg);
}

.book-notes-panel {
  font-size: 0.85rem;
  color: #5a4a3a;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: left;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.book-notes-panel li {
  margin-bottom: 0.3rem;
}

.book-notes-panel.visible {
  max-height: 1000px;
  opacity: 1;
  pointer-events: auto;
}
.read-more-text,
.book-notes-panel {
  display: block;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}


@media (max-width: 640px) {
  .retro-status-box {
    display: none;
  }
}
