@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;800;900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
:root{
    --color-primary:#22311d;
    --color-secondary:#8A9A5B;
}
body{
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    --bg-color: white;
    --text-color: black;
    background-color: var(--bg-color);
    color: var(--text-color);


}
body.dark{
    --bg-color: black;
    --bg-color: white;
}
.theme-toggle{
    position: fixed;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: left;
    justify-content: left;
}
.container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 400px;
    min-width: 500px;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px;
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
                0px 4px 5px 0px rgba(0, 0, 0, 0.14),
                0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}
/* header */
.container header{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}
header h1{
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgb(68, 68, 68);
}
/* Input section */
header .input-section{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}


.input-section input{
    margin-right: 10px;
    max-width: 100%;
}
.max-w-xs{
    max-width: 200rem;
}
.w-full{
    width:100%;
}
.input{
    border-radius: 0.5rem;
    height: 3rem;
    border-width: 1px;
    flex-shrink: 1;
    padding: 0rem 1 rem;
    font-size: .875rem;
    line-height: 2;
}
/* Todo filters */
.todos-filter, .filters{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
}
.filter{
    margin-top: 10px;
}
.todos-list{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100%;
    max-height: 54vh;
    overflow-y: auto;
    width: 100%;
   
}
.todos-list .todo-item{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.todo-item{
    background-color: beige;
    border-radius: 10px;
    margin-bottom: 5px;
}
.todo-item p{
    margin-right: 10px;
}
.todo-item .todo-actions{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    width: 100%;
    height: 100%;
}
.todo-actions button:not(:last-child){
    margin-right: 10px;
}
.di, .ci{
    pointer-events: none;
}
.line{
    text-decoration: line-through;
}
/* Button styling */
.btn{
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border: none;
    outline: none;
    text-align: center;
    border-radius: 0.5rem;
    height: 3rem;
    min-height: 3rem;
    text-transform: uppercase;
    border-width: 1px;
    animation: button-pop --var(--animation-btn, .25s)ease-in-out;
    flex-wrap: wrap;
    flex-shrink: 0;
    justify-content: center;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1rem;
    text-decoration-line: none;
    transition: .2s all cubic-bezier(.4, 0, .2, 1);
    display: inline-flex;
    /* Add a box shadow for a 3D effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    /* Add a transition for smooth color changes on hover */
    transition: background-color 0.3s, color 0.3s;
}
.btn:hover{
    background-color: rgb(108, 109, 110);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.btn-add{
    background-color: rgb(255, 221, 0);
    color: white;
    /* Add a box shadow for a 3D effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    /* Add a transition for smooth color changes on hover */
    transition: background-color 0.3s, color 0.3s;
}
.btn-add:hover{
    background-color: white;
    color: rgb(255, 221,0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.btn-success{
    opacity: 1;
    background-color: rgb(50, 177, 50);
    color: white;
    /* Add a box shadow for a 3D effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    /* Add a transition for smooth color changes on hover */
    transition: background-color 0.3s, color 0.3s;
}
.btn-success:hover{
    background-color: white;
    color: rgb(50, 177, 50);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.btn-error{
    opacity: 1;
    background-color: rgb(246, 77, 4);
    color: white;
    /* Add a box shadow for a 3D effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    /* Add a transition for smooth color changes on hover */
    transition: background-color 0.3s, color 0.3s;
}
.btn-error:hover{
    background-color: white;
    color: rgba(246, 77, 4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
/* Dropdown */
.dropbtn{
    background-color: #4CAF50;
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    /* Add a box shadow for a 3D effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    /* Add a transition for smooth color changes on hover */
    transition: background-color 0.3s, color 0.3s;
}
.dropdown{
    position: relative;
    display: inline-block;
    /* Add a box shadow for a 3D effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    /* Add a transition for smooth color changes on hover */
    transition: background-color 0.3s, color 0.3s;
}
.dropdown-content{
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    /* Add a box shadow for a 3D effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    /* Add a transition for smooth color changes on hover */
    transition: background-color 0.3s, color 0.3s;
}
.dropdown-content a{
    color: black;
    padding: 12px, 16px;
    text-decoration: none;
    display: block;
    /* Add a box shadow for a 3D effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    /* Add a transition for smooth color changes on hover */
    transition: background-color 0.3s, color 0.3s;
}
.dropdown-content a:hover{
    background-color: #f1f1f1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.dropdown:hover .dropdown-content{
    display: block;
}
.dropdown:hover .dropbtn{
    background-color: #3e8e41;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
/* responsive */
@media only screen and (max-width: 530px){
    .container{
        margin: 0 20px;
        max-width: 96%;
        max-width: 96%;
    }
}
