.stochastic-resampling-demo {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
}
.stochastic-resampling-demo .stochastic-demo-content {
    position: static;
    width: 100%;
}
.stochastic-resampling-demo [hidden] {
    display: none !important;
}
.stochastic-resampling-demo .demo {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    width: 100%;
}
.stochastic-resampling-demo .intro {
    width: 100%;
    text-align: justify;
    ;
}
.stochastic-resampling-demo .left {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}
.stochastic-resampling-demo .strokedisplay {
    flex: 2 1 0;
    min-width: 0;
    text-align: center;
}
.stochastic-resampling-demo .chart {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}
.stochastic-resampling-demo .left p {
    margin: 12px;
}
.stochastic-resampling-demo .stochastic-demo-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.stochastic-resampling-demo .stochastic-demo-switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.stochastic-resampling-demo .stochastic-demo-switch-track {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 14px;
    border-radius: 999px;
    background: #9aa3ad;
    transition: background .16s ease;
}
.stochastic-resampling-demo .stochastic-demo-switch-track::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    transition: transform .16s ease, background .16s ease;
}
.stochastic-resampling-demo .stochastic-demo-switch-input:checked + .stochastic-demo-switch-track {
    background: #9fa8da;
}
.stochastic-resampling-demo .stochastic-demo-switch-input:checked + .stochastic-demo-switch-track::after {
    transform: translateX(20px);
    background: #3f51b5;
}
.stochastic-resampling-demo .stochastic-demo-switch-input:focus-visible + .stochastic-demo-switch-track {
    outline: 2px solid #0b5cab;
    outline-offset: 3px;
}
.stochastic-resampling-demo .stochastic-demo-switch-label {
    font-size: inherit;
}
.stochastic-resampling-demo canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}
.stochastic-resampling-demo.is-stacked .demo {
    flex-direction: column;
}
.stochastic-resampling-demo.is-stacked .left,
.stochastic-resampling-demo.is-stacked .strokedisplay,
.stochastic-resampling-demo.is-stacked .chart {
    flex-basis: auto;
    width: 100%;
}
.stochastic-resampling-demo input {
    padding: 3px;
}
.stochastic-resampling-demo table {
    width: 100%;
}
.stochastic-resampling-demo td {
    max-width: 0px;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}
.stochastic-resampling-demo .left td:nth-child(1) {
    width: 25%;
}
.stochastic-resampling-demo .left td:nth-child(3) {
    width: 45%;
}
.stochastic-resampling-demo .left td:nth-child(2), .stochastic-resampling-demo .left td:nth-child(4) {
    width: 15%;
}
