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

/* background-image: linear-gradient(to right, #eaee44, #33d0ff);*/

html {
  font-family: "Montserrat", sans-serif;
  font-family: "Open Sans", sans-serif;
}
:root {
  --main-blue: #3ca6db;
  --light-blue: #9cdaf8;
  --pink: #f758d4;
  --grey: rgb(236, 236, 236);
  --dark-grey: rgb(87, 83, 83);
  --green: #d6fdee;
  --dark-green: #47d1aa;
}

/*  --- wrapper --- */
.wrapper {
  max-width: 750px;
  width: 100%;
  min-height: 80vh;
  height: 100%;
  margin: 5rem auto;
  position: relative;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  padding-bottom: 3rem;
}

body::before {
  content: "";
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: #9cdaf8;
  background-image: linear-gradient(315deg, #9cdaf8 0%, #98fcbd 74%);
  top: 0;
  left: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center;
}

/*  --- input form --- */
#input-form {
  width: 80%;
  margin: 0 auto;
  padding-top: 2rem;
}

.add-task {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

h1 {
  margin-top: 1rem;
  margin-bottom: 2.75rem;
  font-size: 2rem;
  text-transform: capitalize;
  color: var(--dark-grey);
}
#input {
  max-width: 30rem;
  height: 2.75rem;
  width: 100%;
  border: rgb(204, 203, 203) 1px solid;
  border-radius: 5px;
  padding: 0 1rem;
  font-size: 1rem;
}

/*  --- buttons --- */

.main-btns {
  margin-top: 1rem;
  width: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.75rem;
}

.main-btns button {
  height: 2.5rem;
  /* max-width: 10rem; */
  width: 100%;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

#add {
  background: var(--main-blue);
}

#add:hover {
  cursor: pointer;
  background-color: var(--light-blue);
  transition: background-color 0.5s;
}

#clear-all {
  background-color: var(--pink);
}

#clear-all:hover {
  cursor: pointer;
  background-color: #ffa7e2;
  transition: background-color 0.5s;
}
/*  --- main list --- */

#main-list {
  width: 90%;
  font-size: larger;
  margin: 0 auto;
  padding-top: 1.5rem;
}

/*  --- task to do --- */
ul {
  list-style: none;
  width: 100%;
  margin: 0 auto;
  max-width: 950px;
}

.list-item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  position: relative;
}

p {
  max-width: 30rem;
  width: 100%;
  background-color: var(--grey);
  border-left: var(--dark-grey) 3px solid;
  line-height: 2.75rem;
  padding-left: 1rem;
  vertical-align: middle;
  margin-left: 6.25rem;
}

.completed,
.remove {
  font-size: 1.75rem;
  width: 4rem;
  height: 3rem;
}
.completed {
  color: var(--dark-grey);
  margin-left: 1rem;
}

.remove {
  color: rgb(70, 70, 70);
}
.remove:hover {
  color: rgb(163, 159, 159);
  transition: color 0.5s;
}
ul i {
  display: block;
  cursor: pointer;
  position: absolute;
  top: 25%;
}

.relax-banner {
  height: 25vh;
  max-width: 35vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  color: var(--dark-grey);
  text-align: center;
}

.fa-couch {
  font-size: 3.5rem;
  display: block;
  margin-top: 1.5rem;
  color: var(--dark-grey);
}

/*  --- progress bar --- */

.progress {
  background-color: #d8d8d8;
  border-radius: 20px;
  height: 30px;
  width: 30rem;
  margin: 0 auto;
}

.progress-done {
  border-radius: 20px;
  background-color: #7cffcb;
  background-image: linear-gradient(315deg, #7cffcb 0%, #74f2ce 74%);
  box-shadow: 0 3px 3px -5px #7cffcb, 0 2px 5px #74f2ce;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 0;
  opacity: 0;
  transition: 0.5s ease;
  color: grey;
  font-weight: 500;
}

@media only screen and (max-device-width: 600px) {
  .wrapper {
    max-width: 550px;
    min-height: 85vh;
    border-radius: 0;
  }

  #input-form {
    width: 95%;
  }

  h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
  }

  .add-task {
    padding: 1rem;
  }

  #input {
    max-width: 95%;
    height: 3rem;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .main-btns {
    width: 95%;
  }

  .main-btns button {
    height: 3rem;
    font-size: 1rem;
  }

  .progress {
    height: 1.75rem;
    width: 85%;
    font-size: 1.25rem;
    margin-top: 0.5rem;
  }

  #main-list {
    margin: 0 auto;
    padding-top: 1rem;
  }
  .list-item {
    margin-top: 1rem;
  }
  p {
    line-height: 3rem;
    padding-left: 1rem;
    font-size: 1rem;
    margin-left: 1rem;
  }
  .completed,
  .remove {
    font-size: 1.75rem;
    margin-left: 1rem;
  }
  .relax-banner {
    max-width: 95vw;
    font-size: 1.25rem;
    margin: 0 auto;
    justify-content: center;
  }
  .fa-couch {
    font-size: 3rem;
  }
}
