button {
    border: none;
    border-radius: 3px;
    outline: none;
    background: darkslateblue;
    color: white;
    margin: 5px;
    transition: background 0.1s;
}

button:focus {
    outline: none;
}

button:hover, .selected {
    background: deepskyblue;
}

img {
    /* max-width: 210px; */
    max-height: 160px;
}

input {
    margin-top: .375rem;
}

.hide {
    display: none;
}


#gif-container > p {
    display: inline-block;
}

.result {
    display: inline-block;
    margin: 10px;
    position: relative;
}

.result:hover {
    opacity: 0.9;
}

.fav-icon {
    position: absolute;
    color: white;
    top: 10px;
    right: 10px; 
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 2px;
    transition: all 0.2s;
}

.favBtn {
    padding-right: 5px;
}

.opacity-0 {
    opacity: 0;
}

@media (min-width: 992px) {
    .container {
        max-width: 1200px;
    }
}

@media screen and (max-width: 767px) {
    #gif-container {
        text-align: center;
    }

    .categories, .favorites {
        padding: 5px 10px;
    }
}