*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: rgb(192, 66, 91);
}

.container{
    width: 400px;
padding: 25px 35px;
border-radius: 10px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.container p{
        font-weight: 600;
        font-size: 15px;
        margin-bottom: 15px;
}

.container input{
    width: 100%;
    height: 50px;
    padding: 10px;
    margin: 10px 0 20px;
    border-radius: 5px;
    outline: none;
    cursor: text;
    border: 1px solid;
}

.container button{
    width: 100%;
    height: 50px;
    padding: 10px;
    margin: 10px 0 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    border: none;
    color: #fff;
    outline: none;
    background-color: rgb(24, 119, 242);
}

.container button:active{
    transition: 0.5s all active;
    background-color: rgb(20, 105, 213);
}

#QrImage{
    width: 200px;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s;
}

#QrImage img{
    width: 100%;
    padding: 10px;

}

#QrImage.show-img {
    max-height: 300px;
    margin: 10px auto;
    border: 1px solid #d1d1d1;
  }
  .error {
    animation: shake 1s ease-in-out;
    /* border: 2px solid red; */
    border: 10px red;
  }
  
  @keyframes shake {
    0% {
      transform: translateX(0);
    }
    25% {
      transform: translateX(-4px);
    }
    50% {
      transform: translateX(0);
    }
    75% {
      transform: translateX(-4px);
    }
    100% {
      transform: translateX(0);
    }
  }
  


  @media (max-width: 768px) {

    .container{
      width: fit-content;
    }
    


  }