*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --bgColor: #1e1e1e;
    --white: #fff;
    --text: #b0b0b0;
    --green: #4caf50;
    --gray: #2b313d;
    --task: #60c725;
}
body{
    font-size: 16px;
    background: var(--bgColor);
    height: 100vh;
    font-family: "Montserrat", sans-serif;
}
.header{
   margin: 2rem auto;
    width: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 1.75rem;
    color: var(--white);
}
.header span{
    font-size: 2rem;
    
}
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}
.container{
    display: grid;
    place-items: center;
    max-width: 650px;
    margin: 0 auto;
    gap: 2rem;
}
.task{
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
   /* // border: 1px solid var(--white); */
    padding: 2rem 2rem;
    border-radius: .5rem;
    width: 100%;
    position: relative;
    background: var(--bgColor);
}
@property --deg{
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
.task::after,.task::before{
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    top: 50%;
    left: 50%;
    translate: -50%-50%;
    z-index: -1;
    background-image: conic-gradient(from var(--deg), transparent 30%, var(--white));
    padding: 3px;
    border-radius: .5rem;
    animation: 3s spin linear infinite;
}
@keyframes spin {
    from {
        --deg: 0deg;
    }
    to{
        --deg: 360deg;
    }
}
.task::before{
    filter: blur(1.5rem);
    opacity: 0.5;
}
.title{
    font-size: 3rem;
    color: var(--white);
    font-weight: 400;
}
.sub-title{
    font-size: 2rem;
    color: var(--white);
    font-weight: 400;
}
.circle{
    border-radius: 50%;
    background: var(--task);
    padding:  2.5rem;
    color: var(--white);
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}
.newTask{
    width: 100%;
    display: flex;
    gap: 1rem;
}
.newTask input{
    background: var(--gray);
    padding: .75rem .75rem;
    outline: none;
    border: none;
    border-radius: .5rem;
   flex-grow: 1;
   font-size: 1.25rem;
   color: var(--white);
}
.newTask button{
    background: var(--task);
    border: none;
    font-size: 1.5rem;
    font-weight: 100;
    border-radius: .5rem;
    padding: .75rem;
    cursor: pointer;
}
.newTask button:hover{
    color: var(--white);
    scale: 1.1;
}
.tasks{
    width: 100%;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    border: 2px solid var(--text);
    font-size: 1.5rem;
    padding: .75rem;
    color: var(--text);
    position: relative;
}
.tasks input{
    display: none;
}
.tasks  span{
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: 2px solid var(--text);
}
.tasks input:checked + span::after{ 
    content: "";
    position: absolute;
    border-radius:50%;
    width: 15px;
    height: 15px;
    top: 50%;
    left: 50%;
    background: var(--task);
    transform: translate(-50%, -50%);

}
.tasks span:hover {
    background-color: var(--task);
  }
  .info:has(input:checked) .desc{
    text-decoration: line-through;
    opacity: 0.6;
  }
  .info{
      display: flex;
      gap: 1rem;
      justify-content: center;
      align-items: center;
  }
  .icon{
    display: flex;
    gap: .25rem;
  }
  .icon i{
   cursor: pointer;   
  }
  .icon i:hover{
    color: var(--task);
    scale: 1.1;
  }
  .overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
  }
  .modal{
      background: var(--bgColor);
      display: flex;
      flex-direction: column;
      min-width: 500px;
      min-height: 300px;
      padding: 1.5rem;
 
   position: relative;
   gap: .5rem;
  }
  .modal::after,.modal::before{
    position: absolute;
    content: '';
    height: 305px;
    width: 501px;
    top: 50%;
    left: 50%;
    translate: -50%-50%;
    z-index: -1;
    background-image: conic-gradient(from var(--deg), transparent 30%, var(--white));
    padding: 3px;
    border-radius: .5rem;
    animation: 3s spin linear infinite;
}
.modal h2{
    color: var(--white);
}
  .modal button{
    background: var(--task);
    border: none;
    font-size: 1.5rem;
    font-weight: 100;
    border-radius: .5rem;
    padding: .75rem;
    cursor: pointer;
    color: var(--white);
  }
  .modal button:hover{
    scale: 1.1;
    color: var(--gray);
  }
  .modal input{
    background: var(--text);
    padding: .75rem .75rem;
    outline: none;
    border: none;
    border-radius: .5rem;
  
   font-size: 1.25rem;
   color: var(--white);
   width: 100%;
  }
  .btns{
      position: absolute;
      bottom:  24px;
      right: 24px;
      display: flex;
      gap: 1rem;
      justify-content: space-between;
      width: calc(100% - 48px);
  }
  .doneTask{
    text-decoration: line-through;
    opacity: 0.6;
  }