
@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&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins';
}
body{
    background: #334366;
}
.container{
    width:400px;
    padding:35px 45px;
    position:absolute;
    top:50%; left:50%;
    transform: translate(-50%,-50%);
    background-color: white;
    border-radius:10px;
}
input{
    margin-top: 10px;
    width:100%;
    height:50px;
    border:1.7px solid #494eea;
    border-radius:10px;
    outline:none;
    padding:10px;
    margin:10px 0 20px;
}

.container p{
    font-weight: 500;
    font-size: 16px;
    margin:8px auto;
}
#downloadBtn {
    display: flex;
    justify-content: center;
    background-color: #494eea;
    color:white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}
button{
    width:100%;
    color:white;
    background-color: #494eea;
    border-radius: 10px;
    height:50px;
    outline:none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border:0;
    margin:6px auto;
}
#downloadBtn:hover {
    color:#494eea;
    background-color: white;
    border: 1.7px solid #494eea;
    transition:0.4s ease-in;
}    

button:hover{
    color:#494eea;
    background-color: white;
    border: 1.7px solid #494eea;
    transition:0.4s ease-out;
}
#imgbox{
    overflow: hidden;
    width:200px;
    max-height: 0;
    border-radius:5px;
    transition: max-height 1s smooth;

}
#imgbox.show-img{
    width:200px;
    max-height:300px;
    margin:10px auto;
}
#imgbox img{
    padding:10px;
    width: 100%;
}
.error{
    animation:shake 0.1s linear 10;
}
@keyframes shake{
    0%{
        transform: translate(0);
    }
    25%{
        transform: translate(-2px);
    }
    50%{
        transform: translate(0);
    }
    75%{
        transform: translate(2px);
    }
    100%{
        transform: translate(0);
    }
}