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

body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  background-color: #fff7f7;
}

.container {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 20px;
}

.add-task-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.task-add {
  flex: 1;
  padding: 10px;
  border: 1px solid #ff4d4d;
  border-radius: 8px;
  font-size: 1em;
}

.button-add {
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
}

.button-add:hover {
  background-color: #ff3333;
}

.task-list {
  list-style: none;
  padding: 0;
}

.task-list li {
  display: flex;
  justify-content: space-between; /* Espacement entre le texte et le bouton */
  align-items: center; /* Aligner verticalement */
  background: #f9f9f9;
  color: #333;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ff4d4d;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}

.delete-button {
  background-color: #ffffff;
  border: 1px solid #ff3333;
  border-radius: 5px;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 0.9em;
  margin-left: 10px;
}

.delete-button:hover {
  background-color: #f35b5b;
}