* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  outline: none;
}
ul {
  list-style: none;
}
img {
  height: 25px;
  opacity: 0;
}
.tudo {
  background-color: #d1d1d1;
  width: 500px;
  border-radius: 10px;
  padding: 20px;
  margin: 100px auto 0;
}
nav ul{
    display: flex;
    gap: 80px;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
nav a{
    list-style: none;
    color: black;
    text-decoration: none;

}
#escuro{
    border: none;
    background-color: white;
}
nav a:hover{
    color: gray;
    transition: 0.5s ease-in-out;
}
nav button:hover{
    color: gray;
    transition: 0.5s ease-in-out;
}
body {
  background: #fff;
  color: #000;
  transition: background 0.3s, color 0.3s;
}

body.escuro {
  /* Modo Escuro*/
  background: #121212;
  color: #fff;
}

body.escuro #nav,
body.escuro #btn,
body.escuro #inp {
  background: #1e1e1e;
  color: #fff;
} /* fim da config modo escuro*/

.input {
  border: none;
  border-radius: 5px;
  width: 300px;
  height: 40px;
  padding-left: 10px;
}
.button {
  border: 0;
  border-radius: 5px;
  height: 40px;
  color: #fff;
  font-size: 17px;
  padding: 0 15px;
  float: right;
  cursor: pointer;
  background-color: #003329;
  font-weight: 700;
}
.button:hover {
  opacity: 0.8;
  transition: 0.5s;
}
.button:active {
  opacity: 0.6;
}
.lista {
  width: 100%;
  margin-top: 30px;
}
.tarefa {
  background-color: #f2f2f2;
  box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.2);
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.tarefa:hover img {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
#paragrafo {
  margin-top: 20px;
  text-align: center;
}

/*Testando novo codigo*/

/* Modal (fundo escuro) */
.modal {
  display: none; /* começa escondido */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* fundo escuro semi-transparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* fica acima de tudo */
}

/* Conteúdo do modal */
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
}

/* Botão de fechar */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}
