
*{
    margin: 0;
    padding: 0;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

body{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #303030;
}
h1{
    font-size: 26px;
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

.box{
  background-color: #5355b4;
  padding: 30px;
  width: 400px;
  border-radius: 12px;
}

.qr-header input{
    width: 100%;
    margin: 12px 0 18px;
}

.qr-header input{
    padding: 8px;
    font-size: 20px;
    border-radius: 10px;
    outline: none;
    border: 2px solid #5357c4;
}

select{
    padding: 4px;
    font-size: 20px;
    border-radius: 10px;
    outline: none;
    border: 2px solid #585dee;
}

.qr-header label{
    color: #ffffff;
    margin-top: 6px;
    font-size: 18px;
}

.qr-header div{
    display: flex;
    justify-content: space-between;

}
.qr-footer{
    display: flex;
    justify-content: center;
}
.qr-footer a{
    background-color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 30px;
    margin-inline: 24px;
    font-weight: 600;
    border-radius: 12px;
}

.qr-footer a:hover{
    background-color: #1f2274;
    color: white;
}

.qr-body{
    display: grid;
    place-items: center;
    padding: 20px;
}

.qr-body img{

    max-width: 100%;
    max-height: 100%;
    margin-block: 10px;
    padding: 20px;
    border: 1px solid rgb(247, 247, 247);
    border-radius: 10px;

}
.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 screen and (max-width:520px){
    .box{
        width: 80%;
    }

    .qr-footer a{
        padding: 10px;
        font-size: 16px;
        margin-inline: 15px;

    }
    select{
        padding: 0px;
        margin: 6px;
    }
}
