/* Основные стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: #0f0c29;
    background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    animation: glow 2s infinite alternate;
}

/* Анимация неонового свечения */
@keyframes glow {
    from { text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff; }
    to { text-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff, 0 0 40px #ff00ff; }
}

/* Панель инструментов */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.1);
}

.tool {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="color"] {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}

input[type="color"]:hover {
    transform: scale(1.1);
}

input[type="range"] {
    width: 100px;
    cursor: pointer;
}

button {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 0, 255, 0.2);
    color: white;
    border: 1px solid #ff00ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

button:hover {
    background: rgba(255, 0, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Холст */
canvas {
    display: block;
    margin: 0 auto;
    background: #111;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    cursor: crosshair;
    touch-action: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
    }
    canvas {
        width: 100% !important;
        height: auto !important;
    }
}