/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: linear-gradient(to right, #3b82f6, #4f46e5);
    color: #fff;
    text-align: center;
    padding: 40px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgzMCkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSI+PC9yZWN0PjwvcGF0dGVybj48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSI+PC9yZWN0Pjwvc3ZnPg==');
    opacity: 0.2;
    z-index: 1;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    /*margin: 0;*/
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

/* Ad Containers */
/*.ad-container {*/
/*    max-width: 330px;*/
/*    height: 70px;*/
/*    margin: 20px auto;*/
/*    overflow: hidden;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    background: rgba(255, 255, 255, 0.1);*/
/*    border-radius: 8px;*/
/*    padding: 10px;*/
/*}*/

.header-ad {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.footer-ad {
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #1f2937;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #4f46e5);
}

footer p {
    margin: 0;
    font-size: 0.95rem;
    color: #e5e7eb;
}


.main{
    width: 100%;
    min-height: calc( 100vh - 80px );
    background-color:  rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}
.style1{
    max-width: 500px;
    width: 90%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    gap: 30px;
}
.style2{
    max-width: 500px;
    width: 90%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
  
    
    
}
#loading{
    filter: drop-shadow(2px 2px 10px black);
    display: none;
}
.image{
    width: 300px;
    height: 300px;
    background-image: url("transparent.jpg");
    display: flex;
    position: relative;
    border-radius: 10px;
    box-shadow: 2px 2px 10px black;
}
.image1{
    width: 300px;
    animation: remove 15s linear infinite;
    overflow: hidden;
    border-radius: 10px;

}
#withbg{
    width: 300px;
}
.image2{
    width: 300px;
    position: absolute;
    overflow: hidden;

}
#withoutbg{
    width: 300px;
}

.text{
    width: 100%;
    height: 25%;
    background: linear-gradient(to right , white,rgb(34, 149, 162),rgb(212, 89, 153),white);
    text-align: center;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5vmax;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 600;
}
.upload-image{
    width: 100%;
    height: 100%;
    /* background-color: rgba(184, 198, 219, 0.452); */
    background: linear-gradient(to right, rgba(232, 233, 236, 0.596),rgb(5, 151, 209));
    /* backdrop-filter: blur(60px); */

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 2px 2px 10px black;
    flex-direction: column;
    gap: 20px
}
.inner-upload-image{
    width: 90%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: aliceblue;
    font-size: 20px;
    background: linear-gradient(to right, rgba(16, 93, 236, 0.596),rgb(2, 77, 107));
    backdrop-filter: blur(60px);

    border-radius: 10px;
    cursor: pointer;
}
.inner-upload-image:hover{
    /* background-color: rgba(42, 87, 211, 0.39); */
    background: transparent;
    border: 2px solid  rgba(255,255, 255, .2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    box-shadow: inset 2px 2px 6px black;
}
#input-image{
    width: 100%;
    height: 100%;
    display: none;
}
#upload-btn{
   width: 40%;
   height: 12%;
   /* background:  linear-gradient(to right , rgb(34, 149, 162),rgb(212, 89, 153)); */
  
   color: aliceblue;
   border: none;
   outline: none;
   border-radius: 10px;
   font-size: 15px;
   cursor: pointer;
   transition: all 0.3s;
}
#upload-btn:hover{
    color: rgb(29, 30, 31);
    font-size: 18px;
    /* background:  linear-gradient(to left , rgb(34, 149, 162),rgb(212, 89, 153)); */
}

.result{
    width: 50%;
    height: 100%;
   
   
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    display: none;
}
.mainbox{
    width: 400px;
    position: relative;
    background-image: url("transparent.jpg");
    border-radius: 10px;
    box-shadow: 2px 2px 10px black;
}
.resultImg1{
   width: 0px;
   animation: remove1 8s linear 1;
   overflow: hidden;

}
.resultImg2{
    width: 400px;
    position: absolute;
    top: 0;
}
.resultImg1 img{
    width: 400px;
 
 }
 .resultImg2 img{
     width: 400px;
 }
 .btns{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
 }
 #download{
    padding: 12px 20px;
    /* background:  linear-gradient(to right , rgb(34, 149, 162),rgb(212, 89, 153)); */
    color: aliceblue;
    border: none;
    outline: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
 }
 #reset{
    padding: 12px 20px;
    /* background:  linear-gradient(to right , rgb(34, 149, 162),rgb(212, 89, 153)); */
    color: aliceblue;
    border: none;
    outline: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
 }

@keyframes remove {
    0%,100%{
        width: 100%;
    }
    50%{
        width: 0%;
    }
}
@keyframes remove1 {
    0%{
        width: 400px;
    }
    100%{
        width: 0px;
    }
}
@media (max-width:430px) {
    
    .mainbox{
        width: 250px;
       
    }
    .resultImg1{
       width: 0px;
       animation: remove2 8s linear 1;
       overflow: hidden;
    
    }
    .resultImg2{
        width: 250px;
    }
    .resultImg1 img{
        width: 250px;
     
     }
     .resultImg2 img{
        width: 250px;
     }
    .btns{
        flex-direction: column;
        gap: 10px;
    }
    
    
}
@keyframes remove2 {
    0%{
        width: 250px;
    }
    100%{
        width: 0px;
    }
}
/* Buttons */
button  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin: 12px;
    background: linear-gradient(to right, #3b82f6, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
    position: relative;
    overflow: hidden;
}

button::before{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

button:hover::before {
    left: 100%;
}



