@font-face {
    font-family: 'Coiny';
    src: url('fonts/coiny-regular-webfont.woff2') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Domine';
    src: url('fonts/Domine-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background: #fdeaba;
    margin: 0;
    height: 100vh;
    overflow-y: auto;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.logo {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.thin {
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 2 / 3;
    display: none;
}

.viewer-thin {
    box-sizing: border-box;
    touch-action: pan-y;
    transition: transform 180ms ease;
    will-change: transform;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.viewer-thin .image-wrap {
    width: 100%;
    text-align: center;
}

.viewer-thin .image-wrap img {
    object-fit:contain;
    border-radius: 10px;
    width: 100%;
}

.viewer-wide.dragging { transition: none; }
.viewer-thin.dragging { transition: none; }

.wide {
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.viewer-wide {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-content: start;
    height: 100vh;
    box-sizing: border-box;
    touch-action: pan-y;
    transition: transform 180ms ease;
    will-change: transform;
    padding-top: 50px;
}

.left {
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-top: 32px;
}

.left img {
    width: 100%;
    border-radius: 10px;
    max-height: 75vh;
    min-height: 700px;
}

.controls {
    align-items: center;
}

.button--disabled { opacity: 0.45; pointer-events: none; }

.mobile-control-parent {
    width: 100%;
    position: fixed;
    top: 10px;
    left: 0px;
    z-index: 10;
    max-width: 1500px;
}

.controls--mobile {
    z-index: 6;
    position: relative; 
    border-radius: 10px;
    text-align: center;
}

.controls--mobile .button { width: 56px; }

.button {
    width: 56px;
    height: auto;
    cursor: pointer;
    display: inline-block;
}

.right {
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    text-align: left;
    overflow: visible;
}

.title {
    text-align: center;
}

.title { 
    font-family: 'Georgia', serif; 
    font-size: 2rem; 
    color: #204a87; 
    margin: 0 0 1rem 0; 
    font-family: coiny, sans-serif;
}

.story-text { 
    font-size: 1.125rem; 
    line-height: 1.8; 
    color: #204a87; 
    flex: 1; 
    min-height: 0; 
    text-align: left; 
    text-justify:inter-word;
    font-family: domine, serif;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    /*mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);*/
}
.story-text span { 
    padding: 0 0.05rem; 
}

.word-highlight { 
    background: #ffd84d; 
    border-radius: 4px; 
    transition: background 0.15s ease; 
    padding: 0 0.1rem; 
}

.final-title { 
    margin-top: 0; 
    color: #173a5e; 
    font-size: 1.4rem; 
}

.final-paragraph { 
    margin: 0.8rem 0; 
    color: #2b4f77; 
}

.final-link { 
    color: #1a73e8; 
    text-decoration: underline; 
}

.final-small { 
    margin-top: 1rem; 
    font-size: 0.9rem; 
    color: #7b8ca3; 
}

.side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    z-index: 10;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    user-select: none;
}
.side-arrow:hover { 
    background: rgba(0,0,0,0.35); 
    transform: translateY(-50%) scale(1.05); 
}

.left-arrow {
    left: 10px; 
}

.right-arrow { 
    right: 10px; 
}

.thin {
    display: none;
}

@media (max-width: 1000px) {
    .title {
        margin-top:75px;
    }

    .wide {
        display: none;
    }

    .thin {
        display: block;
    }

    .side-arrow {
        display: none;
    }

    .story-text {
        padding-left: 8px;
        padding-right: 8px;
    }

    .thin {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .title {
        margin-top:75px;
    }

    .wide {
        display: none;
    }

    .thin {
        display: block;
    }

    .side-arrow {
        display: none;
    }

    .story-text {
        padding-left: 8px;
        padding-right: 8px;
    }
}