@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Gloria+Hallelujah&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url('tancheckered.png') repeat;
  background-color: #f8f1e9;
  font-family: 'Gloria Hallelujah', cursive;
  padding: 40px;
  color: #333;
}

/* Notebook container */
.notebook {
  display: flex;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto 50px auto;
  background: transparent;
  border: 2px solid #ccc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  animation: pageFlip 1.2s ease;
}

/* Individual journal page */
.page {
  flex: 1;
  padding: 30px 40px;
  position: relative;
  max-height: 500px;
  overflow-y: auto;

  /* Textured + lined background */
  background-image:
    url('https://www.transparenttextures.com/patterns/paper-fibers.png'),
    repeating-linear-gradient(to bottom, transparent, transparent 27px, #cfcfcf 28px);
  background-color: #fffdf8;
  background-repeat: repeat;

  /* Decorative black stitch border */
  border: 1.5px dashed #d6bfa7;
  border-radius: 10px;

  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.6s ease;
}

.page.right {
  border-right: none;
}

/* Flip effect on hover */
.page:hover {
  transform: rotateY(-3deg);
  z-index: 1;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.page h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #874e4c;
}

.page p {
  font-size: 1.1em;
  line-height: 1.8;
  white-space: pre-line;
}

/* Flipbook entry animation */
@keyframes pageFlip {
  from {
    transform: rotateY(-20deg);
    opacity: 0;
  }
  to {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

/* Entry index (navigation box) */
.entry-index {
  max-width: 900px;
  min-height: 160px;
  margin: 60px auto;
  text-align: center;
  background: #fff8dc; /* warm light yellow (aged paper) */
  padding: 40px 60px;
  border: 2px dashed #d6bfa7;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.entry-index h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #6b4b3e;
}

.entry-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-index li {
  display: inline-block;
  margin: 0 10px;
}

.entry-index a {
  text-decoration: none;
  color: #6b4b3e;
  font-weight: bold;
  border-bottom: 1px dotted #a68a79;
  transition: color 0.2s ease;
}

.entry-index a:hover {
  color: #a86450;
}

/* Washi tape decorations */
.washi-tape {
  position: absolute;
  width: 250px;
  height: 150px;
  background-image: url('washi-tape1.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 20;
}

.washi-tape.top-left {
  top: -62px;
  left: -20px;
  transform: rotate(-10deg);
}

.washi-tape.bottom-right {
  bottom: -75px;
  right: -160px;
  transform: rotate(5deg);
}

/* Pressed flower decorations */
.pressed-flower {
  position: absolute;
  width: 160px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  z-index: 5;
}

.flower-top-left {
  top: -35px;
  left: -95px;
}

.flower-bottom-right {
  bottom: -80px;
  right: -40px;
}

.flower-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Custom scrollbars */
.page::-webkit-scrollbar {
  width: 10px;
}

.page::-webkit-scrollbar-thumb {
  background-color: #d6bfa7;
  border-radius: 5px;
}

.page::-webkit-scrollbar-track {
  background-color: #fff8dc;
}
