/*!*********************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./src/css/style.css ***!
  \*********************************************************************/
/**
 * Synaptory Fractal Traveler - Main Stylesheet (Web & Mobile)
 * 
 * Responsive layout, animations, controls, and visual effects.
 * 
 * @author Radim Brnka
 * @copyright 2025-2026 Radim Brnka
 * @license MIT
 * @version 1.9
 */

:root {
    --bg-color: rgba(24, 48, 13, 0.2);
    --mid-color: rgba(72, 144, 52, 0.6);
    --accent-color: rgba(180, 255, 106, 1);
}

html {
    interpolate-size: allow-keywords;
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #fff;
    cursor: crosshair;
    text-align: center;
    width: 100%;
    height: 100%;
}

@keyframes fadeInTop {
    0% { top: -320px; }
    100% { top: 0; }
}

@keyframes fadeInBottom {
    0% { bottom: -30px; }
    100% { bottom: 0; }
}

#headerContainer {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: var(--bg-color);
    backdrop-filter: blur(6px);
    width: fit-content;
    margin: 0 auto;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    cursor: auto;
    height: auto;
    overflow: visible;
    border-top: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    top: -320px;
    transition: 0.1s ease-in;
}

#headerContainer.ready {
    animation: fadeInTop 1s forwards;
}

#headerContainer.minimized {
    height: 30px;
    overflow: hidden;
}

#fractalCanvas {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    flex: 1;
    display: block;
}

#floatingCanvas {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 200px;
    display: none;
    background-color: #000;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 10px var(--accent-color);
    pointer-events: none;
    z-index: 9998;
}

h1 {
    padding: 0 0 0 0;
    margin: 6px auto 6px auto;
    color: #fff;
    z-index: 1000;
    font-family: "Bruno Ace SC", sans-serif;
    font-size: 12pt;
    letter-spacing: 1px;
    font-style: italic;
    text-shadow: 0 0 4px var(--accent-color), 0 0 12px var(--accent-color);
    width: 320px;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from {
        text-shadow: 0 0 4px var(--accent-color), 0 0 12px var(--bg-color);
    }
    to {
        text-shadow: 0 0 4px var(--accent-color), 0 0 12px var(--accent-color);
    }
}

@media screen and (max-width: 470px) {
    h1 {
        font-size: 10pt;
    }
}

p {
    margin: 5px 0 3px 0;
    color: #ccc;
    z-index: 1000;
    font-size: 12px;
    line-height: 14px;
    text-shadow: 0 0 10px #000;
}

a {
    color: #fff;
    text-decoration: underline 0.1em rgba(255, 255, 255, 0);
    transition: text-decoration-color 300ms;
    text-shadow: 0 0 8px var(--accent-color);
}

a:hover {
    text-decoration-color: var(--accent-color);
}

span {
    font-size: 12px;
    color: #fff;
    text-shadow: 0 0 10px #000;
}

hr {
    width: 90%;
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #222;
    padding: 0;
    margin: 5px auto 1px auto;
}

