body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

.search-container {
    width: 80%;
    max-width: 900px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

input[type="number"],
input[type="range"] {
    padding: 8px;
    font-size: 16px;
}

#searchInput{
    width: 200px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

.visual-container {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

.result-message {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.search-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.array-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.array-container div {
    width: 40px;
    height: 40px;
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    color: #333;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
}

.result-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    width: 150px;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: #f0f0f0;
    border: 2px solid #444;
    border-radius: 8px;
}
