:root {
    --container-max-width: 480px; /* Narrower and more responsive container */
    --body-background-color: #f4f4f4
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Improved font */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--body-background-color);
}

footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	margin-inline: auto;
	background-color: var(--body-background-color);
	padding-block: .4em .6em
}

header, footer {
    text-align: center;
}

nav {
	display: flex;
	width: fit-content;
	gap: 2em;
	margin-inline: auto;
	font-weight: 900;
}

nav a {
	display: inline-block;
	width: fit-content;
}
canvas {
	display: none;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    width: 40%; /* Responsive width */
    max-width: var(--container-max-width);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: #fff;
    margin-block-end: 4em;

}

#qrcode {
    width: 70%; /* Adjust as needed, or set a specific width */
    aspect-ratio: 1 / 1; /* Maintains a square aspect ratio */
    background-color: #fff; /* Background color visible before the QR code is generated */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 0.5rem; /* Aesthetic choice for rounded corners */
	padding: 0;
	background-image: url(wd.png);
	background-position: 50%;
	background-size: 100%;
	background-repeat: no-repeat;
}

#qrcode img {
	width: 100%;
}




.form-group {
    width: 100%;
    border: none; /* Ensures no border around the fieldset */
    margin: 0.5rem 0; /* Adjusts margin around the fieldset */
}

/* Other styles for .form-group, input, and button remain the same */


.form-group button {
    font-weight: 600; /* Makes the button text bolder */
    padding: 0.75rem;
    margin-top: 0.5rem; /* Adjust spacing as needed */
    border: none; /* Removes border for a cleaner look */
    border-radius: 0.375rem;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.form-group button:hover {
    background-color: #0056b3;
}

.form-group label {
    font-size: 0.85rem; /* Adjust for smaller, more pronounced look */
    font-weight: bold; /* Bolder for emphasis */
    margin-bottom: 0.5rem; /* Tighter spacing to the input */
    display: block; /* Ensure label is block-level for proper spacing */
}

.form-group input, .form-group button {
    width: 100%; /* Full width to match the fieldset */
    padding: 0.75rem;
    font-size: 1rem; /* Readable font size */
    border: 1px solid #ccc;
    border-radius: 0.375rem; /* Rounded corners for modern look */
    box-sizing: border-box; /* Include padding and border in width calculation */
    margin-block: 0.25rem; /* Adjust top margin for closer element grouping */
}

button {
    cursor: pointer;
    background-color: #007bff;
    color: white;
    font-weight: normal; /* Adjust based on preference */
    transition: background-color 0.3s; /* Smooth hover transition */
}

button:hover {
    background-color: #0056b3;
}


.credit {
    margin-top: 2rem;
    font-size: 1rem;
}

/* Responsive adjustments for viewports less than 800px wide */
@media (max-width: 800px) {
    .container {
        width: 90%; /* Increase width to 90% for smaller screens */
    }
}