body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 800px;
}

h1 {
    margin-top: 0;
    color: #bb86fc;
}

.back-link {
    display: inline-block;
    color: #03dac6;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 0.9rem;
    align-self: flex-start;
}

.back-link:hover {
    text-decoration: underline;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="range"] {
    background: #333;
    border-radius: 5px;
    height: 6px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #bb86fc;
    border-radius: 50%;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 10px;
}

button {
    background-color: #bb86fc;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover:not(:disabled) {
    background-color: #9965f4;
}

button:disabled {
    background-color: #555;
    color: #888;
    cursor: not-allowed;
}

canvas {
    background-color: #000;
    border: 2px solid #333;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    max-width: 100%;
}

.status {
    margin-top: 15px;
    font-style: italic;
    color: #aaa;
}
