@import url('https://fonts.googleapis.com/css2?family=Barlow&family=Libre+Franklin&family=Ubuntu:wght@300&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #333233;
}

.box{
    width: 450px;
    height: 500px;
    position: relative;
    background: #9b3434;
    border-radius: 30px;
    box-shadow: 50px 50px 200px rgba(0, 0, 0, 0.25);
    padding: 20px 30px;
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.box.animate{
    transform: scale(1);
}

h2{
    text-align: center;
    width: 100%;
    color: #fff;
}

#inputBox{
    position: relative;
    width: 70%;
    border: none;
    outline: none;
    padding: 10px 20px;
    margin-right: 10px;
    font-size: 1.2rem;
    margin-top: 10px;
    border-radius: 25px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.25);
}

#add-btn{
    width: 25%;
    border: none;
    outline: none;
    padding: 10px 10px;
    font-size: 1.1rem;
    margin-top: 10px;
    border-radius: 25px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.box li{
    position: relative;
    width: calc(100% - 50px);
    align-items: center;
    display: flex;
    padding: 10px 10px 10px 45px;
    background: #3a3737;
    border-radius: 25px;
    cursor: pointer;
    color: #fff;
    min-height: 20px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.25);
    margin: 20px 0;
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.box li.animate{
    transform: scale(1);
}

.box li i{
    position: absolute;
    right: -40px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3a3737;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.25);
    border-radius: 25px;
}

.box li i::before{
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
}

.box li i::after{
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background: #fff;
    transform: rotate(-45deg);
}

.box li::before{
    content: '';
    position: absolute;
    left: 8px;
    width: 25px;
    height: 25px;
    background: #9b3434;
    border-radius: 50%;
}


.box li.done{
    background: #13348f;
}

.box li.done:after{
    content: '';
    position: absolute;
    left: 13px;
    width: 12px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(315deg);
}

#list{
    position: relative;
    margin-top: 10px;
    height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

::-webkit-scrollbar-track{
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar{
    width: 5px;
}

::-webkit-scrollbar-thumb{
    background: #fff;
    border-radius: 25px;
}

@media (max-width: 600px) {
    .box{
        width: 90%;
        height: auto;
    }

    #inputBox{
        width: 60%;
    }

    #add-btn{
        width: 35%;
    }
}
