html, body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

.page {
    position: relative;
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 100%;
    line-height: normal;
    text-align: center;
    font-size: 1.1em;
    color: var(--text-light);
    background-color: #f0f0f0;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    position: relative;
    display: table-cell;
    width: 100%;
    vertical-align: middle;
    padding: 1em 2em;
    z-index: 1;
}

.content {
    max-width: 900px;
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    color: var(--text-light);
    padding: 20px 0;
    text-align: left;
    padding-left: 15px;
    font-size: 1.3em;
    z-index: 999;
    font-weight: 600;
}

.nav-buttons {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.right-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reading-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80vw, 900px); 
    min-width: 300px;
    height: 60vh;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    z-index: 10000;
    border-radius: 10px;
    padding: 25px;
    overflow: auto;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    margin: 0 20px; 
    transition: all 0.3s ease;
}

.reading-box-content {
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 1.1em;
}

.connector-line, .right-connector {
    position: fixed;
    height: 0;
    border-top: 2px dashed var(--primary-color);
    z-index: 9999;
    pointer-events: none;
}

.footer-message {
    position: fixed;
    bottom: 50px;
    left: 50%;
    color: var(--text-light);
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    font-size: 1.4em;
}

.last-updated {
    position: fixed;
    bottom: 13px;
    left: 13px;
    color: var(--primary-color);
    font-size: 14px;
}

.copyright {
    position: fixed;
    bottom: 13px;
    right: 13px;
    font-size: 14px;
    z-index: 10000;
    color: var(--text-light);
}

#ai-disclaimer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-size: 1.4em;
    z-index: 10000;
    max-width: 80%;
    display: none;
}

.language-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    cursor: pointer;
}

#dynamicText {
    font-size: 1.4em;
    line-height: 1.6;
    margin: 20px 0;
    min-height: 120px;
    padding: 20px;
    transition: all 0.3s ease;
}