
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    height:100vh;
    background-repeat: no-repeat;
    background-image: url("images/searching.avif");
    background-position: center;
    background-size: cover;
    color: #ecf0f1;
    font-family: 'Arial', sans-serif;
    text-align: center;
}

.explanation-container {
    margin: 20px auto;
    width: 80%;
    padding: 10px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #250faf81;
    border: 2px solid white;
    border-radius: 6px;
    box-shadow: 0 0 20px #04cafc;
    outline: none;
    font-size: 15px;
    color: #f2eeee;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
}

#backButton {
    position: absolute;
    top: 50px;
    left: 25px;
    background: transparent;
    border: 2px solid white;
    border-radius: 6px;
    box-shadow: 0 0 20px #fa0556;
    outline: none;
    font-size: 15px;
    color: #f2eeee;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    width: 180px;
    height: 40px;
    transition: 0.5s;
}

#backButton:hover {
    background-color: rgb(103, 103, 103);
}

h1 {
    margin-top: 60px;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.button {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px;
}

button {
    background: transparent;
    border: 2px solid white;
    border-radius: 6px;
    box-shadow: 0 0 20px #fa0556;
    outline: none;
    font-size: 15px;
    color: #f2eeee;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    width: 150px;
    height: 40px;
    transition: 0.5s;
}

button:hover {
    background-color: rgb(103, 103, 103);
}

.array-container {
    margin: 20px auto;
    width: 80%;
    padding: 10px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #250faf81;
    border: 2px solid white;
    border-radius: 6px;
    box-shadow: 0 0 20px #04cafc;
    outline: none;
    font-size: 15px;
    color: #f2eeee;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
}

.array-item {
    display: inline-block;
    width: 50px; 
    height: 50px; 
    margin: 2px;
    background-color: transparent;
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    border-radius: 4px;
    border: 1px solid white;
    box-shadow: 0 0 10px #3498db;
    transition: background-color 0.5s, box-shadow 0.5s;
}

.array-item.comparing {
    background-color: rgb(255, 0, 68);
    box-shadow: 0 0 20px red;
}

.array-item.inactive {
    background-color: grey;
    color: white;
    box-shadow: none;
}

.description-container {
    text-align: center;
    margin: 20px auto;
    padding: 20px; 
    width: 25%; 
    height: 75px;
    background-color: rgba(255, 0, 0, 0.2);
    color: #fff;
    border: 2px solid white;
    border-radius: 6px;
    box-shadow: 0 0 20px red;
    font-size: 18px;
    font-weight: 600;
    overflow: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 20px;
    color: #333;
    border: 1px solid #888;
    width: 30%; 
    border-radius: 4px;
    box-shadow: none; 
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

pre {
    text-align: left;
}

.solid-blue-button {
    background-color: rgb(1, 170, 255); 
    color: white;
    width: 100px; 
    height: 40px; 
    margin-top: 10px; 
    box-shadow: none; 
}

.input-box {
    width: 80%; 
    height: 30px;
    font-size: 16px; 
    margin-bottom: 10px;
}
