﻿body {
    min-height: 2000px;
}

#carousel {
    width: 1440px;
    height: auto;
    margin: 0 auto;
    display: flex;
    /*justify-content: center;*/
    margin-top: 3%;
}

@media (max-width: 1440px) {
    #carousel {
        width: 100%;
    }
}

#slides {
    overflow: hidden;
    /* fix ie overflow issue */
    position: relative;
    width: 83.3%;
    /*height: 315px;*/
}

    /* remove the list styles, width : item width * total items */
    #slides ul {
        position: absolute;
        top: 0;
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
    }

    /* width of the item, in this case I put 250x250x gif */
    #slides li {
        width: 415px;
        height: auto;
        float: left;
        overflow: hidden;
        /*padding: 5px 20px;*/
    }

        #slides li img {
            width: 100%;
        }

.img-container {
    height: 150px;
    /*overflow: hidden;*/
    border-radius: 5px;
    font-size: 13px;
}

#slides li p {
    text-align: center;
    font-family: sans-serif;
    font-size: 20px;
}

/* Styling for prev and next buttons */
#buttons {
    padding: 0 0 5px 0;
    float: right;
}

    #buttons a {
        display: block;
        width: 31px;
        height: 32px;
        float: left;
        outline: 0;
    }

a#prev, a#next {
    font-size: 35px;
    color: #ccc;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 15px;
    transform: scale(1.5,4);
    height: 125px;
}

.clear {
    clear: both;
}

@media (max-width: 1440px) {
    #carousel {
        width: 100%;
    }
}

@media (max-width: 440px) {
    #slides li {
        width: 100px;
    }

    .img-container {
        height: 100px;
    }

    a#prev,
    a#next {
        display: none;
    }
}
