body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #f7f7fa;
    color: #333;
}

#animationCanvas {
    display: block;
    width: 100%;
    height: 400px;
    background-color: white;
    margin: auto;
}

#animationCanvas.vertical {
    transform: rotate(90deg);
    width: calc(100vh - 100px);
    height: calc(100vh - 100px);
    margin: 0 auto;
}

.controls {
    padding: 20px;
    text-align: center;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.centered {
    justify-content: center;
}

.controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
}

.controls input[type="number"],
.controls select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.controls input[type="number"]:focus,
.controls select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.controls input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.animation-selector label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
}

.animation-selector select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.animation-selector select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.animation-selector button,
.actions button,
.queue button,
.controls button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    background: #3b82f6;
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.animation-selector button:hover,
.actions button:hover,
.queue button:hover:not(:disabled),
.controls button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.animation-selector button:active,
.actions button:active,
.queue button:active:not(:disabled),
.controls button:active {
    transform: translateY(0);
}

.queue button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.queue ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.queue li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #1a1a1a;
    transition: background 0.2s;
}

.queue li:hover {
    background: #e5e7eb;
}

.actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

#shareableUrl {
    width: calc(100% - 450px);
    margin-top: 16px;
    padding: 10px;
    font-size: 14px;
    font-family: 'Inter', Arial, sans-serif;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    color: #1a1a1a;
    outline: none;
}

.instructions {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instructions h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.instructions p {
    font-size: 16px;
    color: #4a4a4a;
    margin-bottom: 16px;
}

.instructions ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}

.instructions li {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 8px;
}

.instructions h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.image-gallery {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.image-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}