/* Returns Interface - Page View Display Styles */
/* Word-by-word display during active playback */

#pageView {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* PageView must never overflow; it is always clipped to one page by line balancing. */
#pageViewDisplay {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: var(--pageview-text-viewport-top-gap) var(--reader-text-viewport-side-gap) var(--pageview-text-viewport-bottom-gap);
    background: none;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    font-size: var(--pageviewmode-font-size);
    line-height: 1.15;
    color: #e5e7eb;
    overflow: hidden;
    cursor: default;
    transition: opacity 0.15s ease;
    pointer-events: auto;
}

#pageViewDisplay.playing {
    font-size: var(--pageviewmode-font-size);
    line-height: 1.15;
}

#pageViewDisplay .text-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    max-height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: normal;
    text-align: center;
    overflow: hidden;
}

#pageViewDisplay .text-line {
    display: block;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

#pageViewDisplay .text-line:last-child {
    margin-bottom: 0;
}

#pageViewDisplay br {
    display: block;
    margin: 0;
    padding: 0;
}

#pageViewDisplay br.line-break {
    line-height: 0;
    height: 0;
}

#pageViewDisplay span {
    background: transparent;
    border-radius: 4px;
    padding: 2px 4px;
    display: inline;
}
