@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&family=Roboto+Condensed:ital,wght@0,300..700;1,300..700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: "Roboto Condensed", sans-serif;
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    color: #222;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 8% auto;
    width: 60%;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-4px);
}

h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

#qrText {
    width: 250px;
    height: 35px;
    margin-bottom: 20px;
    padding: 8px 12px;
    border: 1.5px solid #bbb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

#qrText:focus {
    outline: none;
    border: 1.5px solid #007bff;
    box-shadow: 0 0 6px rgba(0,123,255,0.4);
}

button {
    width: 130px;
    height: 40px;
    margin: 8px 0;
    border: none;
    border-radius: 10px;
    background: #007bff;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#downloadBtn {
    background: #28a745;
}

#downloadBtn:hover {
    background: #1e7e34;
}

footer {
  position: absolute; 
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 67px;
}

/* Mobile-specific fix for very small screens */
@media only screen and (max-width: 768px) 
    and (max-width: 480px) {
        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        main {
            flex: 1;
            padding-bottom: 80px; /* Add enough space for footer height */
        }

        footer {
            position: relative; /* Make sure it’s not absolute/fixed */
        }

        #qrText {
            width: 200px;
        }
}
