#image-search-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
}

#image-search-app h1 {
    margin-top: 20px;
    color: #00FEFE;
    text-shadow: 0 0 5px #00FEFE, 0 0 10px #00FEFE;
    font-size: 2.8em;
    margin-bottom: 30px;
}

#search-container {
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    width: 100%;
    max-width: 700px;
    padding: 0 10px;
    box-sizing: border-box;
}

#search-input {
    flex-grow: 1;
    padding: 15px;
    background: transparent;
    border: 2px solid #00FEFE;
    border-radius: 5px;
    color: #00FEFE;
    outline: none;
    font-size: 1.1em;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#search-input::placeholder {
    color: #888;
}

#search-input:hover,
#search-input:focus {
    box-shadow: 0 0 8px #00FEFE, 0 0 15px rgba(0, 254, 254, 0.5);
    border-color: #00FFFF;
}

#search-button,
#more-results {
    padding: 15px 30px;
    background-color: yellow;
    color: #0f0c26;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    font-size: 1.1em;
    flex-shrink: 0;
}

#search-button:hover,
#more-results:hover {
    box-shadow: 0 0 10px yellow, 0 0 20px rgba(255, 255, 0, 0.7);
    background-color: #ffcc00;
}

#image-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

.image-card {
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.download-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #0077ff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    font-size: 0.9em;
}

.image-card:hover .download-button {
    opacity: 1;
    background-color: #005bb5;
}

@media (max-width: 768px) {
    #image-search-app { padding: 15px; }
    #image-search-app h1 { font-size: 2em; }
    #search-container {
        flex-direction: column;
        gap: 10px;
        max-width: 95%;
    }
    #search-input {
        max-width: 100%;
        font-size: 1em;
    }
    #search-button, #more-results {
        width: 100%;
        font-size: 1em;
        box-sizing: border-box;
    }
    .image-card {
        width: 90%;
        max-width: 350px;
    }
    .image-card img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    #image-search-app h1 { font-size: 1.8em; }
    #search-input, #search-button, #more-results {
        font-size: 0.9em;
        padding: 12px 20px;
    }
}
