body {
  background-color: rgb(10, 20, 30);
  color: rgb(225, 225, 225);
  font-family: "Outfit", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
}

h1 {
  font-size: 3rem;
  letter-spacing: 0.1em;
  line-height: 1;
  font-weight: bold;
  margin-bottom: 36px;
}

.new-task {
  width: min(85vw, 600px);
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 20px;
}

.task {
  flex-grow: 1;
  font-size: 1.25rem;
  border: none;
  border-radius: 12px;
  padding: 6px 12px;
  font-weight: bold;
  color: rgb(30, 30, 30);
}

::placeholder {
  opacity: 0.5;
}

.task:focus {
  outline: none;
}

button {
  background: none;
  border: none;
  border-radius: 10px;
  color: white;
}

button:hover {
  background-color: rgb(60, 60, 60);
}

.add {
  flex-shrink: 0;
  width: 40px;
  font-size: 1.5rem;
  border-radius: 12px;
}

.all-tasks {
  width: min(90vw, 800px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.task-container,
.no-task-label {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  min-height: 40px;
  border-radius: 10px;
  padding: 10px;
  align-items: center;
}

.no-task-label {
  background-color: rgb(50, 50, 50);
  color: rgb(80, 80, 80);
  font-weight: bold;
  justify-content: center;
  font-size: 1.25rem;
}

.task-description {
  min-width: 0;
  flex-grow: 1;
  height: auto;
  font-size: 1.25rem;
  overflow: visible;
  overflow-wrap: break-word;
  outline: none;
  border-bottom: 2px solid transparent;
  padding: 2px 4px;
  transition: all 0.2s ease;
}

.task-description:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.task-description:focus {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.02);
}

.task-container.done .task-description {
  color: rgb(100, 100, 100);
  text-decoration: line-through;
}

.task-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-right: 10px;
}

.checkbox:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.05);
}

.task-container.done .checkbox {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: transparent;
}

.task-container.done .checkbox svg {
  display: block;
}

.checkbox svg {
  width: 14px;
  height: 14px;
  display: none;
  color: rgb(200, 200, 200);
}

.remove-btn {
  opacity: 0.4;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.remove-btn:hover {
  opacity: 0.8;
  background-color: rgba(255, 0, 0, 0.1);
}

.remove-btn svg {
  width: 18px;
  height: 18px;
  color: rgb(200, 200, 200);
}

.task-container:nth-child(odd) {
  background-color: rgb(50, 50, 50);
}

.task-container:nth-child(even) {
  background-color: rgb(40, 40, 40);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.75rem;
  }

  .task {
    min-width: 200px;
    font-size: 1.15rem;
  }

  .task-description {
    width: 250px;
  }

  .task-actions {
    gap: 3px;
  }

  .add {
    width: 35px;
    font-size: 1.4rem;
  }

  .mark-done,
  .remove {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }

  .task {
    min-width: 150px;
    font-size: 1rem;
  }

  .task-description {
    width: 200px;
  }

  .task-actions {
    gap: 2px;
  }

  .add {
    width: 30px;
    font-size: 1.2rem;
  }

  .mark-done,
  .remove {
    font-size: 1rem;
  }
}
