.tasks-container {
  width: min(100%, 760px);
}

#tasks-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  gap: clamp(1rem, 2vw, 2rem);
  border: 3px solid rgb(255, 255, 255);
  border-radius: 1rem;
}

.task {
  border: 1px solid rgb(112, 112, 112);
  border-radius: 2rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  background: #0f0f0f;
}

.task-complete {
  opacity: 0.85;
}

.task-complete .task-title {
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.task-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.input-completed {
  margin: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #fff;
  flex-shrink: 0;
}

.task-title {
  color: #fff;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-family: "roboto", sans-serif;
  font-weight: 700;
  padding-left: 0;
  text-align: left;
  line-height: 1.4;
}

.task-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.secondary-btn {
  font-family: "lato", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
  min-width: 100px;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.secondary-btn:hover {
  background-color: #dbdada;
  box-shadow: 0 5px 10px grey;
}

.secondary-btn:active {
  background-color: #b4b0b0;
}

/* this will work when there are no tasks */
#tasks-grid-container.no-tasks {
  font-family: "lato", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: #6c757d;
}

.task-due-date {
  color: #a5a0a0;
  font-family: "lato", sans-serif;
  font-size: 1.2rem;
}

/* this is the styles for edit mode */

.edit-title-input {
  height: 80px;
  max-height: 200px;
  resize: vertical;
  width: 100%;
  max-width: 24rem;
  padding: 0.3rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  font-family: "roboto", sans-serif;
}

.edit-date {
  color: #ccc;
  font-size: 1.2rem;
}

.edit-due-date-input {
  padding: 0.2rem 0.6rem;
  font-family: "lato", sans-serif;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .task-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .task-due-date {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  #tasks-grid-container {
    padding: 1rem;
  }

  .task {
    border-radius: 1.25rem;
    padding: 1rem;
  }

  .task-status {
    align-items: flex-start;
  }

  .secondary-btn {
    width: 100%;
  }
}

@media (max-width: 370px) {
  .task-counter {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  
}
