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

/* for whole documents */
* {
    margin: 10;
    padding: 0;
    box-sizing: border-box;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/* for hide scroll bar */
::-webkit-scrollbar {
    display: none;
}

body{
    position: relative;
    min-height: 100vh;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 3%;
    background-color: rgba(189, 221, 74, 0.577);
    
}



.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 400px;
    min-width: 750px;
    max-width: 1000px;
    background-image: linear-gradient(#eae435a4, rgb(146, 153, 249));
    border-radius: 20px;
    box-shadow: -1px 2px 20px rgb(0, 0, 0);
    padding: 20px;
}
/* header */

.container header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px;
    
}

header h1 {
    font-size: 30px;
    font-weight: bolder;
    margin-bottom: 30px;
    letter-spacing: 2.5px;
    word-spacing: 0.5px;
    
}


/* 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%;
    box-shadow: 0 8px 8px rgb(0, 0, 0);
}
.max-w-xs {
    max-width: 20rem;
}
.w-full {
    width: 100%;
}

.input {
    border-radius: 2rem;
    height: 3rem;
    border-width: 20px black solid;
    flex-shrink: 1;
    padding: 0rem 1rem;
    font-size: 1.2rem;
    line-height: 5;
}

/* todofilters */

.todos-filter, .filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
}
.filters {
  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: scroll;
    width: 100%;
}

.todos-list .todo-item{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 9.5px;
    width: 100%;
}

.todo-item{
      background-color: rgb(235, 211, 167);
      border-radius: 22px;
      margin-bottom: 5px;
}

.todo-item p{
    margin-right: 10px;
    font-size: 1.4rem;
}

.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;
}


/*buttons styling*/
.btn{
    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;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1em;
    text-decoration-line: none;
    transition: .2s all cubic-bezier(.4,0,.2,1);
    display: inline-flex;
}

.btn:hover{
    background-color: rgb(130, 165, 200);
    color: white;
}


.btn-add{
    background-color: rgb(0, 0, 255);
    color: white
}
.btn-add:hover{
    background-color: white;
    color:rgb(0, 0, 255);
}

.btn-success{
    opacity: 1;
    background-color:rgb(0, 26, 255);
    color: white
}

.btn-success:hover{
    background-color: white;
    color:rgb(60, 50, 177);
}

.btn-error{
    opacity: 1;
    background-color:rgb(0, 0, 0);
    color: white
}
.btn-error:hover{
    background-color: white;
    color:rgb(0, 0, 0);
}
/*
dropdown*/
.dropbtn {
    background-color: rgb(13, 0, 255);
    color: rgb(255, 255, 255);
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #cbcbcb;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .dropdown-content a {
    color: rgb(0, 0, 0);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown-content a:hover {background-color: #f1f1f1}
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  .dropdown:hover .dropbtn {
    background-color: rgb(212, 212, 212);
    color: rgb(4, 69, 236);
  }



/* Responsive */
@media only screen and (max-width: 530px) {
    .container {
        margin: 0 20px;
        max-width: 96%;
        min-width: 96%;
    }
}
