:root {
    --pico-font-size: 100%;
    /* Original: 100% */
    --pico-form-element-spacing-vertical: 0.8rem;
    /* Original: 1rem */
    --pico-border-radius: 0.3rem;
    /* Original: 0.25rem */
}

.katex { font-size: 1.3em; }

h1,
h2,
h3,
h4,
h5,
h6 {
    --pico-font-weight: 650;
    /* Original: 700 */
}


body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: clip;
}

.chart, .visualizer, svg-chart {
    height: 100%;
    min-height: 100%;
    flex-grow: 1;
    flex-basis: 0px;
}
svg-chart {
    overflow: hidden;
}
.chart, .visualizer {
    margin: 0;
    display: flex;
}

.sidebar {
    width: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.top {
    flex: 1; /* This will take available space */
}

button {
    margin: 10px;
}

.generator-math {
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.katex{ 
    
}

.sidebar-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: var(--pico-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--pico-primary-hover);
}

.sidebar.collapsed {
    width: 0px;
    transition: width 0.2s ease;
}

.sidebar.collapsed .top,
.sidebar.collapsed .bottom {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.sidebar {
    transition: width 0.2s ease;
}

.sidebar .top,
.sidebar .bottom {
    transition: opacity 0.2s ease;
}