/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f7f9fc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Allow content to grow upwards */
}

/* Watermark */
.watermark {
    position: fixed;
    top: 10px;
    left: 20px;
    opacity: 0.08;
    font-size: 10vw; /* Adjust the watermark size based on viewport width */
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

/* Container */
.container {
    padding: 60px 20px;
    text-align: center;
    flex-grow: 1; /* Ensures content grows to take available space */
}

.container h1 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* QR Generator Box */
.qr-generator {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%; /* Ensures responsiveness */
    margin: 0 auto;
}

.qr-generator input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.qr-generator button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-generator button:hover {
    background: #0056b3;
}

/* QR Code */
.qr-code {
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #111;
    color: white;
    text-align: right; /* Align text to the right */
    padding: 15px;
    font-size: 0.9rem;
    width: 100%; /* Ensures the footer takes full width */
}

/* Links in footer */
.footer a {
    color: #00aced;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsiveness */

/* Medium screens (tablets, 768px and up) */
@media (max-width: 768px) {
    .watermark {
        font-size: 12vw; /* Adjust watermark size */
    }

    .container h1 {
        font-size: 2rem; /* Slightly smaller font */
    }

    .qr-generator {
        padding: 15px;
    }

    .qr-generator input {
        padding: 10px 12px;
    }

    .qr-generator button {
        padding: 10px 15px;
        font-size: 1rem;
    }
}

/* Small screens (mobile, 480px and up) */
@media (max-width: 480px) {
    .watermark {
        font-size: 15vw; /* Further reduce watermark size */
    }

    .container h1 {
        font-size: 1.5rem; /* Smaller heading for mobile */
    }

    .qr-generator {
        max-width: 100%; /* Full-width QR generator on small screens */
        padding: 10px;
    }

    .qr-generator input {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .qr-generator button {
        padding: 10px;
        font-size: 0.9rem;
    }

    .footer {
        font-size: 0.8rem; /* Smaller footer text on mobile */
        text-align: center; /* Center the footer text on mobile */
    }
}
