body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d1014;
    color: #FFFFFF;
}

header {
    background-color: #111418;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #181a20;
}

h1 {
    margin: 0;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

h1 img {
    height: 30px;
    margin-right: 10px;
}

.submit-button {
    background-color: #5c60f5;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #4a4dc4;
}

.dsc-icon {
    height: 20px;
    margin-right: 5px;
}


.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-bar-container {
    position: relative;
}

.search-bar {
    background-color: #16171d;
    border: 2px solid #181a20;
    color: white;
    border-radius: 10px;
    padding: 10px 15px;
    width: 300px;
    outline: none;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: white;
    padding: 10px;
}

.search-button svg {
    width: 20px;
    height: 20px;
    transition: color 0.25s;
}

.search-button svg:hover{
    color: #c2c2c2;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gif-card {
    background-color: #16171d;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    border: 2px solid #181a20;
}

.gif-card:hover {
    transform: scale(1.05);
}

.gif-card img {
    width: 100%;
    border-bottom: 2px solid #7289DA;
    max-height: 200px;
}

.gif-title {
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.controls button{
    background-color: #16171d;
    border: 2px solid #181a20;
    margin: 3.5px;
    color: white;
    border-radius: 10px;
    padding: 10px 15px;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    transition: background-color border 0.3s;
}

.controls button:hover{
    background-color: #111418;
    border: 2px solid #16171d;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #111418;
    border-top: 2px solid #181a20;
}

@media (min-width: 1600px) {
    header {
        padding: 10px 20%; 
    }

}
