* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f8f8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    max-width: 400px;
    width: 90%;
    text-align: center;
}

h1 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #333;
}

input[type="number"] {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 200px;
    margin-right: 10px;
    text-align: center;
    background: white;
}

input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
}

button {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#results {
    margin-top: 40px;
    text-align: left;
}

.result-item {
    margin-bottom: 8px;
    font-size: 16px;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
    font-family: 'Courier New', monospace;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
