body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f8;
    color: #24292e;
    margin: 0;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
}

header {
    text-align: center;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.demo-section {
    margin-bottom: 3rem;
}

.demo-section h2 {
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.demo-section p {
    line-height: 1.6;
    color: #586069;
}

.controls {
    text-align: center;
    margin-bottom: 1rem;
}

button {
    background-color: #0366d6;
    color: white;
    border: 1px solid rgba(27, 31, 35, 0.15);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
}

button:hover {
    background-color: #005cc5;
}

/* Animation Styles */
#animation-container {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
}

.ball {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Table Styles */
#table-container {
    max-height: 400px;
    overflow: auto;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

th, td {
    border: 1px solid #dfe2e5;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
}

th {
    background-color: #f6f8fa;
    position: sticky;
    top: 0;
}

td[contenteditable="true"] {
    background-color: #fffbdd;
    cursor: cell;
}
