:root {
    --font-size: 0.875rem;
    --line-height: 1.5;
}
body {
    font-size: var(--font-size);
    background: transparent;
    color: white;
}
h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
p {
    margin-bottom: 0.75rem;
}
article {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}
.container {
    max-width: 1000px;
}
label {
    font-size: var(--font-size);
    margin-bottom: 0.5rem;
}

#image-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

#image-preview {
    max-width: 100%;
    height: auto;
    display: block;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.archive-item {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.archive-item:hover {
    transform: scale(1.05);
}

.archive-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Print styles */
@media print {
    body * {
        visibility: hidden;
    }
    #image-preview, #image-preview * {
        visibility: visible;
    }
    #image-preview {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        max-width: 100% !important;
    }
    #generator-interface, #archive-section, h1, article:first-of-type, canvas {
        display: none !important;
    }
}
input, textarea, input[type="range"] {
    font-size: var(--font-size);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}
button, button[type="submit"] {
    font-size: var(--font-size);
    padding: 0.75rem 1.5rem;
    background: #007bff;
    border: 1px solid #007bff;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover, button[type="submit"]:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

button:active, button[type="submit"]:active {
    transform: translateY(0);
}
