:root {
    --page-width: 148mm;  /* A5 width */
    --page-height: 210mm;  /* A5 height */
    --page-aspect-ratio: 0.7047;  /* 148mm / 210mm */
}

body {
    font-family: 'Noto Serif SC', serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #1a1a1a;
    overflow-x: hidden;
}

.font-geist-mono {
    font-family: monospace;
    letter-spacing: -0.5px;
}

#book {
    width: var(--page-width);
    height: var(--page-height);
    max-width: 90vw;
    max-height: calc(100vh - 100px);
    aspect-ratio: var(--page-aspect-ratio);
    perspective: 2000px;
}

.page {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    padding: 0;
    transform-origin: left center;
    transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content {
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    text-align: center;
}

.quote {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: bold;
    text-align: center;
    max-width: 90%;
    margin: 0;
}

.page-number {
    position: absolute;
    bottom: 20px;
    font-size: 14px;
    color: #888;
}

/* Navigation buttons */
.nav-btn {
    border: none;
    background: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quote {
        font-size: 1.8rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .quote {
        font-size: 1.4rem;
    }
}
