@import url('https://fonts.googleapis.com/css2?family=Hi+Melody&display=swap');

body {
    background: linear-gradient(90deg, #02aab0, #00cdac);
    font-family: 'Hi Melody', cursive;
    margin-left: 0px;
    margin-right: 0px;
    caret-color: #02aab0;
}

#todolist {
    text-align: center;
}

.main_title {
    color: white;
    margin: 30px;
}

.input__section form {
    display: inline-flex;
    align-items: center;
}

.item {
    width: 300px;
    height: 30px;
    border-radius: 15px;
    border: 1px solid #fbe7c6;
    padding: 0 30px;
}

*:focus {
    outline: none;
}

.input__button {
    background-color: transparent;
    font-size: 30px;
    line-height: 60px;
    margin-left: 10px;
    color: white;
    border: 0;
    padding-top: 5px;
}

ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

ul li {
    cursor: pointer;
    position: relative;
    padding: 12px 8px 12px 8px;
    background: #eee;
    font-size: 18px;
    transition: 0.3s;
}

ul li:hover {
    background: #ddd;
}

.close {
    position: absolute;
    right: 20px;
    top: 0px;
    align-items: center;
    text-align: center;
    margin: 8px 60px;
    padding: 4px 10px;
    border: none;
}

.close:hover {
    background: linear-gradient(90deg, #02aab0, #00cdac);
    border-radius: 100%;
    color: white;
}

ul li.checked {
    background: #ddd;
    color: #272341;
    text-decoration: line-through;
}

ul li.checked::before {
    content: "";
    position: absolute;
    border-color: #272341;
    border-style: solid;
    border-width: 0 2px 2px 0;
    top: 13px;
    left: 90px;
    transform: rotate(45deg);
    height: 15px;
    width: 7px;
}

@media screen and (max-width: 768px) {
    body {
        margin: 0;
    }

    #todolist {
        max-width: 100%;
    }

    .input__section form {
        display: inline-flex;
        align-items: center;
    }

    .item {
        width: 200px;
        height: 30px;
        border-radius: 15px;
        border: 1px solid #fbe7c6;
        padding: 0px 30px;
    }

    .close {
        position: absolute;
        right: 20px;
        top: 0px;
        align-items: center;
        text-align: center;
        margin: 8px 15px;
        padding: 4px 8px;
        border: none;
    }
}