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

}

.container{
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d052d;
    color: #fff;
}

.app{
    width: 350px;
    background-color: #fff;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    border-radius: 10px;
    transition: all;
    transition-duration: 0.7s;
    transition-timing-function: ease-in;
    transition-delay: 0s;
}

.app h1{
    margin-top: 10px;
    margin-bottom: 15px;
    color: #0d052d;
    display: flex;
}

.input-box{
    width: 80%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    border: none;
    border-radius: 4px;

    
}

.input-box input{
    width: 100%;
    margin: 10px 0;
    outline: none;
    padding: 14px;
    font-size: .9rem;
    font-weight: 500;
    border: 1px solid rgb(15, 68, 149);
    
    /* background-color: rgb(210, 210, 210); */
}

#generateqr{
    /* position: relative; */
    color: white;  
    font-size: 15px;
    font-weight: 500;
    margin: 15px;
    width: 120px;
    height: 40px;
    padding: 10px;
    background-color: rgb(66, 5, 165);
    outline: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: ease-in;
}



#image-box{
    width: 80%;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all;
    transition-duration: 0.7s;
    transition-timing-function: ease-in;
    transition-delay: 0s;
    /* transition: all 1s ease; */
}

#image-box img{
    width: 50%;
    height: 50%;
    padding: 10px;
}

#image-box.show-img{
    max-height: 200px;
    margin: 10px auto;
}

.error{
    animation: shake 0.1s linear 10;
}

@keyframes shake {
    0%{
        transform: translateX(0);
    }
    25%{
        transform: translateX(-2px);
    }
    50%{
        transform: translateX(0);
    }
    75%{
        transform: translateX(2px);
    }
    100%{
        transform: translateX(0);
    }
}

@media (max-width:450px) {
    .app{
        width: 250px;
    }
    #generateqr{
        width: 82px;
    }
}