/* Reset box-sizing for all elements */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Body and base styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-image: url("../images/Blur.webp");
    background-repeat: no-repeat;
    background-size: cover;
}

/* Navigation Bar */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar img {
    margin-top: 10px;
    height: 50px;
    width: auto;
}
.navbar a {
    text-decoration: none;
    color: #4f46e5;
    font-weight: 600;
    margin-left: 1rem;
}

/* Active link styling */
a.active {
    color: #a100ff; /* Highlighted active link color */
    font-weight: bold;
    transition: text-shadow 0.3s ease;
}

/* Call to Action Banner */
.cta-banner {
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin: 3rem auto 2rem;
    max-width: 800px;
}
.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.cta-banner p {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

/* Form Container */
.container,
.privterms {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

h2 {
    margin-top: 0;
}

/* Inputs */
input[type="text"],
input[type="url"],
.container input#text {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0 1rem 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1rem;
    box-sizing: border-box;
    display: block;
}

/* Buttons */
button,
.container button.qrbutton {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    width: auto;
}

.container button.qrbutton {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
}

button:hover,
.container button.qrbutton:hover {
    background-color: #4338ca;
}

/* Status and disclaimers */
#status {
    margin-top: 1rem;
    font-weight: 600;
}

.disclaimer {
    font-size: 0.9rem;
    color: #555;
    margin-top: 1rem;
}

/* Description Section */
.description {
    margin: 3rem auto;
    max-width: 600px;
    padding: 1rem;
    text-align: left;
}
.description h3,
.description h4 {
    margin-top: 1.5rem;
}
.description ul {
    padding-left: 1.2rem;
}

/* QR Code output section */
.qr-output {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
#qr-code,
.qr-output canvas {
    max-width: 200px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* Download link styled as button */
.download-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background-color: mediumseagreen;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.download-link:hover {
    background-color: rgb(63, 137, 95);
}

/* Footer */
footer {
    background-color: white;
    color: #000000;
    text-align: center;
    padding: 30px 0;
    border-top: 5px solid #4f46e5;
    margin-top: 5em;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer nav {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

footer nav p {
    margin: 0;
}

footer nav a {
    color: #4f46e5;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

footer nav a:hover {
    text-decoration: underline;
}

footer a {
    color: #1a73e8;
    text-decoration: none;
}

/* Privacy & Terms */

.privterms{
    margin-top: 5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-banner h2 {
        font-size: 1.5rem;
    }

    .cta-banner p {
        font-size: 1rem;
    }

    .container,
    .privterms {
        margin: 1.3rem;
        padding: 1.3rem;
        border-radius: 20px;
    }

    .privterms{
        margin-top: 5rem;
    }

    input[type="text"],
    input[type="url"],
    button,
    .container input#text,
    .container button.qrbutton {
        font-size: 1rem;
        padding: 0.65rem;
    }

    button {
        width: 100%;
        margin-top: 0.5rem;
    }

    .container {
        width: 90%;
        max-width: 100%;
        margin: 1rem auto;
        padding: 1.5rem 1rem;
        border-radius: 30px;
    }
}

@media (max-width: 768px) {
    nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 0.8rem;
    }
}

