html{
    scroll-behavior: smooth;
}
body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(to right,rgb(175, 77, 205),rgb(237, 89, 89));
}
.container{
    text-align: center;
    align-content: center;
    color: white;
    height: 90vh;
    max-width: 1200px;
}
h1{
    color: white;
    font-size: 3rem;
    font-weight: bold;
}
.array-container{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 60vh;
    width: 78vw;
    margin: 0 auto;
    background-color: transparent;
    border: 1px solid white;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
}
.array-bar{     
    background-color: white;    /* from javascript*/
    margin: 0 2px;
    flex: 1;
    width: 20px;
    border-radius: 5px;
    transition: height 0.3s ease-in;
}
button:not(#stopBtn){
    padding: 10px 20px;
    margin: 16px 10px;
    border: none;
    outline: none;
    background-color:lightcyan;
    border-radius: 18px;
    border: 1px solid white;
    cursor: pointer;
    font-size: 20px;
    transition: 0.35s;/* background-color */
}
#stopBtn{
    background-color:rgb(0, 207, 110);
    padding: 10px 28px;
    margin: 10px 18px;
    border: none;
    color: white;
    border-radius: 18px;
    border: 1px solid rgb(0, 169, 191);
    cursor: pointer;
    font-size: 20px;
    transition: 0.35s;/* background-color */
    outline: none;
}
button:hover{
    background-color: aquamarine;
    font-style: bold;
    transform: scale(1.08);
}
/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    .array-container {
        margin-top: 20px!important;
        height: 40vh;
        width: 90vw;
    }
    button {
        font-size: 10px!important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.6rem;
    }
    .array-container {
        margin-top: 20px!important;
        height: 35vh;
        width: 90vw;
    }
    button {
        font-size: 10px!important;
    }
}