#explainer-container {
    display: flex;

    padding: 20px;
    margin: 80px auto 0 auto;
}

/* CONTENT */
.explainer-content {
    position: relative;

    display: flex;
    overflow: visible;

    max-width: 45%;
    height: 100%;

    padding: 10px;
}

/* NARRATIVE */
.explainer-narrative {
    position: relative;

    height: auto;
    overflow: visible;
}

.explainer-narrative-item {
    padding-bottom: 20px;
    padding-right: 10px;
}

/* SEGMENT */
.explainer-segment {
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
}

.explainer-segment-item {
    width: 3px;
    border-radius: 5px;

    height: 20px;
    background-color: #ddd;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.explainer-segment-item.active {
    width: 5px;
    background-color: #c40d2e;
}

.explainer-pointer {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid #000;

    position: fixed;

    /*margin-top: 12px;*/
    margin-top: -12px;
    margin-left: 5px;
    z-index: 1000;
}

/* ILLUSTRATION */
.explainer-illustration {
    position: relative;
    padding: 10px;

    width: 55%;
    height: 100vh; /* Add this to constrain height */
    overflow: hidden;
}

.explainer-illustration-item {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;

    /*background-color: #f8f9fa;*/
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;

    max-height: 80vh; /* Add this to constrain height */
    overflow-y: auto;
    scroll-behavior: smooth;

    scrollbar-width: auto; /* For Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.1); /* For Firefox */
}

.explainer-illustration-item.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, visibility 0s;
}
