@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0 ;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
body{
    width: 100%;
    height: 100%;
    background: #202020;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
}
.sec1{
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 20px;
    box-sizing: border-box;
}
.sec1 h1{
    color: aliceblue;
    font-size: 30px;
    font-weight: 400;
    margin-left: 20px;
}
img{
    height: 30px;
    width: 30px;
}
.main{
    width: 100%;
    min-height: calc(100vh - 80px);
    background-color: rgb(107, 116, 122);
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}
.sec2-1{
    max-width: 500px;
    width: 90%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
}   
.sec2-2{
    max-width: 500px;
    width: 90%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}
.sec2-3{
    display: none;
    max-width: 500px;
    width: 90%;
    height: 500px;
}
/*The animation changes the container's size, not the image inside it.*/
.animation{
    width: 300px;
    height: 300px;
    background-image: url("icons/transparentIMG.jpg");
    display: flex;
    position: relative;
    border-radius: 15px;
    box-shadow: 2px 2px 10px black;
}
/*If the image stays the same size but the container shrinks, the image spills out — unless you use overflow: hidden to clip it.*/
/*div*/
.image1{ 
    height: 300px;
    width: 300px;
    animation: remove 15s linear infinite;
    overflow: hidden;
    border-radius: 15px;
}
/*photo*/
#withbg{ 
    height: 300px;
    width: 300px;
}
.image2{
    width: 300px;
    height: 300px;
    position: absolute;
}
#withoutbg{
    height: 300px;
    width: 300px;
}
@keyframes remove{
    0%,100%{
        width: 100%;
    }
    50%{
        width: 0%;
    }
}
.text{
    margin-top: 30px;
    text-align: center;
    font-size: 2vmax;
    font-weight: 800;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
.upload{
    width: 90%;
    height: 85%;
    background-color: #323232;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 2px 2px 10px black;
    flex-direction: column;
    gap: 20px;
}
.inner-upload{
    width: 90%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: aliceblue;
    font-size: 20px;
    background-color: #171717;
    border-radius: 10px;
    cursor: pointer;
}
.inner-upload:hover{
    background-color: rgba(42, 40, 40, 0.597);
    box-shadow: inset 2px 2px 10px black;
}
#input-image{
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}
.place-holder{
    display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: aliceblue;
  font-size: 20px;
}
#upload-btn{
    width: 40%;
    height: 12%;
    background: linear-gradient(to right,rgb(34,149,162),rgb(212, 89, 153));
    color: aliceblue;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    /*
    Use Transitions for simple state changes (e.g., button hover effects).
    Use Animations for multi-step, repeating, or scripted animations (e.g., bouncing balls, progress bars).
    */
    transition: all 1s;
}
#upload-btn:hover{
    color : black;
    font-size: 20px;
    background: linear-gradient(to left,rgb(34,149,162),rgb(212, 89, 153));
}
#download-btn{
    width: 40%;
    height: 75%;
    background: linear-gradient(to right,rgb(34,149,162),rgb(212, 89, 153));
    color: aliceblue;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    /*
    Use Transitions for simple state changes (e.g., button hover effects).
    Use Animations for multi-step, repeating, or scripted animations (e.g., bouncing balls, progress bars).
    */
    transition: all 1s;
}
#download-btn:hover{
    color : black;
    font-size: 20px;
    background: linear-gradient(to left,rgb(34,149,162),rgb(212, 89, 153));;
}
#reset-btn{
    width: 40%;
    height: 75%;
    background: linear-gradient(to right,rgb(34,149,162),rgb(212, 89, 153));
    color: aliceblue;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    /*
    Use Transitions for simple state changes (e.g., button hover effects).
    Use Animations for multi-step, repeating, or scripted animations (e.g., bouncing balls, progress bars).
    */
    transition: all 1s;
}
#reset-btn:hover{
    color : black;
    font-size: 20px;
    background: linear-gradient(to left,rgb(34,149,162),rgb(212, 89, 153));;
}
.buttons{
    width: 100%;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
#generated-image{
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}
#loading{
    display: none;
    height: 60px;
    width: 60px;
}