body {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

header {
    background-color: #ffffff; 
    color: rgb(0, 0, 0);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

h1 {
    margin: 0;
    font-size: 2.5em;
}

p {
    margin: 5px 0 0;
    font-size: 1.2em;
}

.controls {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; 
}

.controls div {
    margin: 10px;
}

label {
    font-weight: bold;
}

input[type="text"], input[type="number"], select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
    border-color: #007bff; 
}

button {
    padding: 10px 15px;
    background-color: #28a745; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #218838;
    transform: scale(1.05); 
}

#arrayContainer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap; 
}

.element {
    margin: 5px; 
    background-color: teal;
    color: white; 
    text-align: center; 
    padding: 10px; 
    border-radius: 5px; 
    transition: background-color 0.3s, transform 0.3s; 
}

.element:hover {
    transform: scale(1.1); 
}

.highlight {
    background-color: orange; 
}

#codeContainer, #explanationContainer {
    margin-top: 20px;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: left;
    display: inline-block;
    max-width: 600px;
    overflow-x: auto;
    white-space: pre; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

footer {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}
