*{
    font-family: Oswald;
}

.img-cont{
    text-align: center;
}
img{
    width: 10%;
}
.toDoCont{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.toDoInput{
    font-size: 2em;
    text-align: center;
    border-radius: 15px 0 0 15px;
    width: 350px;
    border: 2px solid black;
}
.edit-input{
    font-size: 0.75em;
    border-radius: 15px;
    padding: 0 10px;
}
.addBtn{
    font-size: 2em;
    color: hsl(0, 0%, 100%);
    background-color: hsl(280, 31%, 50%);
    cursor: pointer;
    border: 2px solid black;
    border-radius: 0 10px 10px 0;
    width: 100px;
    transform: translateX(-6px);
}
.addBtn:hover{
    background-color: hsl(280, 31%, 40%);
}
.addBtn:active{
    background-color: hsl(280, 31%, 35%);
}

.toDoTask-cont{
    font-size: 1.75em;
    width: 500px;
    border: 2px solid rgba(0, 0, 0, 0.684);
    background-color: hsl(0, 0%, 100%);
    margin-top: 15px;
    padding: 20px 10px;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.655);
    overflow: hidden;
}
.task{
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}
.completed {
  position: relative;

}
.completed::before{
    position: absolute;
    content: "";
    width: 100%;
    height: 3px;
    top: 50%;
    background-color: black;
}
.animate-line::before {
    animation: lineThrough 0.5s forwards;
}
.reverse-animate-line::before{
    animation: reverseLineThrough 0.5s forwards;
}

.update-btn, .delete-btn, .save-btn{
    font-size: 0.75em;
    width: 100px;
    border-radius: 10px;
    cursor: pointer;
}
.update-btn{
    color: black;
    background-color: hsl(38, 99%, 65%);
}
.update-btn:hover{
    background-color: hsl(26, 78%, 61%);
}
.update-btn:active{
    background-color: hsl(26, 55%, 55%);
}
.delete-btn{
    color: white;
    background-color: hsl(211, 100%, 58%);
}
.delete-btn:hover{
    background-color: hsl(211, 75%, 48%);
}
.delete-btn:active{
    background-color: hsl(211, 50%, 40%);
}
.save-btn:hover{
    background-color: hsl(0, 0%, 85%);
}
.save-btn:active{
    background-color: hsl(0, 0%, 75%);
}
.animate-down {
    animation: moveButtonsDown 0.3s forwards;
}
input[type="checkbox" i]{
    width: 25px;
    height: 25px;
}

@keyframes lineThrough {
    from{width: 0%;}
    to{width: 100%;}
}

@keyframes reverseLineThrough {
    from{width: 100%;}
    to{width: 0%;}
}

@keyframes moveButtonsDown {
    from{transform: translateX(0);}
    to{transform: translateX(230%);}
}

@media (max-width: 768px){
    img{
        width: 15%;
    }
    .img-cont{
        text-align: start;
    }
    .toDoForm{
        display: flex;
    }
    .toDoInput{
        width: 80%;
    }
    .addBtn{
        padding: 0 15px;
        width: auto;
    }
    .toDoTask-cont{
        min-width: 85%;
        min-height: 50px;
        width: auto;
    }
    .task{
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
    }
    .edit-input{
        width: 45%;
        margin-bottom: 5px;
    }
    
    @keyframes moveButtonsDown {
        from{transform: translateX(0);}
        to{transform: translateX(350%);}
    } 
}