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

:root {
  font-size: 62.5%;

  --default-width: 31.3rem;
  --bg: linear-gradient(#8ec5fc, #e0c3fc);
  --border-color: #b7b7b7;
  --input-color: #1e80f4;
}

/* BODY */
body {
  font-size: 1.6rem;
  line-height: 1.5em;
  font-family: 'Poppins', sans-serif;

  background-image: var(--bg);
  padding-inline: 1rem;
  min-height: 100vh;
}

/* RESET TAGS */
button {
  border: none;
  /* background: none; */
  padding: 1rem;
}

/* HEADER */
h1 {
  text-align: center;
  margin: 5rem 0 3rem 0;
}

/* MAIN */

main {
  background: rgba(255, 255, 255, 0.5);
  max-width: 33.6rem;
  margin: 1rem auto;
  padding: 3rem 1.3rem;

  border-radius: 1rem;
}

form {
  margin-bottom: 3rem;
}

form p {
  display: grid;
  gap: 1rem;
}

form label {
  font-weight: 500;
}

form input {
  height: 4.1rem;
  border-radius: 0.5rem;
  border: none;
}

form input:nth-of-type(1) {
  border: 1px solid var(--border-color);
  padding-inline: 1.5rem;
}

form input:nth-of-type(1):focus {
  outline: 1px solid var(--border-color);
}

form input:nth-of-type(2) {
  background-color: var(--input-color);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
form input:nth-of-type(2):hover {
  background: #569ef1;
}

section div {
  background: #fff;
  padding-inline: 2.5rem;
  margin-block: 1rem;
  padding-block: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);

  display: flex;
  align-items: center;
  justify-content: space-between;
}

section p {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;

  background: #ffffff;
  border-left: 4px solid #1e80f4;
  border-radius: 3px;

  margin-top: 15px;
  padding: 10px;
}

section p:first-child {
  margin-top: 0;
}

section p:hover {
  border-color: #10b981;
}

section span {
  flex: 1 1 100%;
  word-break: break-word;
}

section i,
.check {
  font-size: 1.2em;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 1 30px;

  padding: 3px;
  border: 1px solid #444;
  border-radius: 5px;

  cursor: pointer;
}

.edit_task {
  color: #444444;
}

.remove {
  color: #ff0000;
  border-color: #ff0000;
}

.check {
  background: none;
  opacity: 0.3;
}

.check.checked {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  opacity: 1;
}

.delete-message {
  max-width: 33.6rem;
  width: 100%;
  position: fixed;
  top: -500px;
  left: 50%;
  transform: translateX(-50%);

  background: #10b981;
  color: #fff;
  border-radius: 10px;

  overflow: hidden;
  transition: top 0.8s ease-in-out;
}

.delete-message p {
  padding: 10px;
}

progress {
  position: absolute;
  bottom: 0;
  width: 100%;
}

progress[value] {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(0, 0, 0, 0);
  border: none;
  border-radius: 5px;
  height: 6px;
}

progress[value]::-webkit-progress-bar {
  background-color: rgba(0, 0, 0, 0);
  /* border-radius: 5px; */
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

progress[value]::-webkit-progress-value {
  background-color: #14532d;
  border-bottom-left-radius: 5px;
}

footer ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  margin-top: 7rem;
}

footer a {
  font-size: 1.5em;
  color: #171717;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--input-color);
}
