@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}

body {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    /* background-image: url(../LL/img/lli.jpg); */
    background-image: url(../assets/sorting.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

header {
    height: 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: -20px;
}

.heading {
    font-style: italic;
    margin-top: 40px;
    font-size: xx-large;
    color: rgb(223, 101, 20);
}

.heading-button {
    width: 120%;
    margin-top: -55px;
    background-color: black;
    padding: 40px 10px;
    /* color: azure; */
}

.container {
    height: 620px;
    width: 1000px;
    /* background-color: white; */
    /* box-shadow: 10px 12px 18px rgb(128, 128, 128); */
    /* border: 2px solid white; */
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-top: -25px;
}

.container-header {
    height: 90px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.container-header input {
    height: 50px;
    width: 400px;
    font-size: 25px;
    border-radius: 10px;
    padding-left: 20px;
    padding-right: 5px;
}

.push,
.pop,
.reset {
    height: 50px;
    width: 140px;
    font-size: 25px;
    font-weight: bold;
    background-color: rgb(9, 110, 125);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.box {
    height: 50px;
    width: 140px;
    font-size: 25px;
    font-weight: bold;
    background-color: burlywood;
    color: rgb(0, 0, 0);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    cursor: auto;
}

.disable-button {
    background-color: rgb(98, 79, 34);
}

.container-header button:active {
    transform: scale(0.95);
}

.container-body {
    width: 1000px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.stack {
    width: 500px;
    height: 470px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-width: 0 3px 0 0;
    /* border-color: rgb(255, 85, 0); */
    border-style: solid;
}

.main-stack-bucket {
    height: 450px;
    width: 200px;
    border-width: 0 4px 4px 4px;
    border-color: rgb(206, 201, 201);
    border-style: solid;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: end;
    align-items: center;
    flex-direction: column-reverse;
    gap: 5px;
    padding-bottom: 5px;
}

.ele {
    height: 80px;
    width: 170px;
    background-color: green;
    color: white;
    border: 4px black solid;
    border-radius: 10px;
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ele-add {
    animation: pushAnimation 0.3s infinite linear;
}

.ele-remove {
    animation: popAnimation 0.3s infinite linear;
}

@keyframes pushAnimation {
    0% {
        background-color: green;
    }

    100% {
        background-color: rgb(34, 80, 177);
    }
}

@keyframes popAnimation {
    0% {
        background-color: green;
    }

    100% {
        background-color: rgb(255, 15, 59);
    }
}

.info {
    height: 470px;
    width: 500px;
    padding-left: 20px;
    /* font-size: larger; */
    color: rgb(158, 165, 165);
}

[class^="sec"] {
    display: flex;
    width: 350px;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    justify-content: space-between;
}

.massage-box {
    height: 180px;
    width: 400px;
    margin-top: 30px;
    padding: 10px;
    border-radius: 10px;
    background-color: rgb(21, 20, 20);
    border: 1px solid rgb(66, 64, 64);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.massage-box h2 {
    text-align: center;
    font-weight: 600;
}

.massage {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.error-massage {
    animation: errorMassage 0.4s infinite linear;
}

@keyframes errorMassage {
    0% {
        /* background-color: bisque; */
    }

    100% {
        background-color: rgb(255, 15, 59);
    }
}

.arrow {
    position: absolute;
    top: 2%;
    left: 2%;
    transform: translate(-50%, -50%);
    transform: rotate(90deg);
    cursor: pointer;
}

.arrow span {
    display: block;
    width: 1.2vw;
    height: 1.2vw;
    border-bottom: 5px solid rgb(234, 227, 227);
    border-right: 5px solid rgb(234, 227, 227);
    transform: rotate(45deg);
    margin: 10px;
    animation: animate infinite;
}
