
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f5f5f5; }

.header { background: #2c3e50; color: white; padding: 20px; text-align: center; }
.header h1 { font-size: 2.4em; margin-bottom: 6px; }
.header .tagline { font-size: 1.1em; font-weight: 500; margin-bottom: 8px; }
.header .service-line { margin-top: 4px; font-style: italic; max-width: 900px; margin-left: auto; margin-right: auto; }

.book-selector { padding: 20px; text-align: center; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.book-selector .intro-line { margin-top: 8px; font-size: 0.98em; color: #555; }

.book-cards { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 20px; }
.book-card { background: #60A5FA; color: white; padding: 12px 22px; border-radius: 8px; cursor: pointer; transition: 0.3s; border: none; font-size: 15px; }
.book-card:hover { background:#3B82F6; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.book-card.active { background: #2563eb; border: 5px solid #10B981; }

.book-card-wide {
    max-width: 450px;
    white-space: normal;
    text-align: center;
}

.viewer-container { max-width: 900px; margin: 20px auto; padding: 0 20px; }
.text-viewer {
    background: white; padding: 32px; border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); min-height: 480px; max-height: 70vh;
    overflow-y: auto; position: relative;
    user-select: none;
}

.book-title { font-size: 1.7em; color: #2c3e50; margin-bottom: 10px;
              padding-bottom: 8px; border-bottom: 3px solid #3498db; }
.book-author { font-size: 1.15em; color: #7f8c8d; margin-bottom: 22px; }

.book-content { line-height: 1.6; font-size: 0.95em; color: #333; }
.book-content p { margin-bottom: 10px; }

.watermark {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 7em; color: rgba(0,0,0,0.05);
    pointer-events: none; font-weight: bold;
}

.footer { text-align: center; font-size: 0.9em; color: #666; padding: 15px 10px 20px; }

.footer a {
    color: #60A5FA;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
    color: #3B82F6;
}


.secondary-buttons {
    padding-top: 2rem;       /* white-space gap ABOVE heading */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
    text-align: center;
    background: white;
}

.secondary-buttons .secondary-label {
    margin-top: 4px;
    font-size: 0.95em;
    color: #555;
}

.secondary-buttons .book-cards {
    margin-top: 12px;
    justify-content: center;
}

.secondary-buttons .book-card {
    background: #6366F1;
}

.secondary-buttons .book-card:hover {
    background: #4F46E5;
}

.secondary-buttons .book-card.active {
    background: #4f46e5;
    border: 5px solid #10B981;
}

.current-info {
    background: white;
    text-align: center;
    padding: 10px 20px 0;
}

/* PDF Viewer Styles */
#pdfViewer {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.pdf-controls button {
    background: #60A5FA;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.pdf-controls button:hover {
    background: #3B82F6;
}

.pdf-controls button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

#pageInfo {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.pdf-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: white;
}
