body {
    background-color: #e6dfd3;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Arial', sans-serif;
}
.book-container {
    width: 90vw;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.book {
    width: 100%;
    height: 520px;
    position: relative;
    perspective: 1000px;
    touch-action: pan-y;         /* Allows vertical scrolling but unlocks horizontal finger swipes */
    user-select: text;           /* Disables accidental text highlighting while swiping */
    -webkit-user-select: text;   /* iOS compatibility flag */
}

/* 🌟 या खालील .page ब्लॉकमध्ये वॉटरमार्क जोडला आहे 🌟 */
.page {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #fcf9f2;
    padding: 30px 25px;
    box-sizing: border-box;
    border: 1px solid #dcd1bd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    display: none;
    overflow-y: auto;

    /* वॉटरमार्कच्या ओळी */
    background-image: linear-gradient(rgba(252, 249, 242, 0.91), rgba(252, 249, 242, 0.91)), url('./cover.jpg');
    background-size: 85% auto;        /* वॉटरमार्कचा आकार सेट करतो */
    background-repeat: no-repeat;
    background-position: center 40%;  /* पानाच्या अगदी मध्यभागी ठेवतो */
}

.page.active {
    display: block;
    animation: flipIn 0.3s ease-in-out;
}
.cover {
    background-color: #8b0000;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.subtitle { color: #fdfaf2; margin-top: 15px; text-align: center; }
.tip { font-size: 12px; margin-top: 40px; opacity: 0.7; }
h1 { font-size: 2rem; margin: 0; }
h2 {
    color: #8b0000;
    text-align: center;
    font-size: 1.3rem;
    margin-top: 5px;
    border-bottom: 1px dashed #8b0000;
    padding-bottom: 8px;
}
p { font-size: 1.05rem; line-height: 1.8; color: #2b2b2b; text-align: justify; }
.page-number {
    position: absolute;
    bottom: px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}
.controls {
    display: flex;
    gap: 15px;
    width: 100%;
}
button {
    flex: 1;
    padding: 14px;
    background-color: #8b0000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}
button:disabled { background-color: #ccc; cursor: not-allowed; }
@keyframes flipIn {
    from { transform: rotateY(30deg); opacity: 0; }
    to { transform: rotateY(0deg); opacity: 1; }
}
