/* CSS Reset - Box model and basic normalization */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Color System - Design tokens for theory.toys dark-blue theme */

:root {
    /* Background colors - dark with blue tint */
    --bg-body: #0a0e14;
    --bg-navbar: #080b10;
    --bg-canvas: #080b10;
    --bg-panel: #0f1419;
    --bg-explanation: #0b0f13;
    --bg-section: #121820;

    /* Border colors - blue-tinted */
    --border-primary: #1a2633;
    --border-secondary: #1e2a3a;
    --border-subtle: #2a3f55;

    /* Text colors - mostly gray with selective blue highlights */
    --text-primary: #e0e0e0;
    --text-secondary: #ccc;
    --text-tertiary: #999;
    --text-muted: #888;
    --text-disabled: #555;
    --text-heading: #ccc;
    --text-subheading: #aaa;
    --text-bright: #fff;
    --text-dim: #666;
    --text-subtle: #6b7280;
    --text-gray: #9ca3af;

    /* Blue accent text - use for active/selected states */
    --text-green-bright: #00ccff;
    --text-green-muted: #0099cc;
    --text-green-dark: #0077aa;

    /* Interactive element colors - blue highlights */
    --interactive-hover: #1a4d6d;
    --interactive-active: #0e3a55;
    --interactive-disabled: #1a2633;

    /* Canvas/visualization colors */
    --canvas-bg: #080b10;
    --canvas-border: #1a2633;
    --axis-color: #2a3f55;

    /* Highlight colors for visualizations */
    --highlight-blue: #9fc99f;
    --highlight-red: #ff6b6b;
    --highlight-green: #51cf66;
    --highlight-yellow: #6c9;
    --highlight-purple: #b589ff;
    --highlight-cyan: #51d9ff;

    /* Premium/accent colors - vibrant cyan */
    --accent-premium: #00ccff;
    --accent-premium-hover: #33ddff;

    /* Range slider colors - blue theme */
    --slider-track: #1a2633;
    --slider-thumb: #00ccff;
    --slider-thumb-hover: #33ddff;

    /* Gradient colors - green tones */
    --gradient-button-start: #4a7a5a;
    --gradient-button-end: #3a6a4a;
}
/* Typography - Font families, sizes, and text styles */

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Font families */
.font-mono,
#event-details {
    font-family: "Courier New", monospace;
}

/* Headings */
h1 {
    font-size: 2em;
    color: var(--text-secondary);
}

h2 {
    font-size: 2em;
    color: var(--text-secondary);
}

h3 {
    font-size: 1.5em;
    color: var(--text-subheading);
}

h4 {
    font-size: 1.2em;
    color: #aaa;
}

/* Text utilities */
em {
    color: var(--accent-premium);
    font-style: italic;
}

strong {
    color: var(--text-primary);
}
/* Container - Main page containers and wrappers */

body {
    background-color: var(--bg-body);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

header h1 {
    font-size: 2em;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

header p {
    color: var(--text-muted);
    font-size: 1.1em;
}

/* Toy page headers (h1 + p pattern) */
.container > div > h1 {
    font-size: 2em;
    margin-bottom: 16px;
    margin-top: 20px;
    color: var(--text-secondary);
    text-align: center;
}

.container > div > h1 + p {
    color: var(--text-muted);
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
}
/* Grid - Layout grids for toys and landing page */

/* Main content grid - visualization on left, controls on right */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Controls sidebar */
.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Visualization containers */
.visualization-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Landing page categories */
#landing-categories {
    margin-top: 40px;
}

.landing-category-section {
    margin-bottom: 50px;
}

.landing-category-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-primary);
}

.landing-category-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-disabled);
}

.landing-category-subtitle {
    font-size: 0.65em;
    color: var(--text-dim);
    margin-left: 12px;
}

.landing-toys-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    column-gap: 16px;
}

