/* Knoww Reader - Main Styles */

body {
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Story Images */
.story-image-wrapper {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vw;
    overflow: hidden;
    background-color: #000;
    position: relative;
    display: none;
}

.story-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    object-fit: cover;
    display: none;
}

.desktop-story-image-wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background-color: #000;
    margin-bottom: 20px;
}

.desktop-story-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Container */
.container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 20px auto;
}

/* Navigation Buttons */
.navigation-buttons {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 10px;
    z-index: 1000;
    display: flex;
    gap: 15px;
    align-items: center;
}

.navigation-buttons a,
.navigation-buttons button {
    text-decoration: none;
    color: #007bff;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px;
}

.navigation-buttons a:hover,
.navigation-buttons button:hover {
    color: #0056b3;
}

.navigation-buttons .active {
    color: #0056b3;
}

/* Markdown Container */
.markdown-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
    overflow-x: auto;
    font-size: 1rem;
    line-height: 1.6;
}

code, pre {
    background: #eef;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Life Skills */
.life-skills {
    margin-top: 10px;
}

.life-skills a {
    display: inline-block;
    margin-right: 10px;
    color: #007bff;
    text-decoration: none;
}

.life-skills a:hover {
    text-decoration: underline;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .desktop-story-image-wrapper,
    .desktop-story-image {
        display: none;
    }

    .story-image-wrapper {
        margin: 0;
        padding: 0;
        width: 100vw;
        overflow-x: hidden;
        display: block;
    }

    .story-image {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
        position: static;
        transform: none;
    }

    .markdown-container {
        background: #ffffff;
        padding: 0px;
        border-radius: 8px;
        margin-top: 20px;
        overflow-x: auto;
        font-size: 1rem;
        line-height: 1.6;
    }

    .btn-group {
        display: none;
    }

    body {
        padding: 0px;
        background-color: #ffffff;
    }

    .container {
        padding: 15px;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .navigation-buttons {
        bottom: 10px;
        padding: 5px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        border-radius: 5px;
    }

    .navigation-buttons a {
        font-size: 1.2rem;
    }

    .navigation-buttons .btn {
        margin: 0 5px;
    }
}
