/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
body {
    background-color: #001f3f;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Main Container */
.main {
    background-color: #003366;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

/* Heading */
h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #ffffff;
}

/* Input Field */
#qr-text {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 1rem;
    outline: none;
}

#qr-text.empty-error{
    animation: shake 0.1s infinite;
}

@keyframes shake{
    0%{
        transform: translateX(0);
    }
    25%{
        transform: translateX(-3px);
    }
    50%{
        transform: translateX(0);
    }
    75%{
        transform: translateX(3px);
    }
    100%{
        transform: translateX(0);
    }
}

/* QR Code Display */
#qr-body {
    display: none;
    overflow: hidden;
    height: 0;
    width: 150px;
    transition: height 0.5s ease-in-out;
    justify-content: center;
    align-items: center;
    border: none;
}

/* Footer Buttons */
#qr-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin: 20px auto 0;
}

#generateBtn,
#downloadBtn,
#resetBtn {
    width: 100%;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size:1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#generateBtn:hover,
#downloadBtn:hover,
#resetBtn:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }

    #qr-text {
        font-size: 0.9rem;
    }

    #qr-footer a,#qr-footer button {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}
