*{
    box-sizing: border-box;

}


.container{
    margin-left: 40px;
}

.todo__form{
    width: 100%;
    height: 30px;
    border: 1.5px solid black;
    border-radius: 7px;
    overflow: hidden;
    padding-left: 20px;
}
.todo__input{
    width: 90%;
    border: none;
    height: 100%;
    padding: 0;
    padding-block: 0;
    padding-inline: 0;
    cursor: pointer;
}
.todo__input::target-text{
    padding-left: 15px;
}
.todo__input:active{
    outline:none;
}
.todo__input:focus{
    outline:none;
}



.todo__button{
    width: 10%;
    height: 100%;
    background-color: blue;
    border: none;
    color: white;
    cursor: pointer;
   

}

.form__elem{
    display: grid;
    grid-template-columns: 1fr auto;
    border-radius: 6px;
    align-items: center;
    height: 35px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid black;
    padding-left: 10px;

}

.elem_green{
    background-color: #80808066;
}

.todo__button_green{
    background-color: rgb(0 130 0);
    color: white;
    cursor: pointer;
    height: 100%;
    width: 50%;
    border-right: none;
    border: 0;
}
.todo__button_red{
    background-color: #cf1b1b;
    color: white;
    cursor: pointer;
    height: 100%;
    width: 50%;
    border: 0;
}
.form__btn-wrap{
    height: 100%;
    border-radius: 4px;

}
ul{
    padding: 0;
}
.section{
    margin: 0 20px;
}
nav{
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}
a{
    text-decoration: none;
    color: black;
    margin-right: 20px;
}
@media(max-width: 1130px){
    .todo__button{
        font-size: 12px;
    }
}
@media(max-width: 1050px){
    .todo__button{
        width: 20%;
    }
    .todo__input{
        width: 80%;
    }
}
@media(max-width: 700px){
    .todo__button{
        width: 30%;
    }
    .todo__input{
        width: 70%;
    }
    .container{
        margin-right: 20px;
        margin-left: 20px;
    }
}
@media(max-width: 420px){
    .todo__button{
        width: 35%;
    }
    .todo__input{
        width: 65%;
    }
    h2{
        text-align: center;
    }
}
@media(max-width:380px){
    .todo__form{
        display: flex;
        flex-direction: column;
        height: 60px;
        padding-left: 0;
    }
    .todo__button{
        width: 100%;
    }
    .todo__input{
        width: 100%;
        text-align: center;
    }
    .form__elem{
        display: flex;
        flex-direction: column;
        height: auto;
        padding-left: 0;
        text-align: center;

    }
    .form__btn-wrap{
        width: 100%;
        height: 21px;
    }
    .section{
        margin: 0;
    }
    a{
        margin-right: 10px;
        font-size: 15px;
        text-align: center;
    }
}