body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

h1, h2 {
    background-color: #333;
    color: white;
    padding: 10px 0;
    margin: 0;
}

form {
    margin: 20px 0;
}

input[type="file"] {
    margin: 10px 0;
}

button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #555;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.image {
    margin: 10px;
    text-align: center;
    flex: 1 1 200px; /* Ensures at least 200px width, adjusts with screen */
}

.image img {
    max-width: 100%;
    border: 2px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.image img:hover {
    transform: scale(1.05);
}

.image-name {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
    display: inline-block;
}

.delete-button {
    display: inline-block;
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.delete-button:hover {
    background-color: #c0392b;
}

/* Media query for mobile devices */
@media (max-width: 600px) {
    .gallery {
        justify-content: space-between; /* Adjusts spacing on small screens */
    }

    .image {
        flex: 1 1 calc(50% - 20px); /* Two images per row with small gap */
        margin: 5px; /* Reduces margin to fit within the screen */
    }
}

.edit-form {
    margin-top: 10px;
}

.edit-form input[type="text"] {
    padding: 5px;
    width: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
}

.edit-form button {
    padding: 5px 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.edit-form button:hover {
    background-color: #218838;
}
.search-form {
    margin: 20px 0;
}

.search-form input[type="text"] {
    padding: 8px;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-form button {
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: #555;
}
/* Increase the size of the search box */
input[type="text"] {
    padding: 10px;
    width: 70%;
    height: 80px;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 40px;
    transition: border-color 0.2s;
    margin-top:50px;
    margin-bottom:50px;
}

input[type="text"]:focus {
    border-color: #333; /* Highlight border on focus */
    outline: none; /* Remove default outline */
}

button {
    padding: 10px 10px;
    background-color: #333;
    color: white;
    height: 80px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 40px;
    margin-left:20px;
}

button:hover {
    background-color: #555;
}

/* Additional adjustments for mobile devices */
@media (max-width: 600px) {
    input[type="text"] {
        width: 80%; /* Adjust width to fit nicely on smaller screens */
    }
}

.pagination {
    display: inline-block;
    justify-content: center;
    margin: 20px 0;
    font-size: xx-large;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.2s;
    line-height: 3;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination a.active {
    background-color: #333;
    color: white;
    pointer-events: none; /* Disable clicking on the active page link */
}
