@font-face {
  font-family: "Pretendard Variable";
  src: url("asset/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

body {
  justify-content: center;
  font-family: "Pretendard Variable", sans-serif;
  font-weight: 400;
  background-color: #ffd7e9;
  color: #202020;
}

.container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  font-size: large;
  transition: margin-left 0.3s;
}

.date {
  justify-content: center;
}

.count {
  text-align: center;
  font-weight: 300;
  font-size: medium;
}

.todo-block {
  flex: 1;
  width: 100%;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  margin-bottom: 60px;
}

.date {
  display: flex;
}

.date button {
  background-color: transparent;
  border: 0;
  outline: none;
}

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

.todo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.todo-list li .complete-btn {
  order: -1;
  border: none;
  width: 20px;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
}

.todo-list li.completed .complete-btn {
  background-color: #eb89b5;
}

.todo-list li.completed .todo-text {
  text-decoration: line-through;
  opacity: 0.6;
}

.todo-list li.completed .complete-btn::after {
  content: "✔";
  color: #fffef1;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.todo-list li .delete-btn {
  display: none;
  margin-left: auto;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.todo-list li:hover .delete-btn {
  display: inline-block;
}

.todo-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fffef1;
  position: fixed;
  bottom: 10px;
  padding-top: 4px;
  height: 40px;
  width: calc(90vw - 100px);
  border-radius: 30px;
}

#todo-input {
  background-color: transparent;
  height: 32px;
  font-size: 15px;
  border: 0;
  outline: none;
}

#add-btn {
  background-color: transparent;
  border: 0;
  outline: none;
}

#add-btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

#add-btn:hover {
  transform: scale(1.05);
}

#add-btn:active {
  transform: scale(0.9);
}
