/*=== Keyframes ===*/
@keyframes floating {
    0%,100%{
        transform: translate(1);
    }
    50%{
        transform: translateY(-30px) scale(1.1);
    }
}



*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: rgb(244, 143, 159);
    background-repeat: repeat;
    font-size: 15px;
}

#toDoInput {
    height: 40px;
    width: 300px;
    padding: 10px;
    border-radius: 15px;
    border: 2px solid transparent;
    font-size: 15px;
    outline: none;
}
#toDoInput::placeholder{
    transition: 0.7s;
}

#toDoInput:focus{
    border-color: rgb(148, 146, 113);
}
#toDoInput:focus::placeholder{
    position: absolute;
    transform: translateX(-120%);
    z-index: 100;
    transition: 0.7s;
}

#saveBtn{
    margin-left: 10px;
    height: 40px;
    width: 100px;
    border-radius: 15px;
    border: none;
    background-color: rgb(115, 168, 10);
    color: white;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s;
}
#saveBtn:hover{
    transform: translateY(-3px);
    box-shadow: 0 3px 0 rgb(37, 55, 2);
}
#saveBtn:active{
    background-color: rgb(101, 142, 20);
    transform: translateY(-1px);
}

#toDoList{
    height: 400px;
    width: 415px;
    border-radius: 15px;
    margin: 20px;
    padding: 20px;
    border: 4px solid rgba(108, 70, 70, 0.364);
    background: rgba(0, 0, 0, 0.089);
    overflow-y: auto;
}

.card{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    margin: 10px 0;
    background-color: rgba(0, 0, 0, 0.047);
    padding: 10px;
    border-radius: 20px;
}

.card button{
    width: 40px;
    height: 40px;
    border-radius: 15px;
    border: none;
    transition: 0.3s;
}

.card button:hover{
    transform: translateY(-3px);
}

.card p{
    word-break: break-all;
    width: 200px;
}
.card p.active{
    text-decoration: line-through;
    
}

.card .doneBtn.active{
    background-color: rgb(61, 206, 78);
    border: none;
}
.card .doneBtn:hover{
    background-color: rgb(61, 206, 78);
}

.card .delBtn:hover{
    background-color: rgb(255, 77, 77);
}

#bgBlocks{
    position: absolute;
    width: 100%;
    height: 100vh;
    pointer-events: none;
}

.block{
    position: absolute;
    animation: floating 7s linear infinite;
}

.block.one{
    height: 250px;
    width: 250px;
    bottom: 50px;
    left: 100px;
    background: linear-gradient(40deg, rgb(233, 135, 210), rgb(252, 190, 167));
    border-radius: 42% 58% 31% 69% / 34% 51% 49% 66% ;
}
.block.two{
    animation-delay: 3s;
    height: 250px;
    width: 250px;
    top: 100px;
    right: 100px;
    background: linear-gradient(160deg,rgb(233, 135, 210), rgb(252, 190, 167));
    border-radius: 58% 42% 62% 38% / 44% 47% 53% 56%  ;
}
.block.three{
    animation-delay: 6s;
    height: 100px;
    width: 100px;
    top: 350px;
    right: 80px;
    background: linear-gradient(20deg, rgb(246, 183, 141), rgb(233, 160, 216)) ;
    border-radius: 58% 42% 62% 38% / 44% 47% 53% 56%  ;
}

/*=== Media ===*/
@media (max-width: 480px) {
    #toDoInput{
        width: 170px;
    }
    .block.one{
        bottom: 10px;
        left: 10px;
    }
    .block.three{
        top: 50%;
        right: 20px;
    }
    .block.two{
        top: 30px;
        right: 20px;
    }
    #toDoList{
        width: 300px;
    }
    .card p{
        width: 120px;
    }
}

@media (min-width:481px) and (max-width: 740px) {
    .block.one{
        bottom: 30px;
        left: 20px;
    }
    .block.three{
        top: 50%;
        right: 20px;
    }
    .block.two{
        top: 30px;
        right: 20px;
    }
}
