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

:root {
    --navyblue: #010146;
    --text: #21212e;
    --grey: #d1d1d1;
    --orange: #e97110;
}

body {
    background: linear-gradient(135deg,rgb(172, 0, 120),rgb(72, 0, 187));
    background-repeat: no-repeat;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
}

input, button {
    font-family: inherit;
}

.section {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100svh;
}

.todo-container {
    background-color: white;
    width: 70%;
    max-width: 500px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    gap: 16px;
    padding: 30px 30px 40px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.205);
}

.todo-header {
    display: flex;
    flex-flow: column nowrap;
    gap: 16px;
}

.todo-header h3 {
    /* text-align: center; */
    font-size: 1.5rem;
    color: var(--navyblue);
    font-weight:600;
}

.input {
    display: flex;
    position: relative;
    font-size: 1rem;
}

.input .task {
    display: inline-block;
    width: 100%;
    padding: 1.25rem 1rem;
    background: transparent;
    border: 1px solid var(--grey);
    border-radius: 0.5rem;
    outline: none;
}

.input input:focus-within {
    border: 1px solid var(--orange);
}

.input input::placeholder {
    color: #afafaf;
    font-weight: 400;
}

.input .btn {
    padding: 0.75rem 1.25rem;
    background: var(--orange);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-weight: 500;

}

.divider {
    background-color: var(--grey);
    width: 100%;
    height: 1px;
    border: none;
    opacity: 0.5;

}

ul {
    overflow-y: scroll;
    list-style-type: none;
    display: flex;
    flex-flow: column nowrap;
    gap: 0.8rem;
    padding-right: 1rem;
}

.todo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0.25rem 0px;
}

.todo span {
    position: absolute;
    width: 1.75rem;
    height: 1.75rem;
    text-align: center;
    vertical-align: middle;
    border-radius: 50px;
    right: 0;

}

.todo span:hover {
    background-color: #dfdfdf;
    cursor: pointer;
}

.todo li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.todo li::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #d1d1d1;
    border-radius: 50px;
    background: white;
    margin-right: 1rem;
}

.todo li.checked {
    text-decoration: line-through;
    color: #9e9d9d;
}

.todo li.checked::before {
    content: '';
    border: 1px solid rgba(255, 81, 0, 0.87);
    background: url("./icon-list.svg");
    background-position: center;
    background-size: cover;
}

.todo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.todo-footer button {
    padding: 0.5rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--navyblue);
}
.todo-footer button:hover {
    color: var(--orange);
}


.scroll {
    scrollbar-width: auto;
    height: 150px;
}

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

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

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