* {
  box-sizing: border-box;
}
body {
  background-color: #48a30012;
  font-family: "Poppins", sans-serif;
}

main {
  margin: 0 16px 32px;
}
.top-motivation {
  color: #61481c;
  font-size: 64px;
  text-align: center;
}
.top-motivation span {
  color: #48a300;
}

.app-container {
  background-color: #fbfbfb;
  max-width: 660px;
  margin-inline: auto;
  padding: 32px 48px;
  border-radius: 15px;
  box-shadow: 0 0 8px 0 rgb(0, 0, 0, 0.1);
}

#sun-icon {
  vertical-align: middle;
  margin-left: 12px;
}

.progress-label {
  color: #858585;
  font-size: 14px;
  margin-bottom: 20px;
}

.progress-bar {
  height: 30px;
  background-color: #48a3001a;
  border-radius: 15px;
  margin-bottom: 42px;
}

.progress-amount {
  height: 100%;
  width: 0%;
  background-color: #48a300;
  border-radius: 15px;
  color: #eeffe0;
  font-size: 10px;
  font-weight: 500;
  font-style: normal;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: width 0.25s ease-in-out;
  /* padding-left: 20px; */
}

.progress-amount span {
  padding-left: 20px;
  min-width: max-content;
}

.error-label {
  color: #ff5151;
  font-size: 14px;
  font-weight: 400;
  margin-top: 10px;
  display: none;
}

.show-error .error-label {
  display: block;
}

.goals-container {
  /* max-width: 570px; */
  height: 82px;
  border: solid 1px #0000001a;
  border-radius: 17px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 22px;
  margin-bottom: 42px;
}

.circle-checkbox {
  height: 24px;
  width: 24px;
  border: solid 2px #61481c4d;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tick-icon {
  display: none;
}

.goals-container-input {
  padding-left: 20px; /*margin-left: 20px can also be used*/
  border: none;
  outline: none;
  font-family: inherit;
  vertical-align: middle;
  font-weight: 500;
  font-size: 16px;
  color: #000000;
  width: 100%;
  align-self: stretch;
}

.goals-container-input::placeholder {
  color: #d9d9d9;
}

.bottom-motivation {
  font-size: 16px;
  color: #000000;
  font-weight: 500;
  text-align: center;
}

.credits {
  font-size: 10px;
  text-align: center;
  color: #858585;
  vertical-align: middle;
  font-weight: 500;
  margin-top: 66px;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

/* Hover effect */
.credits:hover {
  color: #4cafef; /* Change text color */
  transform: scale(1.05); /* Slight zoom effect */
}

/* Emoji bounce on hover */
.credits:hover::after {
  content: " ✨";
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Configuration for JavaScript */

.completed .circle-checkbox {
  /* completed -> circle-checkbox */
  background-color: #48a300;
  border: 2px solid #48a300;
}

.completed .goals-container-input {
  text-decoration: line-through;
  color: #48a300;
}

.completed .tick-icon {
  display: block;
}

/* For Responsiveness */

@media (max-width: 768px) {
  .top-motivation {
    font-size: 32px;
  }
  .app-container {
    padding: 16px 32px;
  }
  .goals-container {
    height: 64px;
    margin-bottom: 24px;
    border-radius: 12px;
  }
  .circle-checkbox {
    height: 20px;
    width: 20px;
  }
  .credits {
    margin-top: 32px;
  }
  .progress-bar {
    height: 30px;
  }
}
