body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background: yellow;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 800px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

p {
    color: #34495e;
    margin-bottom: 20px;
}

.controls, .guess {
    margin: 20px 0;
}

label {

    margin: 10px 0;
    font-weight: bold;
    font-size: 20px;
}

input[type="number"] {
  width: 100px;
    height: 50px;
    padding: 12px 8px;
    font-size: 20px;
    text-align: center;
    border: 2px solid #3498db;
    border-radius: 6px;
    margin: 8px 5px;
    box-sizing: border-box;
}

.perm-input {
    width: 40px;
    margin: 0 5px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 10px 5px;
}

button:hover {
    background-color: #2980b9;
}

#comparison-result {
    margin: 20px 0;
    padding: 15px;
    background-color: #e8f4fd;
    border-radius: 8px;
    min-height: 24px;
}

#result {
    margin-top: 20px;
    font-weight: bold;
    min-height: 24px;
    font-size: 1.1em;
}
/* Стили для блока истории сравнений */
.history {
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#history-list {
    list-style-type: none;
    padding-left: 0;
    max-height: 286px; /* Ограничиваем высоту с прокруткой */
    overflow-y: auto;
}

#history-list li {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
    background-color: white;
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 0.9em;
    text-align: center;
}

.success {
    color: #2ecc71;
}

.error {
    color: #e74c3c;
}