.landing-toys-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.landing-toy-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.2s;
    font-size: 0.95em;
    display: block;
    line-height: 1.3;
}

.landing-toy-item:hover {
    color: var(--text-green-bright);
}

.landing-toy-item.active {
    color: var(--text-green-bright);
    font-weight: 600;
}

.landing-toy-item.disabled {
    color: var(--text-disabled);
    cursor: not-allowed;
}

.landing-toy-item.disabled:hover {
    color: var(--text-disabled);
}
/* Canvas - Visualization canvas elements */

canvas {
    background-color: var(--bg-canvas);
    border: 2px solid var(--border-primary);
    border-radius: 4px;
}

.visualization-container canvas {
    width: 100%;
    background-color: var(--bg-canvas);
    border: 2px solid var(--border-primary);
    border-radius: 4px;
}

/* Specific canvas sizes */
#minkowski-canvas {
    width: 100%;
    height: 700px;
    background-color: var(--bg-canvas);
    border: 2px solid var(--border-primary);
    border-radius: 4px;
    cursor: crosshair;
}

@media (max-width: 1024px) {
    #minkowski-canvas {
        height: 500px;
    }
}
/* Explanation - Educational content sections */

.explanation {
    margin-top: 60px;
    padding: 40px;
    background-color: var(--bg-explanation);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
}

.explanation h2 {
    color: var(--text-secondary);
    font-size: 2em;
    margin-bottom: 20px;
}

.explanation h3 {
    color: var(--text-subheading);
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.explanation h4 {
    color: #aaa;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.explanation p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    max-width: 900px;
}

.explanation em {
    color: var(--accent-premium);
    font-style: italic;
}

.explanation strong {
    color: var(--text-primary);
}

.explanation-section {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--border-primary);
}

.experiments {
    list-style: none;
    counter-reset: experiment-counter;
    margin-top: 20px;
}

.experiments li {
    counter-increment: experiment-counter;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--bg-body);
    border-radius: 6px;
    border-left: 4px solid var(--text-green-dark);
    position: relative;
}

.experiments li::before {
    content: counter(experiment-counter);
    position: absolute;
    left: -15px;
    top: 15px;
    background-color: var(--text-green-dark);
    color: var(--text-green-bright);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid var(--text-green-bright);
}

.experiments li strong {
    display: block;
    color: var(--text-green-bright);
    font-size: 1.1em;
    margin-bottom: 8px;
}

@media (max-width: 1024px) {
    .explanation {
        padding: 20px;
    }

    .experiments li::before {
        position: static;
        margin-bottom: 10px;
    }
}
/* Navigation - Navbar, links, and dropdown menus */

/* Navigation Bar */
.navbar {
    background-color: var(--bg-navbar);
    border-bottom: 2px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 900px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
}

.nav-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-brand:hover {
    color: var(--text-bright);
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(8, auto);
    grid-auto-flow: column;
    gap: 12px;
    column-gap: 16px;
    margin-left: auto;
}

@media (max-width: 900px) {
    .nav-links {
        grid-template-columns: repeat(4, auto);
        grid-template-rows: repeat(2, auto);
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 500px) {
    .nav-links {
        grid-template-columns: repeat(3, auto);
        grid-template-rows: repeat(3, auto);
    }
}

@media (max-width: 300px) {
    .nav-links {
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(4, auto);
    }
}

.nav-link-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.2s;
    font-size: 0.85em;
    display: block;
    line-height: 1.3;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--text-bright);
}

.nav-link.active {
    color: var(--text-green-bright);
    font-weight: 600;
}

