        :root {
            --text-bg-color: #362e2c;
            /* Brownish-black background for story text */
            --text-frame-color: #a0522d;
            /* Lighter brown frame border */
            --text-color: #e0d9d2;
            /* Light text color */
        }

        body {
            font-family: 'Georgia', serif;
            margin: 0;
            padding: 0;
            background-color: white;
            /* Overall background is white/light */
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .main-content-wrapper {
            display: flex;
            flex-grow: 1;
            min-height: calc(100vh - 50px);
            /* Adjust based on footer height */
        }

        .text-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            /* Vertically center the text content */
            padding: 50px;
            max-width: 50%;
            /* Ensures it stays on the left half */
        }

        .story-text-container {
            max-width: 500px;
            padding: 30px;
            background-color: var(--text-bg-color);
            border: 5px solid var(--text-frame-color);
            color: var(--text-color);
            margin: 0 auto;
            /* Center the container within the text-area */
        }

        .story-text-container h1 {
            color: #ffcc99;
            margin-top: 0;
            border-bottom: 1px solid var(--text-frame-color);
            padding-bottom: 10px;
        }

        .image-area {
            flex: 1;
            position: relative;
            overflow: hidden;
            /* Important for the fade effect */
            background-color: #000;
            /* Fallback color */
        }

        .image-area img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* Ensures the image covers the container without distortion */
            display: block;
        }

        /* CSS MASK FOR FADE EFFECT */
        .image-area::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* Gradient from transparent (left) to the solid color (right) */
            background: linear-gradient(to right,
                    rgba(255, 255, 255, 1) 0%,
                    rgba(255, 255, 255, 0) 10%);
        }

        .footer {
            background-color: #f0f0f0;
            color: #666;
            padding: 15px 0;
            text-align: center;
            border-top: 1px solid #ddd;
        }

        .footer a {
            color: var(--text-frame-color);
            text-decoration: none;
            margin: 0 15px;
            transition: color 0.3s;
        }

        .footer a:hover {
            color: var(--text-bg-color);
        }

        .return-button {
            color: #ffcc99;
            border: 1px solid #ffcc99;
            padding: 10px 20px;
            text-decoration: none;
            display: inline-block;
            margin-top: 20px;
        }