@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap');

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

body {
    height: 100%;
    min-height: 100vh;
    width: 100%;
    display: flex;
    background: rgb(41, 118, 166);
    background: linear-gradient(45deg, rgba(41, 118, 166, 1) 0%, rgba(176, 30, 175, 1) 100%);
}

.container {
    width: 100%;
    max-width: 540px;
    background-color: #eeeeee;
    margin: 50px auto 70px;
    border-radius: 10px;
    padding: 30px;
    height: fit-content;
}

h2 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: rgb(119, 0, 255);
}

h2 img {
    height: 30px;
    margin-left: 5px;
}

input[type=text] {
    background-color: #e6e6e6;
    outline: none;
    border: none;
    border-radius: 30px;
    width: 25rem;
    height: 30px;
    font-size: .8rem;
    padding-left: 13px;
    padding-right: 13px;
}

input[type=submit] {
    background-color: transparent;
    outline: none;
    border: none;
    margin-left: 9px;
    color: purple;
    cursor: pointer;
}

ul {
    margin: 20px 20px 10px;
}

ul li {
    position: relative;
    list-style: none;
    user-select: none;
    padding: 7px;
    cursor: pointer;
}

ul li::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    height: 18px;
    width: 18px;
    background-size: cover;
    background-position: center;
    top: 10px;
    left: -20px;
    background-image: url(./images/checkbox-blank-circle-line.svg);
}

ul li.checked {
    text-decoration: line-through;
    color: rgb(184, 179, 179);

}

ul li.checked::before {
    background-image: url(./images/checkbox-circle-fill.svg);
}

li span {
    content: '';
    position: absolute;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    right: 0px;
    text-align: center;
    font-size: 22px;
}

li span:hover {
    background: #d7d7d7;
}

@media screen and (max-width:500px) {
    h2 {
        justify-content: center;
    }

    .container {
        height: 100%;
        border-radius: 0;
        padding: 10px;
        margin: 0;
        min-height: 100vh;
    }

    input[type=text] {
        width: 18rem;
    }
}

@media screen and (max-width:300px) {
    input[type=text] {
        width: 12rem;
    }

    input[type=submit] {
        margin: 0;
    }
}