/* Dropdown Menu */
.nav-dropdown-toggle {
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.nav-dropdown-toggle:hover {
    color: var(--text-primary);
    background-color: var(--bg-panel);
}

.nav-dropdown-toggle.active {
    color: var(--text-green-bright);
    background-color: var(--bg-panel);
}

.nav-dropdown-toggle::after {
    content: "▼";
    font-size: 0.7em;
    transition: transform 0.2s;
}

.nav-dropdown-toggle.active::after {
    transform: rotate(180deg);
}

/* Toys Panel */
.nav-toys-panel-container {
    background-color: var(--bg-navbar);
    border-bottom: 2px solid var(--border-primary);
    display: none;
}

.nav-toys-panel-container.open {
    display: block;
}

.nav-toys-panel {
    padding: 0;
}

.nav-toys-panel-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px;
}

.nav-toys-panel-header {
    margin-bottom: 12px;
}

.nav-back-button {
    color: var(--text-muted);
    font-size: 0.9em;
    cursor: pointer;
    margin-bottom: 8px;
    display: inline-block;
    transition: color 0.2s;
}

.nav-back-button:hover {
    color: var(--text-secondary);
}

.nav-toys-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.nav-toys-panel-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-disabled);
}

.nav-toys-panel-subtitle {
    font-size: 0.95em;
    color: var(--text-disabled);
    margin-left: 8px;
}

.nav-toys-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    column-gap: 16px;
}

.nav-toys-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-dropdown-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.2s;
    font-size: 0.85em;
    display: block;
    line-height: 1.3;
}

.nav-dropdown-item:hover {
    color: var(--text-bright);
}

.nav-dropdown-item.active {
    color: var(--text-green-bright);
    font-weight: 600;
}

.nav-dropdown-item.disabled {
    color: var(--text-disabled);
    cursor: not-allowed;
}

.nav-dropdown-item.disabled:hover {
    color: var(--text-disabled);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-toys-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
/* Buttons - Standard button styles and variants */

button {
    padding: 10px 20px;
    background-color: var(--bg-panel);
    color: var(--text-green-bright);
    border: 2px solid var(--text-green-dark);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: all 0.2s;
}

button:hover {
    background-color: var(--text-green-muted);
    color: var(--bg-body);
    border-color: var(--text-green-bright);
}

button:active {
    background-color: var(--text-green-bright);
    color: var(--bg-body);
}

button:disabled {
    background-color: var(--interactive-disabled);
    color: var(--text-disabled);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Gate button variant (for quantum computing toys) */
.gate-btn {
    padding: 8px 16px;
    background-color: var(--border-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin: 4px;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}

.gate-btn:hover {
    background-color: var(--interactive-disabled);
    border-color: var(--text-secondary);
}

.gate-btn:active {
    background-color: var(--interactive-active);
}

/* Payment button variants */
.payment-button {
    background: linear-gradient(135deg, var(--gradient-button-start) 0%, var(--gradient-button-end) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.payment-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(136, 136, 136, 0.4);
}

.payment-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-button-secondary {
    background: var(--border-secondary);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}

.payment-button-secondary:hover {
    background: #4b5563;
}
/* Forms - Input elements and form controls */

/* Checkboxes */
input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--text-muted);
}

/* Range sliders */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--slider-track);
    border-radius: 3px;
    outline: none;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--slider-thumb);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--slider-thumb-hover);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--slider-thumb);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--slider-thumb-hover);
}

input[type="range"]::-moz-range-track {
    background: var(--slider-track);
    border-radius: 3px;
    height: 6px;
}

/* Email inputs */
.payment-email-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-secondary);
    border-radius: 6px;
    font-size: 1em;
    background: var(--bg-section);
    color: #f9fafb;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.payment-email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--text-muted);
}
/* Panels - Control groups, info panels, and sections */

/* Control groups - for sliders and inputs */
.control-group {
    background-color: var(--bg-panel);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--border-primary);
}

.control-group h3 {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 1em;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

.control-group input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

.control-group span {
    color: var(--text-green-bright);
    font-weight: bold;
}

/* Info panels - for displaying information */
.info-panel {
    background-color: var(--bg-panel);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--border-primary);
}

.info-panel h3 {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 1em;
}

