body {
  display: grid;
  place-items: center;
  min-height: 10%;
  margin: 0;
  font-family: 'Jetbrains Mono', monospace;
  background-color: #282828;
  color: #fbf1c7;
  padding: 1rem;
  box-sizing: border-box;
}

h1 {
  color: #fb4934;
}
.todo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background-color: #3c3836;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  gap: 1rem;
  box-sizing: border-box;
}

#title {
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #b8bb26;
  border-radius: 5px;
  resize: none;
  background-color: #ebdbb2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#save {
  font-size: 1rem;
  font-family: 'Jetbrains Mono';
  padding: 0.5rem 1rem;
  color: #fbf1c7;
  background-color: #504945;
  border: 2px solid #fabd2f;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  width: 100%;
  max-width: 200px;
}

#save:hover,
#save:focus {
  background-color: #fb4934;
  transform: scale(1.05);
}

#task-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  width: 100%;
}

.task-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #504945;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  font-size: 1rem;
  color: #fbf1c7;
  word-break: break-word;
  cursor: pointer;
}


.task-card.done {
  text-decoration: line-through;
  color: #b8bb26;
}


.task-card:hover {
  text-decoration: line-through;
  border: solid;
}

.delImg {
  cursor: pointer;
  height: 20px;
  width: 20px;
  flex-shrink: 0;
}


.delImg:hover {
  transform: scale(1.2);
}

/* 📱 Media query для мобилок */
@media (max-width: 480px) {
  .todo-container {
    padding: 1rem;
  }
}