* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    overflow: hidden;
    height: 100vh;
}

.container {
    height: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    margin: 0;
}

h1 {
    margin-bottom: 0.75rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

input, button {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.digits-container {
    position: fixed;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
    overflow: hidden;
    width: 1200px;
    max-width: 95vw;
}

.virtual-scroll {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 1rem;
}

.digit-row {
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
}

.digit-position {
    color: #666;
    min-width: 200px;
    text-align: right;
    font-family: monospace;
    font-size: 0.9rem;
    padding-right: 1rem;
}

.digits {
    font-family: monospace;
    letter-spacing: 0.05em;
    flex: 1;
    min-width: 600px;
    font-size: 1rem;
}

.copy-button {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    background: #eee;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-button:hover {
    background: #ddd;
}

.position-info {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.scrollbar, .scrollbar-thumb {
    display: none;
}

.title-container {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.subtitle {
    color: #666;
    font-size: 1rem;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    text-align: center;
    background: white;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
    z-index: 100;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
} 