#narrator {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 32%;
    height: 100%;
    background-color: var(--primary-color);
    border: var(--border);
}

#narrator h1 {
    padding-right: var(--padding-md);
    padding-top: var(--padding-md);
    align-self: flex-end;
    font-size: var(--h1-size);
    margin-bottom: var(--padding-sm);
}

#narrator p {
    margin-top: 4px;
}

.pt {
    padding-top: 16px;
}

.how-they-are {
    padding-left: 30%;
}

.not-so-friendly {
    padding-left: 20%;
}

#content {
    position: relative;
    width: 100%;
    height: 100%;
    /*background-color: yellow;*/
    display: flex;
    flex-direction: column;
    gap: var(--padding-sm); 
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.chapter {
    width: 100%;
    min-height: 350vh;
    display: flex;
    flex-direction: column;
    gap: var(--padding-sm);
    /*padding-bottom: 30vh;  Space between chapters */
}

/* Change from .chapter div to .chapter .page since we now use class="page" */
.chapter .page {
    position: sticky;
    width: 100%;
    min-height: 100vh;
    /*border: 1px solid red;*/
    padding-left: var(--padding-md);
    /*box-sizing: border-box;*/
}

.chapter .page:nth-child(1) {
    top: var(--padding-md);
}

.chapter .page:nth-child(2) {
    top: 30%;
}

.chapter .page:nth-child(3) {
    top: 50%;
}

.chapter:nth-child(2) {
    margin-top: -50vh;
}

/* Language alternating animations */
@keyframes fadeInOut-en {
    0% { 
        opacity: 1; 
        text-shadow: none;
    }
    50% { 
        opacity: 0.1; 
        text-shadow: 0 0 10px rgba(33, 71, 27, 0.3);
    }
    100% { 
        opacity: 1; 
        text-shadow: none;
    }
}

@keyframes fadeInOut-pt {
    0% { 
        opacity: 0.1; 
        text-shadow: 0 0 10px rgba(33, 71, 27, 0.3);
    }
    50% { 
        opacity: 1; 
        text-shadow: none;
    }
    100% { 
        opacity: 0.1; 
        text-shadow: 0 0 10px rgba(33, 71, 27, 0.3);
    }
}

.en {
    animation: fadeInOut-en 9s infinite;
}

.pt {
    animation: fadeInOut-pt 9s infinite;
}