* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif; /* Use Montserrat font */
}

body {
    font-family: 'Montserrat', sans-serif; /* Use Montserrat font */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

html, body {
    min-height: 100%;
}

.container {
    min-height: calc(100vh - 100px); /* Adjust for header, footer, and padding */
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
    font-size: 14px;
    margin-top: 20px; /* Add margin to separate it from the main content */
    position: static; /* Ensure it's not sticky or fixed */
}

.footer .heart {
    color: red;
}

.upload-btn {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    loading: lazy;
}

.gallery-item-info {
    font-size: 14px;
}

.gallery-item-info p {
    margin: 5px 0;
}

.gallery-item-info a {
    color: #2196F3;
    text-decoration: none;
    word-break: break-all;
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 100;
    white-space: nowrap;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tooltip.show {
    display: block;
    animation: fadeIn 0.3s;
}

.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background 0.3s;
}

.pagination a.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.pagination a:hover:not(.active) {
    background: #ddd;
}

.stats {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stats span {
    margin-right: 20px;
    font-weight: bold;
}

.empty-gallery {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 8px;
}

.copy-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
}

.copy-btn:hover {
    background: #1976D2;
}

 .delete-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn:hover {
    background: #d32f2f;
}

nav {
    background-color: #333;
    padding: 10px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-logo a {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
}

.navbar-links {
    list-style: none;
    display: flex;
}

.navbar-links li {
    margin-left: 20px;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #4CAF50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links {
        flex-direction: column;
        margin-top: 10px;
    }

    .navbar-links li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}


#Search bar 

.search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.search-box-input {
    width: 100%;
    max-width: 400px; /* Medium-sized search box */
    padding: 12px 18px; /* Balanced padding */
    font-size: 16px; /* Slightly larger text */
    border: 2px solid #aaa;
    border-radius: 25px; /* Rounded but not too much */
    outline: none;
    transition: 0.3s ease-in-out;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.search-box-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
    .search-box-input {
        width: 80%;
    }
}

