@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;700&display=swap');

*{
    margin: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Josefin Sans', sans-serif;
    height: 100vh;
    font-size: 18px;
    background-color: hsl(0, 0%, 98%);
}
::-webkit-scrollbar {
    display: none;
}
::-webkit-scrollbar {
    display: none;
}
.container{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(images/bg-desktop-light.jpg);
    background-repeat: no-repeat;
    background-size: contain;
}
main{
    width: 90%;
    max-width: 550px;
    padding: 15px;
}
header{
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}
header h1{
    color: white;
    letter-spacing: 15px;
}
.addTask{
    background-color: white;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
#checkbox{
    display: none;
}
.addTask label{
    width: 28px;
}
input[type='checkbox']{
    display: none;
}
label{
    width: 25px;
    height: 25px;
    display: flex;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}
:not(:checked) + label{
    border: 1px solid var(--label-bg-color,hsl(236, 33%, 92%));
    border-radius: 50%;
}
:not(:checked) + label:hover{
    background: linear-gradient(to bottom right, hsl(192, 100%, 67%), hsl(280, 87%, 65%));
    position: relative;
}
:not(:checked) + label:hover::before{
    content: "";
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    left: 1px;
    background-color: var(--before-bg-color,white);
    border-radius: 50%;
}
:checked + label {
    background: linear-gradient(to bottom right, hsl(192, 100%, 67%), hsl(280, 87%, 65%));
}
.checked .textoTarea p{
    color: hsl(236, 33%, 92%);
    text-decoration: line-through;
}
.iconCheck{
    display: none;
}
.addTask > input[type='text']{
    width: 100%;
    border: none;
    background-color: transparent;
    outline: none;
    color: hsl(235, 19%, 35%);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 18px;
    margin-left: 20px;
}
.addTask > input[type='text']::placeholder{
    color: hsl(236, 9%, 61%);
}
.addTask > .inputText{
    color: hsl(236, 33%, 92%) !important;
}
.addTask > .inputText::placeholder{
    color: hsl(234, 11%, 52%) !important;
}
.taskContainer{
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 20px;
}
.filterContainer{
    display: flex;
    justify-content: space-between;
    font-size: 12px;    
    color: hsl(236, 9%, 61%);
    padding: 15px 20px;
}
.filter2{
    justify-content: center;
    gap: 15px;
    font-size: 12px;    
    color: hsl(236, 9%, 61%);
    padding: 20px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 35px;
    display: none;
}
.filterContainer a, .filter2 a{
    text-decoration: none;
    color: hsl(236, 9%, 61%);
}
.filterContainer a:hover, .filter2 a:hover{
    color: hsl(220, 98%, 61%);
}
.filterContainer .all{
    color: hsl(220, 98%, 61%);
}
.task{
    background-color: white;
    display: flex;
    border-bottom: 1px solid var(--task-border,hsl(236, 33%, 92%));
    padding: 20px;
    border-radius: 5px 5px 0 0;
    align-items: end;
    cursor: grab;
}
.task p{
    margin-left: 20px;
    height: min-content;
    font-size: 18px;
    width: 100%;
}
.textoTarea{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.textoTarea img{
    visibility: hidden;
    cursor: pointer;
}
.textoTarea:hover img{
    visibility: visible;
}
.dragInfo{
    text-align: center;
    font-size: 12px;
    color: hsl(236, 9%, 61%);
    margin-bottom: 20px;
}
.task .dragging {
    opacity: 0.6;
}
.task .dragging :where(.check, .textoTarea) {
    opacity: 0;
}
.incompleta, .completa{
    display: none;
}
.iconMood{
    display: none;
}
@media (max-width: 768px) {
    main{
        margin-top: 30px;
    }
    .filter2{
        display: flex;
    }
    .filter{
        display: none;
    }
    .task p{
        font-size: 13px;
        margin-left: 10px;
    }
    header{
        font-size: .8em;
    }
    .addTask{
        padding: 10px 10px 10px 15px;
    }
    #task::placeholder{
        font-size: 14px;
    }
    #task{
        margin-left: 10px;
    }
}

@media (min-width: 768px) {
    main{
        margin-top: 70px;
    }
    .filter2{
        display: none;
    }
    .filter{
        display: flex;
        gap: 10px;
    }
}
