
@import url('https://fonts.googleapis.com/css2?family=Belgrano&family=Mozilla+Headline:wght@200..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.grid{
    background-color: rgba(255, 0, 0, 0.1);
    inset: 0;
    z-index: -1;
    position: fixed;
    pointer-events: none;
    background: linear-gradient(to right, rgba(0,0,0,.1) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.671);
    font-family: 'Roboto', sans-serif;
    color: gray;
       flex-direction: column;
}

.display{
    display: flex;
    align-items: center;
    justify-content: center;
}
.header{
    gap: 10px;
    margin-top: 20px;
}
.header h1{
    font-size: 1.4rem;
}

.note{
    margin-top: 20px;
    padding: 10px;
    transition: all 0.5s ease-in-out;
}

.addTask{
   width: 70%;
   gap: 20px;
   margin-top: 20px ;
}
.addTask input{
    outline: none;
    border: none;
    width: 70%;
    border: 1px solid gray;
    padding: 10px 20px;
    background-color: rgba(128, 128, 128, 0.315);
    border-radius: 5px;
}
.addTask input:focus{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.button{
    border: 1px solid gray;
    padding: 7px 15px;
    border-radius: 5px;
    background-color: #717182;
    color: #cbced4;
    cursor: not-allowed;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}
.button.active{
    background-color: #5d5d7e;
    cursor: pointer;
    transition: all 0.6s ease-in-out;
}
.button.active:hover img{
    transform: rotate(10deg);
}
.default{
    flex-direction: column;
    gap: 30px;
}
.default p{
    font-size: 1rem;
    color: gray;
    font-weight: 600;
}

.taskList{
    padding: 20px;
    width: 60%;
    margin-top: 20px;
}
.icons{
    gap: 20px;
}

.icn{
    background-color: gray;
    border-radius: 5px;
    padding: 5px;
    color: white;
    font-size: .6rem;
    gap: 5px;
}

.cards{
    padding: 20px;
    width: 100%;
}
.card.completed{
    text-decoration: line-through;
    color: gray;
    opacity: 0.6;
}

.card{
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid gray;
    justify-content: space-between;
}
.card input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #5d5d7e;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}

.card input[type="checkbox"]:checked {
    background-color: #5d5d7e;
    border-color: #5d5d7e;
}

.card input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    pointer-events: none;
}
.one{
    gap: 20px;
}
.remove img{
    padding: 5px;
    border-radius: 5px;
}
.remove img:hover{
    background-color: rgba(0, 0, 0, 0.2);
}
.checkComplete{
    font-size: .8rem;
    color: gray;
    font-weight: 600;
    margin-top: 30px;
}
@media  screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
    /* .addTask {
        width: 100%;
        flex-direction: column;
    } */
    .addTask input {
        width: 100%;
    }
    .taskList {
        width: 100%;
    }
    
}