*,
*:before,
*:after{
    padding: 0 ;
    margin : 0 ;
    box-sizing: border-box;
}
body{
    height: 100vh;
    background: #0f62f3;
}
#head-text{
    margin-top: 30px;
    margin-left: 15px;
    font-family:Arial, Helvetica, sans-serif;
    color: #0f62fe;
}
.container{
    width: 40%;
    top: 30%;
    left: 50%;
    background: white;
    border-radius: 10px;
    min-width: 450px;
    position: absolute;
    min-height: 100px;
    transform: translate(-50%,-50%);
}
#newtask{
    position: relative;
    padding: 30px 20px;
}
#newtask input{
    width: 75%;
    height: 50px;
    padding: 10px;
    color: #111111;
    font-weight: 500;
    position: relative;
    border-radius: 5px;
    font-family: sans-serif;
    font-size: 15px;
    border: 2px solid ;
}
#newtask input:focus{
    outline: none;
    border-color: #0D75Ec;
}
#newtask button{
    position: relative;
    float: right;
    font-weight: 500 ;
    font-size: 20px;
    background-color: #0f62fe;
    border: none;
    color: white;
    cursor: pointer;
    outline: none;
    width: 20%;
    height: 50px;
    border-radius: 5px;
    font-family: 'Times New Roman', Times, serif;
}
.tasks{
    position: absolute;
    border-radius: 10px;
    width: 100%;
    background-color: white;
    padding: 30px 20px;
    margin-top: 5px;
    justify-content: space-between;
}
.tasks.overflow{
    overflow-y: auto;
    max-height: 300px;
}
.tasks::-webkit-scrollbar{
    width: 10px;
}
.tasks::-webkit-scrollbar-track{
    background: #bae6ff;
    border-radius: 25px;
}
.tasks::-webkit-scrollbar-thumb{
    background: #0d75ec;
    border-radius: 25px;
}
.task{
    border-radius: 5px;
    border: solid;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    height: 50px;
    margin-bottom: 5px;
    padding: 10px 10px;
    display: flex;
    width: 100%;
}
.delete{
    right: -5px;
    padding: 5px 5px;
    background: white;
    border-radius: 4px;
    transform-origin: top right;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
    z-index: 10;
}
#check-task{
    margin-right: 10px;
    margin-top: 3px;
    
}
input[type="checkbox"]{
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}
input[type="checkbox"]:checked::after{
    content:"✔️";
    font-size: 16px;
    position: absolute ;
    top: -5px ;
    left: -2px;

}
.task label{
    font-family: sans-serif;
    font-size: 20px;
    font-weight: 400;
    display: flex;
    align-items: flex-start;
}
.task label p.checked{
    text-decoration: line-through;
    color: grey
}
