body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #111827; /* dark gray */
    font-family: 'Inter', sans-serif;
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
#canvas-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 600px) {
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    main {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        overflow: hidden;
    }
    #canvas-container {
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - 40vh) !important;
        max-height: calc(100vh - 40vh) !important;
        min-height: 200px;
        min-width: 250px;
        margin: 0 auto 0 auto;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
    }
    canvas {
        width: 100% !important;
        height: 100% !important;
        display: block;
        margin: 0 auto;
        background: transparent;
    }
    .controls {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100vw;
        max-height: 40vh;
        overflow-y: auto;
        background: #1f2937;
        z-index: 10;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0.5rem 0.75rem 0.5rem;
        box-sizing: border-box;
        align-items: center;
        border-radius: 1rem 1rem 0 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }
    .slider-container {
        width: 100%;
        justify-content: space-between;
    }
    .slider {
        width: 80px;
    }
    .btn {
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1rem;
    }
}
#canvas-container {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}
.controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background-color: #1f2937; /* gray-800 */
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: white;
}
.btn-primary {
    background-color: #4f46e5; /* indigo-600 */
}
.btn-primary:hover {
    background-color: #4338ca; /* indigo-700 */
}
.btn-secondary {
    background-color: #4b5563; /* gray-600 */
}
.btn-secondary:hover {
    background-color: #374151; /* gray-700 */
}
.slider-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db; /* gray-300 */
}
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 8px;
    background: #4b5563; /* gray-600 */
    outline: none;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity .2s;
}
.slider:hover {
    opacity: 1;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #818cf8; /* indigo-400 */
    cursor: pointer;
    border-radius: 50%;
}
.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #818cf8; /* indigo-400 */
    cursor: pointer;
    border-radius: 50%;
}
