body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 5px solid #007bff;
}

header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
}

header p {
    margin: 0;
    font-size: 1.1rem;
}

nav#toc {
    background-color: #e2e2e2;
    padding: 1rem 2rem;
    margin: 1rem 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav#toc h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

nav#toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2; /* Basic multi-column layout */
    -webkit-columns: 2;
    -moz-columns: 2;
}

nav#toc li {
    margin-bottom: 0.5rem;
}

nav#toc a {
    text-decoration: none;
    color: #0056b3;
    transition: color 0.2s ease;
}

nav#toc a:hover,
nav#toc a:focus {
    color: #003d80;
    text-decoration: underline;
}


main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

article section {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    scroll-margin-top: 20px; /* Offset for fixed header if any */
}

article section#prompting-tips h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0056b3; /* Slightly darker blue */
}

article h2 {
    color: #007bff;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

article h3 {
    color: #555;
    margin-top: 1.5rem;
}

a {
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

code {
    font-family: Consolas, "Courier New", monospace;
    background-color: #eef;
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background-color: #2d2d2d; /* Dark background for code blocks */
    color: #f0f0f0; /* Light text */
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Style for highlight.js */
pre code.hljs {
    display: block;
    overflow-x: auto;
    padding: 1em;
    background: #2d2d2d; /* Match pre background */
    color: #cccccc; /* Default text color */
}

.prompt-example {
    border-left: 4px solid;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.prompt-example p:first-child {
    margin-top: 0;
}
.prompt-example p:last-child {
    margin-bottom: 0;
}

.prompt-example.good {
    border-left-color: #28a745; /* Green for good examples */
}
.prompt-example.good p strong {
    color: #218838;
}


.prompt-example.bad {
    border-left-color: #dc3545; /* Red for bad examples */
}
.prompt-example.bad p strong {
    color: #c82333;
}

.prompt-example pre {
    margin-top: 0.5rem;
     background-color: #e9ecef; /* Lighter background for nested code */
     color: #333; /* Darker text */
     font-size: 0.85em;
}

.prompt-example pre code {
    background-color: transparent; /* Inherit pre background */
    padding: 0;
}

ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
}

li ul {
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    font-size: 0.9rem;
    color: #777;
}

.drum-machine {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-top: 1rem;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.drum-machine .controls {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.drum-machine .controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drum-machine .controls input[type="range"] {
    width: 150px; /* Adjust as needed */
}

.sequencer-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Space between tracks */
}

.track {
    display: flex;
    align-items: center;
    gap: 1rem; /* Space between label and steps */
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.track-label {
    font-weight: bold;
    font-size: 0.9em;
    width: 50px; /* Fixed width for alignment */
    text-align: right;
    color: #555;
}

.steps {
    display: flex;
    gap: 4px; /* Space between steps */
    flex-grow: 1;
}

.step {
    width: 25px; /* Example size */
    height: 25px;
    border: 1px solid #ccc;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.step:hover {
    background-color: #d0d0d0;
}

.step.active {
    background-color: #007bff;
    border-color: #0056b3;
}
.step.playing { /* Optional: style for currently playing step */
    box-shadow: inset 0 0 0 2px yellow;
}

.drum-machine .status {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    nav#toc ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }
    main {
        padding: 0 1rem;
    }
     article section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
     nav#toc {
        margin: 1rem;
        padding: 1rem;
    }
    .prompt-example {
        padding: 1rem;
    }
}