body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

.function-block {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.function-block:last-child {
    border-bottom: none;
}

h2 {
    color: #333;
    margin-bottom: 15px;
}

.description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.code {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.test-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

input, select, textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    flex: 1;
    min-width: 150px;
}

textarea {
    width: 100%;
    font-family: 'Courier New', monospace;
    resize: vertical;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #45a049;
}

.result {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
    min-height: 20px;
    font-weight: bold;
    color: #333;
}