body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background-color: #eef;
    padding: 20px;
}

h1 {
    color: #333;
}

.controls {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: inline-block;
    text-align: left;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

input[type="number"] {
    width: 200px;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#start-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 10px;
    transition: background-color 0.3s;
}

#start-button:hover:not(:disabled) {
    background-color: #0056b3;
}

#start-button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.output {
    margin-bottom: 30px;
}

#countdown {
    font-size: 1.2em;
    color: #f00;
    margin-bottom: 10px;
    min-height: 20px; /* Для уникнення стрибків */
}

#current-number {
    font-size: 5em;
    font-weight: 900;
    color: #333;
    min-height: 100px; /* Для уникнення стрибків */
    display: flex;
    justify-content: center;
    align-items: center;
}

#results {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: inline-block;
    text-align: left;
}

#results h2 {
    color: #28a745;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
}

#numbers-list {
    max-width: 500px;
    word-wrap: break-word;
}