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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #111;
    color: #eee;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 1rem;
    border-bottom: 2px solid #00d4ff;
}

header h1 {
    font-size: 2.5rem;
    color: #00d4ff;
    text-shadow: 0 0 10px #00d4ff, 0 0 20px #00aaff;
}

header p {
    font-size: 1.2rem;
    color: #ccc;
}

main {
    width: 90%;
    max-width: 1200px;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#canvas-container {
    width: 100%;
    background: radial-gradient(circle, #1a1a1a, #000);
    border: 2px solid #00d4ff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    overflow: hidden;
}

canvas {
    display: block;
    margin: auto;
    border: none;
}

#controls {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.5rem;
    border-top: 2px solid #00d4ff;
}

.control {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #222;
    padding: 0.8rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    border: 1px solid #333;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.control:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.control label {
    color: #eee;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.control input[type="range"] {
    width: 100%;
    accent-color: #00d4ff;
    background: #444;
    border-radius: 5px;
    outline: none;
    height: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.control input[type="range"]:hover::-webkit-slider-thumb {
    background: #00aaff;
}

.control input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.control input[type="range"]:hover::-moz-range-thumb {
    background: #00aaff;
}

.control select {
    width: 100%;
    padding: 0.5rem;
    background: #333;
    border-radius: 5px;
    border: 1px solid #444;
    color: #eee;
    outline: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.control select:focus {
    background: #444;
    border-color: #00d4ff;
}

.control span {
    font-weight: bold;
    color: #00d4ff;
}

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

footer p {
    margin: 0;
}

footer p a {
    color: #00aaff;
    text-decoration: none;
}

footer p a:hover {
    text-decoration: underline;
}

/* Accessibility Improvements */
.control label {
    visibility: visible;
}

.control input[type="range"],
.control select {
    position: relative;
}

.control input[type="range"]::-webkit-slider-runnable-track,
.control select {
    border: 1px solid #444;
    border-radius: 5px;
}

.control input[type="range"]:focus,
.control select:focus {
    box-shadow: 0 0 5px #00d4ff;
    outline: none;
}

.control input[type="range"]:focus::-webkit-slider-runnable-track,
.control select:focus {
    border-color: #00d4ff;
}