:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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


/* Chapter Page Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    text-align: center;
    z-index: 1001;
    box-shadow: none;
    height: 4rem;
}


 label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: monospace;
    box-sizing: border-box;
}

textarea {
    height: 60px;
    resize: vertical;
}

button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 1rem;
    transition: none;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

button:hover {
    background-color: #2980b9;
}

.canvas-container {
    position: fixed;
    top: 4rem;
    left: 340px;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}