:root {
    --gradient: linear-gradient(180deg, rgba(119, 161, 234, 0.73) 0%, #163e92 100%);

    --dark: #001747;
    --grey: #b1bacb;
    --grey-border: rgba(210, 210, 210, 0.75);
    --grey-light: #eeeeee;
    --grey-dark: #405175;
    --blue: #2d70fd;
    --green: #00d8a7;
    --white: #ffffff;
}

body {
    background: var(--gradient);
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;  
    font-family: sans-serif;
}

.btn {
    color: var(--white);
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    border-radius: 0.3rem;
    border: none;
    cursor: pointer;
    background-color: var(--blue);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

.todo {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border-radius: 2rem;
    background: var(--white);
    padding: 3rem;
    height: 50%;
    width: 60%;
    box-shadow: 0 1rem 3rem rgb(0, 23, 71, 0.15);
    max-width: 30rem;
}

h2{
    text-align: center;
    color: var(--dark);
    text-transform: uppercase;
    height: 3rem;
    padding-bottom: 20px;
}

.input{
    position: relative;
    display: flex;
    justify-content: space-between;
}

.input-field {
    display: flex;
    width: 100%;
    border: 0.06rem solid #d2d2d2bf;
    padding: 1rem;
    font-size: 1rem;
}

input[type="text"]::placeholder{
    color: var(--grey);
}

.todo-container{
    display: flex;
    gap: 1rem;
}

ul{
    padding: 0;
    margin: 0;
    overflow-y: scroll;
}

li{
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.3rem;
}

#todolist p {
    display: flex;
    gap: 1rem;
    color: var(--dark);
    align-items: center;
}

#todolist .disabled{
    color: #8f98a8;
}

.disabled{
    display: flex;
    text-decoration: line-through;
}

input[type="text"]::before{
    content: "\2713";
    display: inline;
    width: 2rem;
    height: 2rem;
    font-size: 1.7rem;
    text-align: center;
    border: 0.06rem solid var(--grey-border);
    border-radius: 50%;
    color: transparent;
}

input[type="checkbox"]:checked::before{
    color: var(--white);
    background-color: var(--green);
    border: 0.06rem solid var(--green);
    border-radius: 50%;
}

.counter{
    border: 0.06rem solid var(--grey-light);
}

.counter-container{
    height: 2rem;
    display: flex;
    justify-content: space-between;
    color: var(--grey);
}

.counter-container p {
    align-self: center;
}

.counter-container button {
    background-color: transparent;
    border: none;
    color: var(--grey);
    font-size: 1rem;
    cursor: pointer;
}

.counter-container button:hover{
    text-decoration: underline;
}

.scroll{
    height: 15rem;
    scrollbar-width: thin;
}

.scroll::-webkit-scrollbar {
    width: 0.6rem;
}

.scroll::-webkit-scrollbar-thumb{
    background-color: var(--blue);
    border-radius: 0.5rem;
}

.scroll::-webkit-scrollbar-track{
    display: none;
}

.task-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin: o.5rem 0;
}

.delete-btn{
    background: red;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    border-radius: 0.3rem;
}

.delete-btn:hover{
    background: darkred;
}

.completed{
    text-decoration: line-through;
    color: var(--grey-light);
}