button {
    position: relative;
    z-index: 10;
    margin: 2px 1px;
    cursor: pointer;
    align-items: center;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    background-image: linear-gradient(#000, #222);
    border-radius: 4px;
    box-sizing: border-box;
    color: #eee;
    display: inline-flex;
    flex-direction: column;
    font-size: 12px;
    height: 18px;
    justify-content: center;
    line-height: 1;
    outline: none;
    overflow: hidden;
    padding: 10px 10px;
    text-align: center;
    text-decoration: none;
    transition: all 150ms;
    vertical-align: baseline;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    opacity: .85;
    border: 1px solid rgb(from var(--accent-color) r g b / 0.3);
}

button:first-of-type {
    /*border-radius: 4px 0 0 4px;*/
    /*border-left: none;*/
}

button:last-of-type,
button.last-of-ten {
    /*border-radius: 0 4px 4px 0;*/
    /*border-right: none;*/
}

button:hover {
    box-shadow: 0 2px 4px var(--accent-color), 0 -2px 4px var(--accent-color);
    text-shadow: 0 0 1px var(--accent-color);
}

button.active {
    color: var(--accent-color);
    background-image: linear-gradient(#222, #666);
    /*box-shadow: 0 4px 8px var(--accent-color), 0 -4px 8px var(--accent-color);*/
    text-shadow: 0 0 4px var(--accent-color);
}

button:first-of-type:hover {
    box-shadow: -2px 0 4px var(--accent-color), 0 2px 4px var(--accent-color), 0 -2px 4px var(--accent-color);
}

button:first-of-type.active {
    box-shadow: -4px 0 8px var(--accent-color), 0 4px 8px var(--accent-color), 0 -4px 8px var(--accent-color);
}

button:last-of-type:hover {
    box-shadow: 2px 0 4px var(--accent-color), 0 2px 4px var(--accent-color), 0 -2px 4px var(--accent-color);
}

button:last-of-type.active {
    box-shadow: 4px 0 8px var(--accent-color), 0 4px 8px var(--accent-color), 0 -4px 8px var(--accent-color);
}

button:focus {
    background-image: linear-gradient(#222, #666);
    text-shadow: 0 0 4px var(--accent-color);
}

#sliders {
    text-align: center;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center the slider-container */
    gap: 5px; /* Add spacing between sliders */
    margin: 5px 0 10px 0;
    display: none;
}

.slider-container {
    display: flex;
    flex-direction: row; /* Align label and slider horizontally */
    align-items: center; /* Vertically align label and slider */
    gap: 0; /* Add spacing between label and slider */
    min-width: 380px;
}

label, .sliderValue {
    color: #ccc;
    font-size: 12px;
    text-align: right; /* Align text to the right */
}

.sliderValue {
    min-width: 4.5em; /* Fixed width to prevent wiggle on sign change */
    font-variant-numeric: tabular-nums; /* Equal-width digits */
    font-family: monospace, monospace;
    display: inline-block;
}

.slider-container label {
    text-shadow: 0 0 10px var(--accent-color);
    color: #fff;
    font-weight: bolder;
    font-size: 12px;
}

.slider-container span {
    text-shadow: 0 0 1px var(--accent-color);
}

.slider {
    flex: 1; /* Allow the slider to take remaining space */
    height: 10px;
    -webkit-appearance: none;
    background: var(--bg-color);
    outline: none;
    border-radius: 10px;
    border: 1px solid #666;
    overflow: hidden;
    box-shadow: inset 0 0 5px var(--bg-color);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 1px solid #fff;
    box-shadow: 0 0 0 0 transparent;
    transition: width 0.15s ease-out, height 0.15s ease-out, box-shadow 0.15s ease-out;
}

.slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 1px solid #fff;
    box-shadow: 0 0 0 0 transparent;
    transition: width 0.15s ease-out, height 0.15s ease-out, box-shadow 0.15s ease-out;
}

.slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 10px var(--accent-color);
}

.thumbDisabled {
    background: #333;
}

/* Visual feedback when slider is near zero - helps user hit the zero point */
.slider.near-zero::-webkit-slider-thumb {
    background-color: rgba(1, 1, 1, 0.8);
}

.slider.near-zero::-moz-range-thumb {
    background-color: rgba(1, 1, 1, 0.8);
}

#dives-dropdown {
    display: none;
}

button.dive {
    white-space: normal;
    display: inline-flex;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding: 15px 10px;
    color: rgb(from var(--accent-color) r g b / 0.8);
}

button.dive.active {
    color: var(--accent-color);
}

.switch-field {
    /*border: 1px solid yellow;*/
    display: flex;
    overflow: hidden;
    margin: 0 auto;
    width: 300px;
    padding: 10px 20px 5px 20px;
}

.switch-field span {
    padding: 8px 5px 0 0;
    font-weight: bolder;
}

.switch-field button {
    height: 30px;
    width: 80px;
}

#mandelbrotSwitch {
    /*border-right: 1px solid var(--accent-color);*/
}

#juliaSwitch {

}

#persistSwitch {
    width: 20px;
    display: none;
}

#persistSwitch:focus {
    background-image: linear-gradient(#000, #222);
}

#controlArea {
    background: var(--bg-color);
    border-radius: 10px;
    width: fit-content;
    position: relative;
    margin: 0 10px 0 10px;
    padding: 1px 20px 4px 20px;
    cursor: auto;
}

#controlButtons {
    margin: 2px 0 0 0;
}

#controlButtons span {
    font-weight: bolder;
}

