*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body{
    background: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1{
    text-align: center;
    margin: 50px 0;
    font-size: 2.5em;
    letter-spacing: 2px;
}

form{
    width: 90%;
    max-width: 600px;
    margin: auto;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form input{
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    padding: 0 20px;
}

form button{
    padding: 0 30px;
    height: 100%;
    background: #ff6a95;
    color: #fff;
    border: 0;
    outline: 0;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover{
    background: #ff306e;
}

::placeholder{
    color: #fff;
    font-size: 18px;
}

#show-more-btn{
    background: #ff6a95;
    color: #fff;
    border: 0;
    outline: 0;
    padding: 10px 20px;
    border-radius: 4px;
    margin: 20px auto;
    cursor: pointer;
    display: none;
    transition: background 0.3s;
}

#show-more-btn:hover{
    background: #ff306e;
}

#search-result{
    width: 90%;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 20px;
}

.image-container {
    position: relative;
    overflow: hidden;
}

#search-result img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

#search-result img:hover{
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.download-btn{
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.download-btn:hover{
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    form {
        height: 40px;
    }
    form input {
        font-size: 16px;
    }
    form button {
        padding: 0 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
    form {
        height: 35px;
    }
    form input {
        font-size: 14px;
    }
    form button {
        padding: 0 15px;
        font-size: 14px;
    }
    #search-result {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-gap: 15px;
    }
}

