body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #e66465, #9198e5); /* Gradient background */
    margin: 0;
    padding: 20px;
    position: relative; /* Set position relative for watermark */
    color: #fff; /* Change text color for better visibility */
}
h1 {
    text-align: center;
    color: #fff;
}
#search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
#search-input {
    width: 300px;
    padding: 10px;
    border: 1px solid #fff; /* Change border color */
    border-radius: 5px;
    margin-right: 10px;
    transition: border-color 0.3s; /* Smooth transition for border color */
}
#search-input:focus {
    border-color: #28a745; /* Green border on focus */
    outline: none; /* Remove default outline */
}
#search-button {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
#search-button:hover {
    background-color: #218838;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.gallery img {
    width: 100%;
    border-radius: 5px;
    transition: transform 0.3s;
    cursor: pointer;
}
.gallery img:hover {
    transform: scale(1.05);
}
.error-message {
    color: red;
    text-align: center;
    margin-top: 20px;
}
.watermark {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff; /* Change watermark color */
    font-size: 12px;
    text-align: center;
}
#load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
#load-more:hover {
    background-color: #0056b3;
}
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    padding-top: 60px;
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    text-align: center;
    border-radius: 5px;
}
.modal-content img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px; /* Space between image and instruction */
}
.modal-content p {
    margin: 0; /* Remove default margin */
    color: #333; /* Change instruction text color */
}
#close-modal {
    padding: 10px 15px;
    background-color: #dc3545; /* Red color for close button */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}
#close-modal:hover {
    background-color: #c82333; /* Darker red on hover */
}
