/* General resets and global styles */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e; /* Dark background for cinematic effect */
    color: #eaeaea; /* Light text for contrast */
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 20px;
    text-align: center;
}

header {
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

header p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-top: 10px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

canvas {
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #111;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    max-width: 100%;
}

#controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    background: #292929;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.control {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #ffffff;
}

input[type="range"] {
    width: 100%;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: #555;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff007f;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-moz-range-track {
    height: 8px;
    background: #555;
    border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff007f;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

input[type="color"] {
    padding: 0;
    border: none;
    height: 30px;
    width: 40px;
    border-radius: 5px;
    cursor: pointer;
}

button {
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #444444;
    border: 2px solid #ff007f;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

button:hover {
    background-color: #ff007f;
    color: #1e1e1e;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.5);
}

footer {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
}

/* Accessibility enhancements */
input:focus,
button:focus {
    outline: 2px solid #ff007f;
    outline-offset: 2px;
}