*{
    box-sizing: border-box;
}

body{
    background-color:#48A30012;
    font-family: 'poppins',sans-serif;
    margin: 0;
    
}

main{
    padding: 0 16px 32px;
}

.heading{
    color: #48A300;
    text-align: center;
    font-size: 64px;
    margin-block: 8px 28px;
}

.heading span{
    color: #61481C;
}

.main-container{
    max-width: 660px;
    background-color: #FBFBFB;
    border-radius: 15px;
    margin-inline: auto; 

    padding: 32px 48px;
    box-shadow: 2px 3px 5px 2px rgb(120, 120, 117);

}

.title{
    font-size: 32px;
}

.img-spn{
    position: relative;
    /* to overlap two imgs */
}

.sun-icon{
    vertical-align:middle;
    margin-left: 16px;
    
    position: absolute;

    animation: spin 8s linear infinite;
}

@keyframes spin {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}

.sun-face{
    position:absolute;
    top: 19px;
    left: 35.2px;

    z-index: 1;  /* to overlap above give highr z-indx. */
}

.progress-label{
    font-size: 14px;
    color: #858585;
    margin-bottom: 20px;
}

.progress-bar{
    height: 30px;
    background-color: #48A3001A;
    border-radius: 15px;

    margin-bottom: 12px;  
}

.progress-amount{
    height: 100%;
    background-color:#48A300;
    border-radius: 15px;

    font-size: 10px;
    font-weight: 500;
    color: #EEFFE0;
    width: 0%;
    display: flex;
    align-items: center;
    overflow: hidden;
    
    transition: width 2s ease-out;
    white-space: nowrap;

}

.progress-amount span{
    padding-left:10px;

}


.error-label{
    font-size: 14px;
    color: #FF5151;
    margin-bottom: 14px; /* margin-block means margin top and bottom both. */
    opacity: 0;
    transition: opacity 1s ease-in;
    
}

.show-error{
    opacity: 1;
}

.goal-container{
    height: 82px;
    border: 1px solid #0000001A;
    border-radius: 17px;
    background-color: #fff;

    display: flex;
    align-items: center;
    padding: 0 22px;

    margin-bottom: 42px;
}

.custom-checkbox{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #61481C4D;
    cursor: pointer;
    font-weight: 500;
    flex-shrink: 0;
    /* to ensure the circle doesn't shrink on small screen*/
    

    /* for alignment of tick img inside ckbox.  */ 
    display: flex; 
    justify-content: center;
    align-items: center;

}

.check-icon{
    display: none;
}

.completed .check-icon{
    display: block;
}

.completed .custom-checkbox{
    background-color: #48A300;
    border-color: #48A300;
}

.completed .goal-input{
    color: #48A300;
    text-decoration: line-through;
    
}


.goal-input{
    border: none;
    outline: none;
    /* margin-left: 22px; // this made i/p not start imedt aftr ckbox */

    padding-left: 22px; /* to ensure i/p field target just after the chkbox. */
    
    align-self: stretch;
    
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    width: 100%;

}

.goal-input::placeholder{
    color: #D9D9D9;

}

.quote{
    font-size: 16px;
    font-weight: 500;
    text-align: center;   
    margin-bottom: 66px;
}

.made-by{
    font-size: 10px;
    color:#858585;
    font-weight: 500;
    text-align: center;   
    
}

@media (max-width:768px) {
    .heading{
        font-size: 32px;
    }
    .title{
        font-size: 25px;
    }
    .main-container{
        padding: 16px 32px;
    }
    .goal-container{
        height: 64px;
        margin-bottom: 24px;
        border-radius: 10px;
    }
    .custom-checkbox{
        width: 20px;
        height: 20px;
    }
    .quote{
        margin-bottom: 32px;
    }
    .progress-bar{
        height: 25px;
        margin-bottom: 10px;
    }
 
    .error-label{
        margin-bottom: 12px;
    }

}
