   /* General Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

header {
    background: #0e0707;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

h1 {
    background: linear-gradient(to right, #b26ce4, #ffc371);
    -webkit-background-clip: text;
    color: transparent;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

h3 {
    font-size: 1.2rem; /* Adjust the size to make it look visually appealing */
    margin: 0; /* Remove margin to reduce unnecessary spacing */
    padding-top: 5px; /* Adjust spacing between the h1 and h3 */
    background: linear-gradient(to right, #ffc371, #b26ce4);
    -webkit-background-clip: text;
    color: transparent;
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    margin: 0;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #007bff;
}

/* Container for the grid */
.container {
    width: 100vw;  /* Full width of the viewport */
    height: 100vh; /* Full height of the viewport */
    overflow: auto;
    position: relative;
    padding-left: 10px;  /* Add slight padding to the left */
    padding-right: 10px; /* Add slight padding to the right */
    box-sizing: border-box;
}

/* Image grid layout using absolute positioning */
.image-grid {
    position: relative;
    width: 100%;  /* Full width of the container */
    margin-left: auto;
    margin-right: auto; /* Center the grid */
}

.image-grid-item {
    position: absolute;
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

.image-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-grid-item:hover img {
    transform: scale(1.25); /* Scale on hover */
}

/* Flux prompt styles */
.flux-prompt-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease; /* Smooth transition */
}

.image-grid-item:hover .flux-prompt-info {
    opacity: 1; /* Visible on hover */
}

.flux-prompt-info img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}



/* Add this new style for smooth transitions */
.image-grid-item.new-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-grid-item.new-item.show {
    opacity: 1;
    transform: translateY(0);
}

.loader {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #555;
}

/* Modern Styling for the Search Input Box and Clear Button */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

#searchInput {
    padding: 10px 40px 10px 15px; /* Added extra padding for the button inside */
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    font-size: 16px;
    width: 300px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f9f9f9;
}

#searchInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#clearSearch {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    outline: none;
    display: none; /* Hidden by default */
    padding: 0;
}

#clearSearch.visible {
    display: block; /* Make it visible when the input field has content */
}

/* Additional hover and focus styles for button */
#clearSearch:hover {
    color: #007bff;
}

#clearSearch:focus {
    color: #007bff;
}

/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    #searchInput {
        width: 100%;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #f0f0f0;
}

a.custom-link {
    color: inherit; /* Inherit the color from the parent element */
    font-size: inherit; /* Inherit the font size from the parent element */
    text-decoration: underline; /* Keep the underline */
    text-decoration-color: currentColor; /* Ensure underline matches the text color */
    text-decoration-thickness: 1px; /* You can adjust the thickness of the underline if needed */
}

a.custom-link:hover {
    color: inherit; /* Keep the same color on hover */
    text-decoration: underline; /* Keep the underline on hover */
}

/* Updated gallery.css */

/* Hide body elements when loading */
body.loading {
    visibility: hidden;
    overflow: hidden;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Ensure preloader is on top */
    visibility: visible; /* Keep visible regardless of body */
}

/* Preloader Spinner Styles */
.spinner {
    width: 60px; /* Increase size for visibility */
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3); /* Lighter border */
    border-top: 6px solid #ffffff; /* White color for contrast */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optional: Fade-in effect for the body after loading */
body:not(.loading) {
    visibility: visible;
    transition: visibility 0.3s ease-in, opacity 0.3s ease-in;
    opacity: 1;
}




