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

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #212121;
}

.Qr-card {
    width: 400px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;

}

.Qr-card h2 {
    font-size: 20px;
}

#text {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    font-size: 18px;
    padding: 10px;
    border-radius: 4px;
    outline: none;
    border: 1px solid gray;
}

button {
    width: 100%;
    height: 50px;
    padding: 10px;
    margin-top: 20px;
    background-color: rgba(71, 71, 255, 0.888);
    border: none;
    outline: none;
    border-radius: 5px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;

}

#imgBox {
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transform: max-height 0.5s;
    padding: 20px;
}

#qrImage {
    width: 200px;
    max-height: 300px;
}

#imgBox.show-img {
    width: 250px;
    max-height: 300px;
    margin: 20px auto 5px auto;
    border: 1px solid #d1d1d1bb;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;

}

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

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    50% {
        transform: translateX(0px);
    }

    75% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
    }
}