.info-panel ul {
    list-style-position: inside;
    color: var(--text-tertiary);
    font-size: 0.9em;
}

.info-panel li {
    margin-bottom: 5px;
}

.info-panel p {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.6;
}

/* View sections - for multi-panel visualizations */
.view-section {
    background-color: var(--bg-explanation);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    padding: 20px;
}

.view-section h3 {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.view-section canvas {
    width: 100%;
    background-color: var(--bg-canvas);
    border-radius: 4px;
    display: block;
}

/* Event details */
#event-details {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-family: "Courier New", monospace;
}
/* Premium - Locked feature styling and badges */

.premium-control {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed !important;
    position: relative;
}

.premium-control-group {
    opacity: 0.5;
    position: relative;
    background: rgba(128, 128, 128, 0.1);
    padding: 12px;
    border-radius: 4px;
    border: 1px solid rgba(128, 128, 128, 0.2);
}

.premium-control-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
}

.premium-control-group span {
    color: var(--text-muted);
    font-weight: 600;
}

.premium-control.unlocked,
.premium-control-group.unlocked {
    opacity: 1;
    pointer-events: auto;
    cursor: auto;
    background: transparent;
    border-color: transparent;
}

.premium-badge {
    display: inline-block;
    background: var(--bg-body);
    color: var(--accent-premium);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: auto;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.premium-badge:hover {
    background: #2a2a2a;
    color: var(--accent-premium-hover);
}

.unlocked .premium-badge {
    display: none;
}
/* Modals - Payment modal and overlay */

.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.payment-modal {
    background: var(--bg-body);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: #e5e7eb;
}

.payment-modal h2 {
    margin: 0 0 24px 0;
    font-size: 1.5em;
    color: #f9fafb;
    text-align: center;
}

.payment-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.payment-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f9fafb;
}

/* Pricing options */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-option {
    background: var(--bg-section);
    border: 2px solid var(--text-green-dark);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
}

.payment-option:hover {
    border-color: var(--text-green-bright);
    background: var(--bg-panel);
}

.payment-option h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: var(--text-secondary);
}

.payment-price {
    font-size: 2em;
    font-weight: 700;
    margin: 8px 0;
    color: var(--text-green-bright);
}

.payment-description {
    font-size: 0.85em;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Email form */
.payment-email-form h3 {
    margin: 0 0 8px 0;
    font-size: 1.25em;
    color: #f9fafb;
}

.payment-email-form p {
    margin: 0 0 16px 0;
    color: var(--text-gray);
    font-size: 0.9em;
}

.payment-form-buttons {
    display: flex;
    gap: 12px;
}

.payment-form-buttons button {
    flex: 1;
}

/* Footer */
.payment-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-secondary);
    text-align: center;
    font-size: 0.9em;
    color: var(--text-gray);
}

.payment-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
}

.payment-footer a:hover {
    text-decoration: underline;
}

.payment-security {
    margin-top: 12px;
    font-size: 0.85em;
    color: var(--text-subtle);
}

/* Responsive */
@media (max-width: 600px) {
    .payment-options {
        grid-template-columns: 1fr;
    }

    .payment-modal {
        padding: 24px 20px;
    }

    .payment-form-buttons {
        flex-direction: column;
    }

    .payment-price {
        font-size: 2em;
    }
}
/* Causality sandbox styles */

#causality-canvas {
    width: 100%;
    height: 600px;
    display: block;
    margin-bottom: 15px;
    cursor: crosshair;
}

.controls-inline {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.controls-inline button {
    flex: 1;
    min-width: 140px;
    margin: 0;
}

.event-info-panel {
    background-color: #0f0f0f;
    border: 2px solid #ccc;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.velocity-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #1a1a1a;
    border-radius: 4px;
    margin-top: 10px;
}

.status-indicator {
    font-size: 1.2em;
    font-weight: bold;
}

.status-indicator.valid {
    color: #00ff88;
}

.status-indicator.invalid {
    color: #ff6666;
}

.causal-info {
    background-color: #0f0f0f !important;
}

#causal-analysis {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.8;
}


