body {
  /* Paper texture background */
  background-image: url('https://img.freepik.com/free-photo/paperboard-texture_95678-72.jpg');
  background-repeat: repeat;
  background-size: 300px 300px; /* Adjust size as needed */
  background-attachment: fixed;
  background-color: #f5e7d0; /* Fallback color */
  

    
  color: #321d0a;
  font-family: 'Georgia', serif;
  line-height: 1.6;
  padding: 2rem;
  min-height: 100vh;
}


.flipbook-container{
  height: 1500px;
  width: 900px;
  position: absolute;
  top: 800px;
  left:200px;
}



#ransomizer {
  position: absolute;
  top: 100px;
  left: 100px;
  width: auto; /* Let it grow with content */
  height: auto;
  padding: 20px; /* Add breathing room */
  display: inline-block; /* Fits content width */
}

/* Line container - each line of text */
.ts {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Space between lines */
}


/* Modify or add these rules */
#ransomizer {
  width: 100%; /* Use full available width */
  max-width: 800px; /* Adjust as needed */
}

.tw {
  display: flex;
  flex-wrap: nowrap; /* Prevent line breaks */
  white-space: nowrap; /* Keep text in single line */
  margin-bottom: 15px; /* Space between lines */
}

.tc {
  /* Keep your existing styles */
  flex-shrink: 0; /* Prevent letters from shrinking */
}



/* Word wrapper - horizontal letter group */
.tw {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping if needed */
  gap: 8px; /* Space between letters */
}

/* Individual letters */
.tc {
  font-size: 24px; /* Fixed base size */
  padding: 8px 12px;
  margin: 0;
  flex-shrink: 0; /* Prevents squeezing */
}
#ransomizer {
  transform: scale(2.3); /* Adjust this value */
  transform-origin: top left;
}

.tc {
  display: inline-block;
  animation: shakyLetter var(--anim-duration) infinite steps(var(--anim-steps));
  transform-origin: center;
}

/* Add this to your existing CSS */
.tc {
  display: inline-block;
  animation: var(--letter-anim) var(--anim-dur) infinite steps(var(--anim-steps));
  transform-origin: center;
  will-change: transform;
}

/* Optional enhancement: subtle vignette */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, 
              rgba(0,0,0,0) 65%, 
              rgba(0,0,0,0.15) 100%);
  pointer-events: none;
  z-index: -1;
}

body.texturizer {
  margin: 2em;
  background-color: #f5f5f5; /* Optional: Add background color */
}

/* Main container - stacks lines vertically */
#ransomizer {
  display: flex;
  flex-direction: column;
  gap: 0.5em; /* Space between lines */
}

/* Text stack - each .ts contains lines */
.ts {
  display: flex;
  flex-direction: column;
  gap: 0.3em; /* Space between lines */
}

/* Text wrapper - each line */
.tw {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  white-space: nowrap;
}

/* Text character - individual letters */
.tc {
  display: inline-block;
  margin: 0 0.1em; /* Horizontal spacing between letters */
  padding: 0.2em 0.3em;
  line-height: 1.2;
}

/* Rotation classes (keep for cutout effect) */
.rr {
  transform: rotate(1.5deg);
}
.rl {
  transform: rotate(-1.5deg);
}

/* Optional: Add paper texture to letters */
.tc {
  background-size: cover;
  background-repeat: no-repeat;
}


