@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

:root {
  background-image: linear-gradient(90deg, #575656, #062e3f);
  --text: #219ebc;
  /* --text: #598392; */
  --purple: #062e3f;
}

body {
  background-color: var(--background-image);
  color: var(--text);
}
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 120px auto 0 auto;
  max-width: 600px;
}

.stats_container {
  padding: 30px;
  border-radius: 20px;
  border: 2px solid var(--purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
  margin-bottom: 60px;
}

h1 {
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid black;
  width: 0;
  animation: typing 1500ms steps(20, end) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 7ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.details {
  width: 100%;
}
#progressBar {
  width: 100%;
  height: 10px;
  background-color: var(--purple);
  border-radius: 10px;
  margin-top: 20px;
}

#progress {
  width: 50%;
  height: 100%;
  background-color: #598392;
  border-radius: 10px;
  transition: all 0.3s ease;
}

#numbers {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  background-color: var(--purple);
  font-size: 30px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date {
  margin-top: 10px;
}




form {
  margin-top: 5px;
  width: 100%;
  display: flex;
  gap: 10px;
}
input {
  flex: 1;
  padding: 12px;
  background-color: transparent;
  border: 2px solid var(--purple);
  border-radius: 10px;
  outline: none;
  font-size: 16px;
  color: var(--text);
}

#task_input::placeholder {
  transition: color 0.3s;
}

#task_input.updated::placeholder {
  color: #062e3f;
}

button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--purple);
  color: white;
  font-size: 30px;
  font-weight: bold;
  outline: none;
  padding-bottom: 5px;
}

#task_list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 30px auto;
  width: 100%;
  list-style: none;
}
.task {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.task p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskItem {
  display: flex;
  background-color: transparent;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--text);
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.task input {
  width: 14px;
  height: 14px;
}

.taskItem img {
  width: 24px;
  height: 24px;
  margin: 0 5px;
}

.icons {
  display: flex;
  flex-shrink: 0;
}

.done p {
  text-decoration: line-through;
  color: var(--purple);
}
