/*
File: swExampleStyles.css
Date: 2026-03-25
Author: klp
Workspace: SWSagaTemplate2026-03-24-Stg1
Purpose: Shared styles for all SketchWave example/saga stage pages.
         Link after swSiteStyles.css on every stage page.
*/


/* ── p5.js canvas ─────────────────────────────────────────────────────────── */
canvas {
    display: block;         /* ensures margin:auto centers it regardless of p5 display quirks */
    margin: 0 auto;         /* horizontally center the canvas within its parent */
    cursor: default;
    border-radius: 10px;
    border: 2px solid #888;
}

/* ── Two-column layout ────────────────────────────────────────────────────── */
/* Overrides swSiteStyles flex column so the canvas + panel sit side by side. */
div#primaryContent { display: block; }

#content {
    flex: 0 0 58.33333%;
    max-width: 58.33333%;
    width: auto;
    margin: 0;
}
@media (max-width: 767.98px) {
    #content { flex: 0 0 100%; max-width: 100%; }
}

/* ── Loading message ──────────────────────────────────────────────────────── */
/* Fixed positioning centers it over the full viewport regardless of column width. */
#loadingPara {
    position: fixed;
    top: 40%;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 200;
    pointer-events: none;
}

/* ── Right control panel ──────────────────────────────────────────────────── */
#rightPanel {
    overflow-y: auto;
    max-height: 88vh;
}
#rightPanel .card-body          { padding: 0.6rem 0.75rem; }
#rightPanel label               { font-size: 0.82rem; margin-bottom: 0.1rem; display: block; }
#rightPanel select,
#rightPanel input[type="range"] { width: 100%; }
#rightPanel .form-check-label   { font-size: 0.82rem; }
#rightPanel input[type="text"]  { font-size: 1rem; }

/* Color well inputs — full-width, consistent height */
#rightPanel input[type="color"] {
    width: 100%;
    max-width: 100%;
    height: 34px;
    padding: 3px 4px;
    cursor: pointer;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #fff;
}
