/* Reset básico */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    background-color: #eeeeee;
    /* cor neutra */
    font-family: Arial, sans-serif;
    /* opacity: 0.2; */
}

/* Corrigido nome da classe */
.titulo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
    /* border: solid 1px blue; */
    padding: 20px;
    text-align: center;
}

/* Containers principais */
.conteiner1,
.conteiner2 {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    width: 90%;
    max-width: 1350px;
    /* border: solid 1px blue; */
    border-radius: 10px;
    gap: 5px;
    /* espaçamento moderno */
    /* padding: 10px; */
    /* margin: 20px auto; */
    background-color: #eeeeee;
    margin: 0;
    margin-bottom: 10px;
}

.item {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    border-radius: 10px;
    gap: 5px;
    padding: 10px;
    margin: 0;
    background-color: #fff;
    margin-bottom: 2%;
    box-shadow: 0 0 15px;
    /* background-color: rgb(210, 255, 210); */
    cursor: pointer;


}

/* Input de tarefa */
.tarefaInpu {
    display: flex;
    flex: 1 1 60%;
    /* border: solid 1px green; */
    min-height: 60px;
    padding: 30px;
}

.tarefaInpu input {
    flex: 1;
    min-height: 40px;
    color: black;
    font-weight: 300;
    width: 100%;
    font-size: 1.5rem;
    /* relativo */
    border: none;
    outline: none;
    padding: 20px;
}

/* Botão principal */
.botaoStart {
    display: flex;
    flex: 1 1 20%;
    /* border: solid 1px red; */
    min-height: 60px;
}

.botaoStart button {
    flex: 1;
    min-height: 40px;
    color: white;
    background-color: green;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}



/* Ícones e tarefas */
.icone {
    display: flex;
    flex: 1 1 5%;
    /* border: solid 1px green; */
    padding: 10px;
    justify-content: flex-start;
    align-items: center;
    font-size: 2rem;
}

.tarefa {
    display: flex;
    flex: 1 1 55%;
    /* border: solid 1px yellow; */
    gap: 10px;
    font-size: 30px;
    font-weight: bold;

}

.botao {
    display: flex;
    flex: 1 1 10%;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    height: 6rem;
    gap:0.5rem
    /* border: solid 1px yellowgreen; */
}

.espacoEditar {
    display: flex;
    flex: 1 1 10%;
    height: 6rem;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
    border-radius: 10px;
    gap: 10px;
    /* border: solid 1px orange; */

}

.espacoDeletar {
    display: flex;
    flex: 1 1 10%;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
    border-radius: 10px;
    gap: 10px;
    height: 6rem;
    /* border: solid 1px orange; */
}

.Deletar {
    display: flex;
    width: 100%;
    height: 6rem;
    /* border: solid 1px red; */
    gap: 10px;
    justify-content: center;
    align-items: center;
    background-color: red;
    border-radius: 10px;

}

.espacoEditar button {
    width: 100%;
    height: 6rem;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    border: none;
    background-color: red;
    cursor: pointer;
    border-radius: 10px;


}

.Editar {
    display: flex;
    width: 100%;
    height: 6rem;
    /* border: solid 1px red; */
    gap: 10px;
    justify-content: center;
    align-items: center;
    background-color: blue;
    border-radius: 10px;
    text-align: center;


}

.espacoDeletar  button {
    width: 100%;
    height: 6rem;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    border: none;
    background-color: blue;
    cursor: pointer;
    border-radius: 10px;


}

.icone.marcado {
    color: green;
    display: flex;
    flex: 1 1 10%;
    /* border: solid 1px green; */
    padding: 10px;
    justify-content: flex-start;
    align-items: center;
    font-size: 2rem;
}

.item.marcado {
    background-color: rgb(210, 255, 210);
    opacity: 0.5;


}

.item.marcado p {
    text-decoration: line-through;


}

/* Overlay cobrindo toda a tela */
#overlay {
  position: fixed;       /* fica por cima de tudo */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* fundo escuro com opacity */
  display: none;         /* começa invisível */
  justify-content: center;
  align-items: center;
  z-index: 1000;         /* garante que fica acima do resto */
}

/* Card de edição centralizado */
.card-edicao {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 350px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* sombra para destacar */
  animation: aparecer 0.3s ease;          /* efeito suave */
}

/* Animação de entrada */
@keyframes aparecer {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}




/* Responsividade */
@media (max-width: 768px) {

    /* Containers gerais */
    .conteiner1,
    .conteiner2,
    .conteiner3 {
        width: 100%;
        padding: 10px;
        flex-direction: column;
        gap: 15px;
    }

    /* Item da tarefa */
    .item,
    .item.marcado {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    /* Ícone e texto menores */
    .icone,
    .icone.marcado {
        flex: none;
        font-size: 1.5rem;
        padding: 5px;
    }

    .tarefa,
    .tarefaMarcado {
        flex: 1;
        font-size: 1.2rem;
        text-align: center;
    }

    /* Botões menores e em linha */
    .botao,
    .espacoEditar,
    .espacoDeletar {
        flex: none;
        width: 100%;
        height: auto;
        justify-content: center;
        gap: 8px;
    }

    .Editar,
    .Deletar,
    .espacoEditar button,
    .espacoDeletar button {
        width: 45%;
        height: 2.5rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    /* Input e botão start */
    .tarefaInpu {
        width: 100%;
        padding: 10px;
    }

    .tarefaInpu input {
        font-size: 1rem;
        padding: 10px;
    }

    .botaoStart {
        width: 100%;
    }

    .botaoStart button {
        height: 2.5rem;
        font-size: 0.9rem;
    }

    /* Card de edição */
    .card-edicao {
        width: 90%;
        padding: 20px;
        font-size: 0.9rem;
    }

    .card-edicao input {
        width: 100%;
        padding: 8px;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .card-edicao button {
        width: 45%;
        height: 2.5rem;
        font-size: 0.9rem;
        margin: 5px;
    }
}
