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

body {
  height: 100%;
  width: 100%;
  background-color: #1985c933;
  font-family: "Poppins", sans-serif;
}

main {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-block: 2rem;
}

main h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

h1 span {
  color: dodgerblue;
}

.container {
  background-color: #f7f7f7;
  padding-inline: 2rem;
  padding-block: 1.5rem;
  width: 600px;
  border-radius: 10px;
}

.title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.title .img {
  position: relative;
}

.title .sun-icon {
  height: 35px;
  animation: animate 3s linear infinite;
}

.title .group-icon {
  position: absolute;
  top: 36%;
  left: 36%;
  height: 9px;
}

.progress-bar p {
  font-size: 12px;
  color: #858585;
}

.progress-bar .progress {
  height: 25px;
  width: 100%;
  background-color: #46a2ee3b;
  border-radius: 30px;
  margin: 15px 0;
}

.progress .progress-update {
  position: relative;
  padding: .2rem 0;
  width: 0%;
  height: inherit;
  background-color: dodgerblue;
  border-radius: 30px;
  transition: all 0.2s ease-in-out;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
}

.error-para {
  font-size: 12px;
  color: red;
  margin-block: 1rem;
  visibility: hidden;
}

.show-error-para {
  visibility: visible;
}

.goals-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.goals-section .goal {
  height: 75px;
  border: 2px solid #e2e2e2b0;
  background-color: #ffffff;
  border-radius: 12px;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.goal .circle {
  height: 25px;
  width: 25px;
  border: 2px solid #bebcbc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.complete .circle{
  background-color: dodgerblue;
}

.goal .circle i{
  font-weight: 900;
  color: white;
  cursor: pointer;
}

.goal input {
  font-size: 20px;
  font-weight: 500;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #D9D9D9;
  outline: none;
}

.complete.goal input{
  text-decoration-line: line-through;
  text-decoration-color: dodgerblue;
  color: dodgerblue;
}

.goal input::placeholder {
  color: #D9D9D9;
}

.footer-para {
  text-align: center;
  margin-block: 2rem;
  font-weight: 700;
}

@media (max-width:668px) {
  main h1 {
    font-size: 2rem;
  }

  .container {
    width: 400px;
    padding: 1.5rem;
  }

  .title {
    gap: 10px;
  }

  .title h2 {
    font-size: 1.2rem;
  }

  .title .sun-icon {
    height: 25px;
  }
  .title .group-icon {
    height: 6px;
  }

  .progress-bar .progress {
    height: 20px;
    margin: 10px 0;
  }

  .progress .progress-update {
    font-size: 10px;
  }

  .error-para {
    margin-block: .5rem;
  }

  .goals-section .goal {
    height: 50px;
  }

  .goal .circle {
    height: 15px;
    width: 15px;
    padding: 2px;
  }

  .goal .circle i{
    font-size: 10px;
  }

  .goal input {
    font-size: 15px;
    font-weight: 500;
  }
}

@media (max-width:468px) {
  main h1 {
    font-size: 1.7rem;
  }

  .container {
    width: 300px;
  }

  .title h2 {
    font-size: 1rem;
  }

  .progress-bar p {
    font-size: 10px;
  }

  .progress-bar .progress {
    height: 13px;
  }

  .error-para {
    font-size: 10px;
  }
}

@keyframes animate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}