body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}

.container {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 24px;
    color: #333;
}

input[type="text"], input[type="number"], select {
    padding: 8px;
    margin-top: 10px;
    margin-right: 5px;
}

button {
    padding: 8px 16px;
    margin: 10px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
}

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

#qrcodeContainer {
    display: inline-block;
    padding: 10px;
    background-color: #e0e0e0; /* Grey background to show border */
    margin-top: 20px;
}

#qrcode {
    background-color: white; /* QR code background */
}

hr {
    width: 100%;
    margin: 20px 0;
}

.instructions {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    color: #666;
}

.instructions ul {
    padding-left: 20px;
}

.instructions p {
    margin-bottom: 10px;
}

.instructions code {
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
}

#urlInput {
    width: 100%;
    min-height: 50px;
    max-height: 200px;
    overflow-y: auto;
    resize: vertical; /* Allows vertical resizing */
}

#remainingCharsMessage {
    font-size: 0.9em;
    color: gray;
    margin-top: 5px;
    display: block;
}

#templateDropdown {
    width: 100%;           /* Make the dropdown as wide as the input box */
    margin-bottom: 10px;   /* Add space below the dropdown */
    padding: 8px;          /* Add padding for a better appearance */
    font-size: 1em;        /* Ensure text is easy to read */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Style the label for the dropdown to align with the dropdown */
label[for="templateDropdown"] {
    display: block;
    margin-bottom: 5px;    /* Space between label and dropdown */
    font-weight: bold;     /* Make label text bold */
}

.help-text {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
    margin-bottom: 10px;
}