@import url('https://fonts.googleapis.com/css2?family=Asset&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Defining Customer Variables */
:root {
    /* Colors */
    --primary-color: hsl(98, 44%, 57%);
    --secondary-color: hsl(45, 100%, 50%);
    --info: #17a2b8;
    --dark-color: #252525;
    --white-color: #fff;
    --light-gray-color: hsl(0, 0%, 51%);
    --light-green-color:hsl(98, 39%, 75%);

    /* Site Max-Width */
    --site-max-width: 1300px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white-color);
   
    min-height: 150vh; 
   
}

/* Setting for the whole website */
a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.section-container {
    margin: 0 auto;
    max-width: var(--site-max-width);
    height: auto;
}

.btn-image {
    
    background-position: center;
    background-repeat: no-repeat;
}

.btn {
    padding: 10px 20px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    transition: box-shadow 0.3s ease; 

}


.input-container {
    display: flex;
    border: 1px solid ;
    border-radius: 5px;
    margin-bottom: 1rem;
    
}

.icon {
    background: var(--primary-color);
    color: white;
    padding: 10px;
    min-width: 50px;
    text-align: center;
    text-justify: auto;
    border-top-left-radius: 5px; 
    border-bottom-left-radius: 5px; /
}

.input-container input {
    padding: 10px; 
    border:none;
    border-radius: 5px;
    width: 100%;
}


/* Styling Navbar */

header {
    width: 100%;
    top: 0;
    left: 0;
    right: 0;

}






nav {
   
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--site-max-width);
    margin: 0 auto;
    background-color: var(--primary-color);

    z-index: 1000;
}

.navbar-logo{
    display: inline-flex;
    justify-content: center;
    align-content: center;
    gap: 15px;
}

.navbar-logo-img {
    margin-left:1rem ;
   
}

.navbar-logo-img img {
    max-width: 50px;
    min-height: 50px;
    padding: 2px;

}
.navbar-name{
    display: flex;
    text-align: center;
}

.navbar-name p{
    font-family: "Asset", serif;
    font-weight: 400;
    margin-top: auto;
    margin-bottom: auto;
}

nav button {
    background-color: var(--secondary-color);
    margin-right: 2rem;
    color: white;
   
}

nav button:hover {
    background-color: hsl(45, 100%, 40%);

}

/* Styling login form */


.modal {
     
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4); 
    padding-top: 60px;
}

.modal-content {
    display: flex;
    flex-direction: column;
    justify-items: center;
    width: 30%;
    height: 90%;
    background-color: var(--white-color);
    padding: 2.5rem;  
    border-radius: 15px;

}

.img-container{
    display: grid;
    width: 100%;
    justify-items: center;
    margin-bottom: 2rem;
}

.text-container{
    text-align: center;
    margin-bottom: 1rem;
}


.form-container{
    margin-bottom: 2rem;
}

.form-container label{
    color: var(--light-gray-color);
    font-size: small;    
}

.text-container span {
    color: var(--secondary-color);
}

.text-container h2 {
    color: var(--primary-color);
}

.login-newAccount{
    display: flex;
    flex-direction: column;
    text-align: center;
}

.login-newAccount button {
    padding: 10px;
    background-color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    border-radius: 5px;
    border: none;
}


.login-newAccount button:hover {
    background-color: var(--light-green-color);
    cursor: pointer;
}

.login-newAccount a:hover {
    color: var(--secondary-color);
}

#close-login {
    position: relative;
    left: 54%;
    top: -42px;
    color: #000;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}



/* Styling sign-up form */



.error-message {
    display: flex;
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    text-align: left; 
   
}

.img-business-man {
    max-width: 100%; 
    height: 90%; 
    display: block; 
}

#close-signup {

    position: relative;
    left: 54%;
    top: -42px;
    color: #000;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.create-newaccount {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
}


#create-newaccount-btn {
    background-color: var(--primary-color);
}

#cancel{
    background-color: rgba(253, 95, 95, 0.836);
}



/* Styling main section */

.heading-container{
    display: flex;
    padding-top: 5%;
    margin-left: 5%;
    margin-right: 5%;   
    gap: 3rem;

}

.img-heading {
    width: 90%;
}
.img-heading img {
    width: 100%;
}

.text-heading {
    display: flex;
    flex-direction: column;  
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: 50%;
    margin-top: 10rem;
}

.text-heading h1 {
    margin-bottom: 1rem;
    font-size: xx-large;
}


.text-heading p {
    margin-bottom: 2rem;
    
}


.text-heading  button {
    background-color: var(--primary-color);
}


.text-heading button:hover {
    background-color: var(--light-green-color);
}


/* calculator */


.calculator {
    padding: 3rem;
    display: flex;
    justify-content: center;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 10rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.user-input {
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    
}

.user-input p {
    margin-bottom: 2rem;
    text-align: center;
    font-size: x-large;
    color: navy;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.user-input label {
    font-size: small;
    color: gray;

}

.calculator-output{
    width: 50%;
    padding: 3rem;
}


#calculate-btn {
    background-color: var(--primary-color);
    width: 100%;
  
}


#calculate-btn:hover {
    background-color: var(--light-green-color);
}

.calculator-output{
    display: flex;
    flex-direction: column;
    text-align: center;
}

.calculator-output p {
    font-size: xx-large;
    color: navy;
    font-weight: 600;
}

#target-amount-output {
    text-justify: distribute;
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin-top: 5%;
    width: 100%; 
    height: 100%; 
    font-size: 50px;
    font-weight: 600;
}

.text-output {
    display: none;
}

.output-img {
    width: 100%;
    height: auto; 
    overflow: hidden;
}

.output-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.img-container {
    margin-bottom: 1rem; 
}



.contact-info {

    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to bottom right, var(--primary-color), var(--light-green-color));
    padding: 1rem;

}

.contact-info h3 {
    margin-top: 0;
    color: #333;
    margin-right: 1rem;
    

}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    
    
}


.message{
    z-index: 99;
    margin-bottom: 0.25rem;
    text-align: center;
    font-weight: 500;
    color: red;
    font-size: 11px;
    margin-left: 10px;
}


footer {
    
    z-index: 1;
    bottom: 0;
    width: 100%;

 }

.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
  }
  
  @-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)} 
    to {-webkit-transform: scale(1)}
  }
    
  @keyframes animatezoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}
    

@media screen and (max-width:1000px) {
    .img-container img {
        width: 90%;
        height:90%;
    }

    .heading-container{
        display: block;
        margin-top: 2rem;
    }

    .text-heading {
        margin: 0;
        margin-bottom: 2rem;
    }

    .text-heading {
        margin-top: 2rem;
    }

    .calculator {
        display: block;
    } 

    .user-input {
        width: 100%;
    }

    .calculator-output {
        width: 100%;
    }

    .output-img img {
        width: 80%;
    }

    .modal-content {
        width: 70%;
    }
}



