* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 62.5%;
}

body {
  font-weight: 400;
  font-family: "DM Sans", sans-serif;
  color: #333;
  overflow-x: hidden;
  height: 100vh;
  font-size: 1.6rem;
  font-weight: 500;
  overscroll-behavior-block: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

input:focus,
input:focus-visible,
input:active {
  outline: none;
  box-shadow: none;
  border: none;
}

button,
[type="button"],
[type="submit"],
[type="reset"] {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app {
  margin: 0rem 0;
}

.container {
  margin: 16rem auto;
  padding: 6.4rem;
  max-width: 60rem;
  border: 1px solid #333;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 100%;
}

.input-text-container {
  display: block;
  width: 100%;
  border: 2.5px solid #333;
  border-radius: 6px;
  overflow: hidden;
  font-family: "DM sans";
  display: flex;
}

.input-text {
  display: block;
  width: 100%;
  padding: 1rem;
  border: none;
  font-family: "DM Sans";
  overflow: none;
}

.btn--add {
  margin-right: 0.5rem;
  margin-left: auto;
  padding: 0 1.2rem;
  align-self: center;
  height: auto;
  border-radius: 4px;
  background-color: #333;
  color: white;
}

.input-text:focus {
  box-shadow: none;
  border: none;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.task {
  display: flex;
  justify-content: flex-start;
  gap: 0.8rem;
  align-items: center;
}

input[type="checkbox"] {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid #333;
  border-radius: 2px;
}

input[type="checkbox"]:checked {
  background-color: #777;
  border-color: #777;
}

h1 {
  font-size: 2.4rem;
  font-weight: 500;
}

.btn--delete {
  margin-left: auto;
  border: none;
  display: flex;
  align-items: center;
}

.icon {
  height: 1.8rem;
  width: 1.8rem;
  margin-right: 0.5rem;
}

.marked {
  text-decoration-line: line-through;
  color: #999;
}

.stats {
  margin-bottom: 3rem;
}
