/* QR Code GEnerator */
/* style.css */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body{
    background-color: #1a1a1a;
    color: #fff;
}

.container{
    max-width: 600px;
    height: 90vh;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container h1{
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.container h1 img{
    height: 3rem;
}

.qr-gen{
    margin: auto 10px;
    margin-top: 4rem;
    min-width: 30vw;
    min-height: 40vh;
    max-height: 60vh;
    background-color: #f2ecff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 20px;
}

.qr-gen h2{
    margin: 1rem;
    color: #454545;
    margin: 1rem 70px;
    text-align: center;
}

.qr-gen input{
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
    width: 90%;
    height: 40px;
    padding: 10px;
    padding-left: 20px;
    border-radius: 50vh;
    border: none;
    box-shadow: 0px 0px 20px hsla(0, 0%, 0%, 0.381);
}

.qr-gen button{
    width: 60%;
    height: 40px;
    border: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    border-radius: 40px;
    box-shadow: 0px 0px 20px hsla(0, 0%, 0%, 0.381);
    cursor: pointer;
    background-color: #00c896;
    color: #fff;
    transition: background-color 0.5s ease;
}

.qr-gen button:hover{
    background-color: #008f6c;
}

.qr-gen #imgBox{
    max-height: 0;
    padding: 10px;
    margin-top: 1rem;
    border-radius: 5px;
    box-shadow: 0px 0px 20px hsla(0, 0%, 0%, 0.381);
    transition: max-height 1s ease-in-out;
    overflow: hidden;
    /* display: none; */
}

#imgBox.showImg{
    max-height: max-content;
    background-color: #fff;
}

#imgBox.hideImg{
    display: none;
    max-height: 0;
    background-color: #73ecca;
}