*{
    box-sizing: border-box;
}
body{
    background-color: #f2f9ed;
    font-family: 'Poppins',sans-serif;
      
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    
}
main{
    padding: 20px 30px;
}
.title{
    color: #47a200;
    font-size: 50px;
    text-align: center;
}
.title span{
    color: #61481c ;
}
.card{
    background-color: #fbfbfb;
    margin: 0 auto;
    max-width: 700px;
    border-radius: 10px;
    padding: 15px 40px;
    box-shadow: 0 0 8px 0px rgba(0,0,0,0.1);
}
.sub-title{
    display: flex;
    align-items: center;
    gap:15px;
}
.sun-wrapper{
    position: relative;
    width: 50px;
    height: 50px;
    animation: rotateSun 5s linear infinite;
     pointer-events: none;
    user-select: none; 
}
.sun{
    width: 100%;
    height: 100%;
    display: block;
     /* pointer-events: none;
    user-select: none;  */
}
.smile{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    transform: translate(-50%, -50%);
    /* pointer-events: none;
    user-select: none;  */
    animation: counterRotate 5s linear infinite;
}
@keyframes rotateSun{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
@keyframes counterRotate{
    0%{
        transform: translate(-50%, -50%) rotate(0deg);
    }
     100%{
            transform: translate(-50%, -50%) rotate(-360deg);
        }
}
.progress-label{
    font-size: 14px;
    color: #858585;
    font-weight: 400;
}
.progress-bar{
    height: 30px;
    background-color: rgba(72, 163, 0, 0.1);
    border-radius: 15px;
    margin-bottom: 30px;
}
.progress-value{
    height:100%;
    border-radius: 15px;
    background-color: #47a200;
    width: 0;
    font-size: 10px;
    font-weight: 500;
    color: #eeffe0;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: width 1.5 ease-in-out;
}
.progress-value span{
    padding-left: 20px;
    min-width: max-content;
}
.error-label{
    color: #ff5151;
    margin-top: 0px;
    display: none ;
    font-weight: 400;
    font-size: 14px;
}
.show-error .error-label{
    display: block;
}
.goal{
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 17px;
    display: flex;
    height: 75px;
    padding: 0 22px;
    align-items: center;
    margin-bottom: 30px;
    background-color: #fff;
}
.custom-checkbox{
    height: 24px;
    width: 24px;
    border: 2px solid rgba(97, 72, 28, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.goal-input{
    padding-left: 20px;
    font-family: inherit;
    font-size: 16px;
    border: none;
    width: 100%;
    align-self: stretch;
}
.goal-input::placeholder{
    color: rgb(155,137,104);
}
.button{
    display: flex;
    align-items: center;
    justify-content: center;
}
button {
  background-color:  #47a200; /* Green */
  border: none;
  border-radius: 26px;
  color: #fff;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-bottom: 10px;
}
footer{
    display: flex;
    flex-direction: column;
    margin-block: 5px;
}
.quote, .made-by{
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    
}
.made-by{
    font-size: 13px;
   
}
.completed .custom-checkbox{
    background-color: #47a200;
    border-color: #47a200;
}
.completed .check-in{
   display: block;
}
.completed .goal-input{
     color: #47a200;
    text-decoration-line: line-through;
}
/* Mobile Design */
@media (max-width:600px){
    .title{
        font-size: 32px;
    }
    .card{
        padding: 16px 24px;
    }
    .goal{
        height: 54px;
        margin-bottom: 24px;
    }
    .custom-checkbox{
        height: 20px;
        width: 20px;
    }
    .button button{
        padding: 15px 25px; 
    }
}

