*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-family: 'Noto Sans TC', sans-serif;
    font-family: 'Nunito', sans-serif;
}

body{
    background: #22c0c380;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, #6B705C, #B7B7A4);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #6B705C, #B7B7A4); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    /* background-size: 100% 100%; */
    background-repeat: no-repeat;
    min-height: 100vh;
    min-width: 100%;
    /* position: relative; */
}

.todo{
    border-radius: 20px;
    margin: 5% auto;
    min-width: 320px;
    max-width: 50vw;
    min-height: 70vh;
    background-color: #FFE8D6;
    padding: 3%;
    text-align: center;
    background-image: url(./img/meditating.svg);
    background-size: 53%;
    background-repeat: no-repeat;
    background-position: bottom 30px right 50%;
}

.todo h3{
    color: #CB997E;
    margin-bottom: 5%;
}

#add{
    color: #FFE8D6;
}

img{
    margin-top: 5%;
}

.todo li{
    display: flex;
    justify-content: space-between;
}

.input-filter{
    margin: 0 0 5% 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.input-field{
    display: flex;
    width: 70%;
    max-width: 100%;
}

input{
    width: 100%;
    height: 48px;
    padding: 20px;
    border: #DDBEA9 2px solid;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    background-color: transparent;
    border-right: none;
    
}

button{
    min-width: 48px;
    height: 48px;
    border: none;
    background-color: #DDBEA9;
    font-size: 30px;
    font-weight: 100;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: .3s ease;
}

button:hover{
    background-color: #CB997E;
    color: #FFE8D6;
}

.select{
    display: flex;
    cursor: pointer;
    /* flex: 3 1 110px; */
    justify-content: flex-end;
    max-width: 100%;
}

#dropdown{
    color: #FFE8D6;
    font-size: 20px;
    width: 48px;
    height: 48px;
    pointer-events: none;
}

.filter{
    cursor: pointer;
    border: #DDBEA9 2px solid;
    padding: .5rem;
    height: 48px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    background-color: #FFE8D6;
    appearance:none;
}

.item{
    position: relative;
    background-color: #CB997E;
    color: #FFE8D6;
    overflow: hidden;
    margin: 0 auto 1%  0;
    list-style: none;
    border-radius: 5px;
    height: 48px;
    line-height: 48px;
    padding: 0 20px;
    transition: all .3s ease;
}
.check-icon, .edit-icon, .trash-icon{
    height: 48px;
    position: absolute;
    background-color: #CB997E;
    color: #FFE8D6;
    padding: 16px 16px;
    cursor: pointer;
    transition: .3s ease;
    right: -55px;
    text-align: center;
    border: none;
}

.check-icon, .edit-icon{
    border-right: 1px solid #FFE8D6;
}


.item:hover .check-icon{
    right: 46px;
} 

.item:hover .edit-icon{
    right: 46px;
} 

.item:hover .trash-icon{
    right: 0px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
} 

.checked{
    text-decoration:line-through;
    border-radius: 5px;
    font-style: italic;
    background-color: #DDBEA9;

}

#noTodo{
    display: flex;
    letter-spacing: 3px;
    color: #FFE8D6;
    background-color: #6B705C;
    width: fit-content;
    padding: 2%;
    border-radius: 5px;
    margin: auto;
}

@media screen and (max-width:1260px) {
    .input-filter{
        display: block;
    }
    .input-field{
        margin-bottom: 5%;
        width: 100%;
    }
    .input-field input{
        height: 18px;
        padding: 18px;
    }

    #add, .filter,#dropdown{
        height: 40px;
    }

    input::placeholder{
        font-size: 12px;
    }
    .select{
        justify-content: flex-end;
    }

    select{
    font-size: 12px;
    }

    .todo{
        background-size: 60%;
        background-position: top 200px right 50%; 
    }
    .item{
        height: 36px;
        align-items: center;
    }
}

/* 新增清單時的動畫 */
.fall{
    transform: translatex(200px);
    opacity: 0;
}

/* 刪除清單時的動畫 */
@keyframes scaleUp {
    from {
        left: -200px;
        opacity: .2;
    }
    to{
        left: 0;
        opacity: 1;
    }
    
}