/* Mobile-first design: Base styles for small screens, scale up as needed */

body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

p {
    font-size: 0.9em;
    margin-bottom: 20px;
}

input[type="url"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

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

#qrContainer {
    margin-top: 20px;
}

#qrcode {
    margin: 0 auto 10px;
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
}

.hidden {
    display: none;
}

/* Media query for larger screens (e.g., tablets/desktops) */
@media (min-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    p {
        font-size: 1em;
    }
    
    .container {
        padding: 30px;
    }
}

#shortUrlDisplay {
    font-size: 0.9em;
    margin-bottom: 10px;
    word-break: break-all;
}

#shortUrl {
    font-weight: bold;
}