/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #f8f8f8, #e0e0e0);
    color: #333;
    text-align: center;
}

header {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

header p {
    margin: 10px 0 0;
    font-size: 1.2rem;
    opacity: 0.8;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
}

.control {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

input[type="range"] {
    width: 100%;
    transition: background 0.2s ease;
}

input[type="range"], input[type="color"] {
    cursor: pointer;
}

input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

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

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

input[type="range"]:focus::-webkit-slider-thumb {
    background-color: #1e5fb0;
}

input[type="range"]:hover::-webkit-slider-thumb {
    background-color: #1e5fb0;
}

input[type="range"]:active::-webkit-slider-thumb {
    background-color: #123a6c;
}

button {
    background: #2575fc;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background: #1e5fb0;
    transform: scale(1.05);
}

button:active {
    background: #123a6c;
}

#canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 820px;
    transition: all 0.3s ease;
}

canvas {
    border: 2px solid #2575fc;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

footer {
    margin-top: 20px;
    background: #f1f1f1;
    padding: 10px;
    border-top: 1px solid #ccc;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
