/* styles.css */

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    width: 100%;
    transition: border-radius 0.3s;
}

.magnify-icon {
    font-size: 1.5rem;
    color: #888;
    margin-right: 10px;
}

#search-input {
    border: none;
    flex-grow: 1;
    font-size: 1rem;
    padding: 10px;
    outline: none;
    background: none;
}

#search-button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#search-button:hover {
    background-color: #0056b3;
}

.autocomplete-container {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    display: none;
    text-align: left;
    padding: 10px;
    box-sizing: border-box;
}

.autocomplete-container div {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
}

.autocomplete-container div:hover {
    background-color: #f0f0f0;
}

.autocomplete-container .magnify-icon {
    font-size: 1rem;
    color: #007BFF;
    margin-right: 8px;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.tab-button {
    background-color: #eee;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0 5px;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button.active {
    background-color: #007BFF;
    color: white;
}

.tab-button:hover {
    background-color: #0056b3;
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active-tab {
    display: block;
}

/* GIF Grid */
.gif-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.gif-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gif-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.gif-item img:hover {
    transform: scale(1.05);
}

.search-key-terms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.key-term {
    background-color: #007BFF;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.key-term:hover {
    background-color: #0056b3;
}

#image-overlay {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#progress-bar-container {
    display: none;
    margin: 20px auto;
    width: 80%;
    background-color: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 5px;
    position: relative;
}

#progress-bar {
    height: 20px;
    background-color: #4caf50;
    width: 0%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

#progress-text {
    margin-top: 10px;
    font-size: 1rem;
    text-align: center;
}

a[download] {
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

a[download]:hover {
    background-color: #0056b3;
}
