*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: poppins, sans-serif;
}

body{
    width: 100%;
    height: 100%;
    background: rgb(94, 228, 94);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.logo{
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 20px;
    box-sizing: border-box;
}

.logo h1{
    font-size: 30px;
    font-weight: 600;
    color: white;
    margin-left: 10px;
}

.main{
    width: 100%;
    min-height: calc(100vh - 80px);
    background-color: white;
    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;
    gap: 30px;

}

.style2{
    max-width: 500px;
    width: 90%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;

}

.image{
    width: 225px;
    height: 225px;
    background-image: url('bgg.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: 225px
}


.image2{
    width: 225px;
    position: absolute
    
}

#withoutbg{
    width: 225px
}

.text{
    width: 100%;
    height: 25%;
    background: linear-gradient(to right , rgb(67, 207, 67),rgb(44, 217, 44),green);
    text-align: center;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5vmax;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    margin-left: 6px;
    
    
}

.upload-image{
    width: 80%;
    height: 75%;
    background-color: rgb(98, 237, 107);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 2px 2px 10px black;
    flex-direction: column;
}

.inner-upload-img{
    width:95%;
    height: 70%;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     gap:10px;
     color: black;
     font-size: 20px;
     background-color: greenyellow;
     border-radius: 10px;
     cursor: pointer;

}

.inner-upload-img:hover{

    background-color:limegreen;
    box-shadow: insert 2px 2px 2px black;

}

#input-img{
    width: 100%;
    height: 100%;
    display: none;
}

#upload-btn{
    width: 40%;
    height: 12%;
    background: linear-gradient(to right, rgb(68, 220, 68),green);
    border-radius: 12px;
    border: none;
    outline: none;
    color: black;
    margin-top: 22px;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s;

}

#upload-btn:hover{
    color: white;
    background: linear-gradient(to left, rgb(68, 220, 68),green);
font-size: 18px;
}

.result{
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    flex-direction: column;
    gap: 30px;
}

.mainbox{
    width: 400px;
    background-image: url(bgg.jpg);
    position: relative;
    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;
}

#loading{
    filter: drop-shadow(2px 2px 10px black);
    display: none;
}

.btns{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;

}

#download{
    padding: 12px 20px;
    background: linear-gradient(to right, rgb(68, 220, 68),green);
    border-radius: 12px;
    border: none;
    outline: none;
    color: black;
    margin-top: 22px;
    font-size: 18px;
    cursor: pointer;
}

#reset{
    padding: 12px 20px;
    background: linear-gradient(to right, rgb(68, 220, 68),green);
    border-radius: 12px;
    border: none;
    outline: none;
    color: black;
    margin-top: 22px;
    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;
    }

    @keyframes remove2{
        0%{
            width: 250px;
        }
    
        100%{
            width: 0px;
        }
    
       
    }
    

}

@media screen and (max-width: 768px) {
    .style1 {
        flex-direction: column;
    }

    .style1 .image {
        margin-bottom: 20px;
        margin-top: 20px;

    }

    .style1 .text {
        width: 100%;
        text-align: center;
   font-weight: 600;
    }
}