@media (max-width: 1024px) {
    #causality-canvas {
        height: 400px;
    }

    .controls-inline {
        flex-direction: column;
    }

    .controls-inline button {
        width: 100%;
    }
}
/* Hardy-Weinberg specific styles - all common styling now in toy.css */

/* This file is intentionally minimal - toy.css provides all the base styling */
/* Length contraction styles */

.visualization-container h3 {
    margin-bottom: 10px;
    margin-top: 20px;
}

.visualization-container h3:first-child {
    margin-top: 0;
}

#rest-canvas, #moving-canvas {
    width: 100%;
    height: 180px;
    display: block;
    margin-bottom: 15px;
}

.measurements-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.measurement {
    background-color: #0f0f0f;
    border: 2px solid #333;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.measurement strong {
    display: block;
    color: #888;
    font-size: 0.85em;
    margin-bottom: 8px;
}

.measurement span {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.formula-box {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1em;
    font-family: 'Courier New', monospace;
}

button {
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0;
}

@media (max-width: 1024px) {
    #rest-canvas, #moving-canvas {
        height: 150px;
    }

    .measurements-panel {
        grid-template-columns: 1fr;
    }
}
/* Muon decay specific styles */

#muon-canvas {
    width: 100%;
    height: 500px;
    background-color: #0a0a0a;
    border: 2px solid #333;
    border-radius: 8px;
    display: block;
    margin-bottom: 20px;
}

.statistics-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background-color: #0f0f0f;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.stat-box.classical {
    border-top: 4px solid #ff6666;
}

.stat-box.relativistic {
    border-top: 4px solid #00ff88;
}

.stat-box.difference {
    border-top: 4px solid #6c9;
}

.stat-box h4 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.big-number {
    font-size: 3em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
}

.stat-box.classical .big-number {
    color: #ff6666;
}

.stat-box.relativistic .big-number {
    color: #00ff88;
}

.big-number.highlight {
    color: #6c9;
}

.stat-label {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.survival-rate {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
}

.stat-box.classical .survival-rate span {
    color: #ff6666;
}

.stat-box.relativistic .survival-rate span {
    color: #00ff88;
}

.explanation-text {
    color: #888;
    font-size: 0.9em;
    margin-top: 10px;
    font-style: italic;
}

.constant-display {
    background-color: #1a1a1a;
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.constant-display span {
    color: #6c9;
}

.calculation-text {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.8;
}

button {
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0;
}

@media (max-width: 1024px) {
    #muon-canvas {
        height: 350px;
    }

    .statistics-panel {
        grid-template-columns: 1fr;
    }

    .big-number {
        font-size: 2em;
    }
}
/* Rindler coordinates styles */

#rindler-canvas {
    width: 100%;
    height: 600px;
    display: block;
    margin-bottom: 20px;
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background-color: #0f0f0f;
    border: 2px solid #333;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.stat-label {
    display: block;
    color: #888;
    font-size: 0.85em;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.formula-display {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.8;
}

button {
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0;
}

@media (max-width: 1024px) {
    #rindler-canvas {
        height: 400px;
    }

    .stats-panel {
        grid-template-columns: 1fr;
    }
}
/* Train-specific styles */

.visualization-container {
    gap: 30px;
    margin-bottom: 30px;
}

.frame-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #1a1a1a;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.timeline-container {
    margin-top: 40px;
    padding: 20px;
    background-color: #0f0f0f;
    border: 2px solid #333;
    border-radius: 8px;
}

.timeline-container h3 {
    margin-bottom: 15px;
}

#spacetime-canvas {
    width: 100%;
    height: 400px;
    background-color: #0a0a0a;
    border-radius: 4px;
}

#timing-details {
    line-height: 1.8;
}

.view-section canvas {
    height: 200px;
}

