*{
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
}

#container{
    width: 100%;
    height: 100vh;
    background:linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#main { 
    background-color: white;
    width: 70%;
    max-width: 500px;
    border: 2px solid blue;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

#heading{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5vmax;
    margin-bottom: 0.5vmax;
}

#heading h1{
    font-size: 2vmax;
}

#qrdata{
    font-size: 0.9vmax;
    text-align: center;
    border-radius: 0.5vmax;
    height: 2vmax;
    padding-left: 2.9vmax;
    padding-right: 2.9vmax;
    
}

#butsub{
    padding: 0.7vmax;
    font-size: 0.8vmax;
    text-align: center;
    border-radius: 0.8vmax;
    border-color: rgb(255, 123, 0);
    background-color: rgb(40, 155, 249);
}
#butsub1{
    padding: 0.6vmax;
    font-size: 0.8vmax;
    text-align: center;
    border-radius: 0.8vmax;
    border-color: rgb(255, 123, 0);
    background-color: rgb(0, 255, 60);
    margin-bottom: 1vmax;
}

#onemain{
    margin-top: 1vmax;
    margin-bottom: 1vmax;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vmax;
}

.twomain{
    margin-bottom: 0.5vmax;
    display: flex;
    align-items:center;
    justify-content: center;
    gap: 1vmax;
    width: 100%;
}

input{
    max-height: 2.2vmax;
}

#qrcolor,#bgcolor{
    border: none;
    outline: none;
}

#type{
    width: 30%;
    text-align: center;
    max-width: 80px;
    font-size: 1vmax;
    
}



label{
    font-size: 1vmax;
    
}
#qroutputbox{
    margin-top: 1vmax;
    margin-bottom: 0.5vmax;
    width: 100%;
    max-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: max-height 2s ease-in;

}

#qroutputbox.show-img{
    max-height: 500px;
}

.error{
    animation:shake 0.1s linear 10;
}

@keyframes shake{
    0%{
        transform: translateX(0);
    }
    25%{
        transform: translateX(-3px);
    }
    50%{
        transform: translateX(0);
    }
    75%{
        transform: translateX(+3px);
    }
    100%{
        transform: translateX(0);
    }
}