#controlButtons button {
    min-width: 80px;
    justify-content: center;
    display: inline-flex;
    flex-direction: column;
    vertical-align: baseline;
}

#controlButtons .dropdown.inline {
    display: inline-block;
    vertical-align: baseline;
}

#controlButtons .dropdown.inline .dropdown-toggle {
    width: 90px;
}

/* Palette dropdown items */
#palette-dropdown .dropdown-menu {
    min-width: 120px;
    max-width: 200px;
}

#palette-dropdown .dropdown-menu button.palette {
    flex: 1 1 auto;
    min-width: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    white-space: nowrap;
}

#palette-dropdown .dropdown-menu button.palette .color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* Animated color cycle swatch */
.color-cycle-swatch {
    background: conic-gradient(from 0deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b);
    animation: color-cycle-spin 3s linear infinite;
}

@keyframes color-cycle-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#palette-cycle.active {
    color: var(--accent-color);
}

#reset {
    color: #FF3131;
}

p.small {
    font-size: 11px;
}

#presets-dives {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}
#presets-dives span {
    font-weight: bolder;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    min-width: 80px;
}

.dropdown-toggle:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.5) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgb(from var(--accent-color) r g b / 0.3);
    border-radius: 8px;
    padding: 8px;
    z-index: 10000;
    min-width: 200px;
    max-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    margin-top: 4px;
}

.dropdown-menu.show {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

/* Scrollable dropdown on mobile */
@media (pointer: coarse) {
    .dropdown-menu {
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dropdown-menu.show {
        align-content: flex-start;
    }
}

.dropdown-menu button.preset {
    flex: 0 0 auto;
    min-width: 40px;
}


.highlight {
    color: #fff;
}

#version {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
    font-size: 11px;
}

#copy {
    color: #ccc;
    font-size: 11px;
}

#infoLabel {
    width: 380px;
    min-height: 14px;
    max-height: 30px;
    padding: 3px 5px 3px 5px;
    background-color: var(--bg-color);
    backdrop-filter: blur(8px);
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--bg-color);
    border-bottom: none;
    position: absolute;
    left: 0;
    right: 0;
    margin-inline: auto;
    opacity: 0; /* Keep it hidden by default */
    pointer-events: none;
}

#infoLabel.ready {
    animation: fadeInBottom 1s both;
    opacity: 1;
    pointer-events: auto;
}

.middot {
    color: var(--accent-color);
}

#infoText {
    color: #fff;
    /*color: var(--accent-color);*/
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    width: 100%;
    font-size: 11px;
    background: transparent;
    border: none;
    text-align: center;
    resize: none;
    overflow: auto;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
    cursor: pointer;
    text-shadow: 0 0 8px #000;
    caret-color: var(--accent-color);
}

#infoText:focus {
    outline: none !important;
}

/* Center guideline styles with dashed borders */
.centerLine {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
    display: none; /* Initially hidden */
}

.verticalLine {
    height: 100vh;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-left: 2px dashed #666;
    background: transparent;
}

.horizontalLine {
    width: 100vw;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border-top: 2px dashed #666;
    background: transparent;
}

/* Save View Dialog */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.dialog-overlay.show {
    display: flex;
}

.dialog-box {
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0.95), rgba(15, 15, 15, 0.98));
    border: 1px solid rgb(from var(--accent-color) r g b / 0.5);
    border-radius: 12px;
    padding: 24px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgb(from var(--accent-color) r g b / 0.2);
}

.dialog-box h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #fff;
    text-shadow: 0 0 8px var(--accent-color);
}

.dialog-box label {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 6px;
}