@media (max-width: 1024px) {
    .view-section canvas {
        height: 150px;
    }

    #spacetime-canvas {
        height: 300px;
    }
}
/* Twin Paradox specific styles */

.visualization-container {
    margin-bottom: 30px;
}

#worldline-canvas {
    width: 100%;
    height: 600px;
    display: block;
    margin-bottom: 20px;
}

.twin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.twin-stat {
    background-color: #0f0f0f;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
}

.twin-stat.stay-home {
    border-left: 4px solid #ff6666;
}

.twin-stat.traveling {
    border-left: 4px solid #ccc;
}

.twin-stat h4 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.stat-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.stat-label {
    color: #999;
    font-size: 0.9em;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.stat-unit {
    color: #999;
    font-size: 0.9em;
}

.stat-detail {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

.age-difference {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.age-difference strong {
    color: #e0e0e0;
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
}

.age-difference .highlight {
    color: #6c9;
    font-size: 2.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    display: block;
    margin: 10px 0;
}

.age-explanation {
    font-size: 1.1em;
    margin-top: 10px;
}

.journey-details {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

#journey-info {
    line-height: 1.8;
}

button {
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0;
}

@media (max-width: 1024px) {
    #worldline-canvas {
        height: 400px;
    }

    .twin-stats {
        grid-template-columns: 1fr;
    }

    .age-difference {
        grid-column: 1;
    }
}
/* Velocity Addition specific styles */

#velocity-canvas {
    width: 100%;
    height: 400px;
    display: block;
    margin-bottom: 20px;
}

.result-panel {
    background-color: #0f0f0f;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.velocity-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.velocity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.velocity-label {
    color: #888;
    font-size: 0.9em;
}

.velocity-value {
    font-size: 2.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.velocity-item.result .velocity-value {
    color: #00ff88;
    font-size: 3em;
}

.velocity-operator {
    font-size: 2em;
    color: #666;
    font-weight: bold;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.comparison-item {
    text-align: center;
}

.comparison-item strong {
    display: block;
    color: #888;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.comparison-item span {
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #ccc;
}

.comparison-item.classical span {
    color: #ff6666;
}

.error-badge {
    display: inline-block;
    background-color: #ff6666;
    color: #0a0a0a;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.6em !important;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
}

.rapidity-panel {
    background-color: #0f0f0f;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 25px;
}

.rapidity-panel h3 {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.rapidity-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.rapidity-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rapidity-item .label {
    color: #888;
    font-size: 0.9em;
}

.rapidity-item .value {
    font-size: 1.3em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #6c9;
}

.rapidity-item .operator,
.rapidity-display > .operator {
    font-size: 1.5em;
    color: #666;
    font-weight: bold;
}

.rapidity-note {
    font-size: 0.85em;
    font-style: italic;
    text-align: center;
}

.formula-box {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 1.2em;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
}

.frac {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
    margin: 0 5px;
}

.frac .num {
    border-bottom: 2px solid #ccc;
    padding: 0 8px 2px 8px;
}

.frac .den {
    padding: 2px 8px 0 8px;
}

button {
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0;
}

@media (max-width: 1024px) {
    #velocity-canvas {
        height: 300px;
    }

    .velocity-value {
        font-size: 1.8em;
    }

    .velocity-item.result .velocity-value {
        font-size: 2.2em;
    }

    .comparison {
        grid-template-columns: 1fr;
    }
}
/*
 * Theory.toys CSS Manifest
 *
 * This manifest file imports all stylesheets in the correct order using Sprockets directives.
 * CSS precedence follows the standard cascading order - styles declared later will override
 * earlier ones, depending on specificity.
 *
 * Structure:
 * 1. Base - Foundational styles (reset, colors, typography)
 * 2. Layout - Page structure and grids
 * 3. Components - Reusable UI components
 * 4. Toys - Toy-specific overrides
 *



 *




 *






 *


 */
