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


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    background-color: rgb(247, 247, 251);
}
.container{
    width:700px;
    margin-top: 50px;
    padding: 10px 50px;
}
h1{
    border-radius: 5px;
    margin: 10px 0px;
    font-family: Arial, Helvetica, sans-serif;
   font-weight: bold;
   color:#fff;
   background-color: #0F044C;
   padding: 10px;
   text-align: center;
}
input{
    width:80%;
    height:50px;
    padding: 20px;
    border-radius: 5px;
    border: none;
    outline: none;
    border: 2px solid #141E61;
    font-size: 20px;
    color: black;
}
.input-area{
    display: flex;
    width: 100%;
}
#addbtn{
    background-color: #3CCF4E;
    border:none;
    padding:5px;
    color: #fff;
    margin-left: 5px;
    border-radius: 5px;
    width: 20%;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}
#addbtn:hover{
  background-color: #018d11f9;
  transform: scale(0.9);
  cursor: pointer;
}
#display-task{
    background-color: #010d5bf0;
    width: 100%;
    height:auto;
    margin-top: 50px;
    border-radius: 10px;
    padding: 40px 10px;
    box-shadow: 10px 25px 35px #00010db3;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
#total-task{
    color:#fff;
    font-size: 18px;
    margin: 10px;
    font-weight: bold;
}
#total-task span{
    color:rgb(252, 4, 4);
    font-size: 22px;
}
.task-items{
   padding: 5px 20px;
   background-color:#fcfafafb;
   margin: 2px 0px;
   border-radius: 5px;
   font-family: 'Poppins', sans-serif;
   color: black;
   width:500px;
   height:50px;
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   justify-content: space-between;
   position: relative;
   cursor: pointer;
}
.completed{
    background-color: #3CCF4E;
    width:30px;
    height:30px;
    border: none;
    border-radius: 50px;
    position: absolute;
    right: 60px;
    font-size: 16px;
    color: white;
    transition: 0.2s ease-in-out;
    cursor: pointer;
}
.completed:hover{
    cursor: pointer;
    transform: scale(0.9);
    background-color: #018d11f9;
}
.active{
    text-decoration: line-through;
    background-color: rgba(201, 200, 200, 0.929);
    opacity: 0.8;
}
.remove{
    background-color: rgb(252, 20, 20);
    width:30px;
    height:30px;
    border: none;
    border-radius: 30px;
    position: absolute;
    right: 20px;
    font-size: 14px;
    color: rgb(247, 242, 242);
    transition: 0.2s ease-in-out;
}
.remove:hover{
    cursor: pointer;
    transform: scale(0.9);
    background-color: rgba(208, 4, 4, 0.896);

}



@media (max-width:720px){
    .container{
        width:380px;
        padding: 10px;
    }
    .task-items{
      width: 320px;
      font-size: 14px;
      line-height: 30px;
      position: relative;
    }
    .completed{
        width:30px;
        position: absolute;
        right:60px;
        font-size: 15px;
        border-radius: 50%;
    }
    .remove{
        width:50px;
        font-size: 10px;
        position: absolute;
        right: 5px;
    }
   
   
}