html, body {
    padding: 0px;
    margin: 0px;
    width: 100%;
}

@media screen and (min-width: 0px) {
    #gifs-container {
        /*width: 240px;*/
        width: 100%;
    }

    .gif-box {
        width: 100%;
    }

    .gif-box img {
        width: 100%;
    }

    .gif-box-overlay {
        width: 100%;
    }
}

@media screen and (min-width: 480px) {
    #gifs-container {
        /*width: 240px;*/
        width: 100%;
    }
}

@media screen and (min-width: 720px) {
    #gifs-container {
        /*width: 240px;*/
        width: 100%;
    }
}

@media screen and (min-width: 960px) {
    #gifs-container {
        /*width: 240px;*/
        width: 100%;
    }
}

@media screen and (min-width: 1200px) {
    #gifs-container {
        width: 1200px;
    }

    .gif-box {
        width: 240px;
        height: 240px;
    }

    .gif-box-overlay {
        width: 240px;
        height: 240px;
    }
}

#gifs-container {
    margin: 0px auto;
}

#gifs-container:after {
    content: "";
    display: block;
    clear: both;
}

.gif-box {
    position: relative;
    float: left;
    cursor: pointer;
}

.gif-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    transition: all .8s ease;
    opacity: 0;
}

.gif-box:hover .gif-box-overlay {
    opacity: 1;
}

#gif-popup {
    position: fixed;
    width: 480px;
    max-width: 95%;
    top: 90px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    border: 1px solid gray;
    z-index: 10;
    display: none;
    background-color: white;
}

.popup-header {
    width: 100%;
    background-color: #222223;
}

.popup-header:after {
    content: "";
    display: block;
    clear: both;
}

.popup-close {
    color: white;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-right: 8px;
    float: right;
    cursor: pointer;
    width: fit-content;
}

.clear {
    clear: both;
    display: block;
    content: "";
}

.gif-to-clipboard {
    margin-top: 5px;
    margin-bottom: 5px;
    width: 100%;
    text-align: center;
}

#search-field {
    width: 240px;
    margin: 10px auto 30px;
    border: 1px solid lightgrey;
}

#gif-popup-tags {
    padding: 0px 5px;
}

.search-field-container .ms-ctn .ms-trigger {
    display: none;
}
