
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
}

header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.controls-panel {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.animation-panel {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.control-group {
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fdbb2d;
}

h3 {
    font-size: 1.2rem;
    margin: 15px 0 10px;
    color: #fdbb2d;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
}

textarea {
    height: 80px;
    resize: vertical;
    font-family: monospace;
}

button {
    background: #fdbb2d;
    color: #1a2a6c;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background: #ffcc44;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.parent-shape {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed white;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: clip-path 0.5s ease;
}

.filling-block {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
}

.presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.preset-btn {
    font-size: 0.9rem;
    padding: 8px;
}

.code-example {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 0.9rem;
    overflow: auto;
    max-height: 200px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-value {
    min-width: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
}

.parent-preview {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-btn {
    width: auto;
    padding: 8px 15px;
    font-size: 0.9rem;
}
