* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fa;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 350px;
    max-height: 90vh; /* Set a max height for the container */
    overflow: hidden; /* Hide overflow if necessary */
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.input-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

input {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

button {
    background-color: #3498db;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

button:hover {
    background-color: #2980b9;
}

.result {
    flex-grow: 1; /* Allow the result section to grow */
    overflow-y: auto; /* Enable vertical scrolling */
    margin-top: 10px;
    padding-right: 10px;
    max-height: 50vh; /* Set a max height for scrolling area */
}

.result h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.result ul {
    list-style-type: none;
    padding: 0;
}

.result li {
    background-color: #ecf0f1;
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
}