.dialog-box input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.dialog-box input[type="text"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgb(from var(--accent-color) r g b / 0.3);
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.dialog-btn {
    padding: 8px 18px;
    height: auto;
    min-width: 80px;
}

.dialog-btn.primary {
    background-image: linear-gradient(rgb(from var(--accent-color) r g b / 0.3), rgb(from var(--accent-color) r g b / 0.5));
    color: #000;
    text-shadow: 0 0 4px var(--accent-color);
}

.dialog-btn.primary:hover {
    background-image: linear-gradient(rgb(from var(--accent-color) r g b / 0.4), rgb(from var(--accent-color) r g b / 0.6));
}

.dialog-btn.primary:disabled {
    background-image: linear-gradient(rgba(100, 100, 100, 0.2), rgba(100, 100, 100, 0.3));
    color: #ccc;
    text-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* User preset styling in dropdown */
button.preset.user-preset {
    color: rgb(from var(--accent-color) r g b / 0.9);
    border-color: rgb(from var(--accent-color) r g b / 0.4);
    position: relative;
}

button.preset.user-preset::before {
    content: '*';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    opacity: 0.7;
}

/*button.preset.user-preset:hover::after {*/
/*    content: '\00d7';*/
/*    position: absolute;*/
/*    top: -2px;*/
/*    right: -2px;*/
/*    width: 14px;*/
/*    height: 14px;*/
/*    background: #ff4444;*/
/*    border-radius: 50%;*/
/*    font-size: 10px;*/
/*    line-height: 14px;*/
/*    text-align: center;*/
/*    color: #fff;*/
/*    cursor: pointer;*/
/*}*/

/* Controls Hint Tooltip */
.hint-trigger {
    position: relative;
    display: inline-block;
    cursor: help;
    text-underline-offset: 2px;
    color: #fff;
    text-decoration: underline 0.1em rgba(255, 255, 255, 0);
    transition: text-decoration-color 300ms;
    text-shadow: 0 0 8px var(--accent-color);
    font-size: 11px;
}

.hint-trigger:hover {
    text-decoration-color: var(--accent-color);
}

.hint-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(10px);
    border: 1px solid rgb(from var(--accent-color) r g b / 0.4);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 8px;
    min-width: 180px;
    max-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 15px rgb(from var(--accent-color) r g b / 0.15);
    z-index: 100000;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hint-trigger:hover .hint-tooltip {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}

.hint-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 30px;
    border: 6px solid transparent;
    border-bottom-color: rgb(from var(--accent-color) r g b / 0.4);
}

/* Invisible bridge to prevent tooltip from closing when moving mouse to it */
.hint-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

.hint-section {
    display: block;
    margin-bottom: 8px;
}

.hint-section:last-of-type {
    margin-bottom: 10px;
}

.hint-section strong {
    display: block;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-shadow: 0 0 6px var(--accent-color);
}

.hint-row {
    display: block;
    color: #ccc;
    line-height: 1.6;
    white-space: nowrap;
}

.hint-row kbd {
    display: inline-block;
    background: linear-gradient(to bottom, #333, #222);
    border: 1px solid #444;
    border-radius: 3px;
    padding: 1px 4px;
    /*font-size: 10px;*/
    font-family: inherit;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    margin: 3px 2px 0 0;
}

.hint-content {
    display: none;
}

/* Show mouse controls on non-touch devices */
.mouse-controls {
    display: block;
}

/* Touch devices: show touch controls, hide mouse controls */
@media (pointer: coarse) {
    .mouse-controls {
        display: none;
    }
    .touch-controls {
        display: block;
    }

    /* Tap to toggle on touch devices */
    .hint-trigger:hover .hint-tooltip {
        display: none;
        opacity: 0;
    }

    .hint-trigger.active .hint-tooltip {
        display: block !important;
        opacity: 1;
        pointer-events: auto;
    }
}

.hint-link {
    display: block;
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: text-shadow 0.2s;
}
/*!**************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./src/css/debugPanel.css ***!
  \**************************************************************************/

#debugInfo {
    position: fixed;
    left: 12px;
    bottom: 40px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: #d7d7d7;
    background: rgba(0, 0, 0, 0.70);
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    user-select: none;
    /*pointer-events: none;*/
    cursor: grab;
    min-width: 40px;
    max-width: 360px;
    z-index: 10000;
    text-align: left;
    display: none;
    height: fit-content;
    text-wrap: pretty;
}

.dbg-ok    { color: #b8ffb8; }
.dbg-warn  { color: #ffe28a; }
.dbg-bad   { color: #ff9aa2; }
.dbg-dim   { color: rgba(255,255,255,0.55); }
.dbg-title { color: rgba(255,255,255,0.95); font-weight: 600; }

.dbg-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    margin-left: 6px;
}

.dbg-badge.dbg-ok   { border-color: rgba(184,255,184,0.35); }
.dbg-badge.dbg-warn { border-color: rgba(255,226,138,0.35); }
.dbg-badge.dbg-bad  { border-color: rgba(255,154,162,0.35); }
