#container{
    margin: 10px;
    max-width: calc(100% - 10px);
    display: flex;
    justify-content: center;
}

/*#region todoHandleAdding*/
.block{
    display: flex;
    flex-direction: column;

    border-top: 5px solid var(--detailColor);
    border-left: 5px solid var(--detailColor);
    border-bottom: 5px solid var(--textColor);
    border-right: 5px solid var(--textColor);

    margin: 10px 10px;
    width:20%;
    height: fit-content;
}

#todoBlock{
    display: flex;
    flex-direction: column;

    border-top: 5px solid var(--detailColor);
    border-left: 5px solid var(--detailColor);
    border-bottom: 5px solid var(--textColor);
    border-right: 5px solid var(--textColor);

    margin: 10px 20px;

    width: 75%;
    padding-bottom: 10px;
}

#addTodoBlock {
    display: flex;
    
    padding: 10px;
    padding-bottom: 10px;
    
}

#addTodoBlock button{
    margin-left: 10px;
    width: 80px;
    height: 35px;
    background-color: var(--detailColor);
    border: 1px solid var(--textColor);
}

#addTodoBlock #todoText{
    font-size: 15px;

    padding-left: 10px;
    width: calc(100% - 80px);
    height: 35px;
    border: 1px solid var(--textColor);
}

#addTodoBlock #todoId{
    width: 4ch;
}

/*#endregion todoHandleAdding*/

/*#region todoList*/
#todo{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    
    text-align: justify;
    padding: 5px 20px;
}

#todo textarea{
    margin: 0;
    border: 1px solid var(--textColor);

   
    width: 100%;   
    max-height: 40px;
    resize: none;

    font-size: 20px;

    padding: 5px;
    margin: 0px 10px;

}

#todo textarea::-webkit-scrollbar{
    width: .6em;
}

#todo textarea::-webkit-scrollbar-track{
    background-color: var(--textColor);
    
}

#todo textarea::-webkit-scrollbar-thumb{
    background-color: var(--detailColor);
    border: 1px solid var(--textColor);

}

#listsButtonsBlock::-webkit-scrollbar{
    width: .6em;
}

#listsButtonsBlock::-webkit-scrollbar-track{
    background-color: var(--textColor);
}

#listsButtonsBlock::-webkit-scrollbar-thumb{
    background-color: var(--detailColor);
    border: 1px solid var(--textColor);
}

#todo:has(#checkTodo:checked) textarea{
    text-decoration: line-through;
    text-decoration-color: var(--textColor);
    text-decoration-thickness: 2px;
}

#todo button, input[type='checkbox']{
    aspect-ratio: 1 / 1;
    background-color: var(--detailColor);
}

#todo input[type="checkbox"]{
    margin: 0;
    appearance: none;
    border: 1px solid var(--textColor);
    display: grid;
    place-content: center;
    width: 25px;
    height: 25px;
}

#todo input[type="checkbox"]::before{
    content: "";
    width: 15px;
    height: 15px;
    transform: scale(0);
    box-shadow: inset 25px 25px var(--textColor);

    transition-property: transform;
    transition-duration: .3s;
}

#todo input[type="checkbox"]:checked::before{
    transform: scale(1);
    transition-property: transform;
    transition-duration: .3s;
}   

#todo #del{
    height: 40px;
    width: 30px;
    margin-right: 5px;
    text-align: center;
}

#moveBtns{
    display: flex;
    flex-direction: column;
    max-height: 40px;
}
#moveUp, #moveDown{
    height: calc( (40px - 5px) / 2 );

    text-align: center;
    line-height: 0;
    padding: 0;
}

#moveUp + #moveDown{
    margin-top: 5px;
}
/*#endregion todoList*/

/*#region list Block*/
#addToListBlock{
    display: flex;
    flex-direction: row;
    padding: 10px;
}
#listBlock{
    display: flex;
    flex-direction: column;
    width: 15%;
}

#listBlock input{
    font-size: 15px;

    padding-left: 10px;
    width: calc(100% - 80px);
    height: 35px;
    border: 1px solid var(--textColor);
}

#listBlock button{
    margin-left: 10px;
    width: 80px;
    height: 35px;
    background-color: var(--detailColor);
    border: 1px solid var(--textColor);
}

#buttonWrapper{
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
}

#buttonWrapper .listButton{
    width: 100%;
}

#buttonWrapper #deleteList{
    height: 100%;
    width: 15%;
    margin-right: 5px;
    text-align: center;
    margin-right: 10px;
}

#listsButtonsBlock{
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

#listsButtonsBlock button{
    font-size: 15px;
    width: calc(100% - 20px);
    height: fit-content;
    padding: 5px 0px;
    color: var(--textColor);
    background-color: var(--detailColor);
    overflow-wrap: break-word;
}

#listsButtonsBlock button.active{
    color: var(--detailColor);
    background-color: var(--textColor);
}
/*#endregion*/

#anotacoesBlock{
    border: none;
    width: 10%;
}

.listModal{
    width: 100dvw;
    height: 100dvh;
    z-index: 9;

    /* background-color: rgb(from var(--textColor) r g b / .85);; */
    background-color: transparent;
    
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#listModalBackground{
    width: 250px;
    height: 250px;
    z-index: 12;
    background-color: var(--BGColor);

    border-top: 5px solid var(--detailColor);
    border-left: 5px solid var(--detailColor);
    border-bottom: 5px solid var(--textColor);
    border-right: 5px solid var(--textColor);

    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: scale(0, 0.5);
    transition: transform .2s ease;
}

#listModalBackground.active{
    display: flex;
    visibility: visible;
    transform: scale(1, 1);
    transition: transform .4s ease;
}

#listModalBackground #listNameWrap{
    display: flex;
    flex-direction: column;
}

#listNameWrap input{
    font-size: 15px;

    padding-left: 10px;
    width: 100%;
    height: 35px;
    border: 1px solid var(--textColor);
}

#listNameWrap #buttonWrap{
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: space-between;
    margin: 10px;
}

#buttonWrap button{

    width: 50%;
    height: 35px;
    background-color: var(--detailColor);
    border: 1px solid var(--textColor);
}


#exportOption{
    width: 100dvw;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--textColor);
    display: none;
}

#exportOption #content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px;
}

@media(max-width: 800px){
    #container{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #todoBlock{
        width: 95%;
    }

    #listBlock{
        width: 95%;
    }

    #listsButtonsBlock{
        flex-direction: row;
        align-items: center;
        
        overflow-x: scroll;
        width: 100%;
        max-width: 100%;
        padding-bottom: 10px;
        margin-bottom: 5px;
    }

    #buttonWrapper{
        min-width: 250px;
    }
}

@media(max-width: 450px){
    header nav{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}   