#scrolling1 {
    margin: 80px 30px 30px 30px;
    position: relative;
    font-size: 0.9em;
}

#scrolling2 {
    margin: 30px;
    position: relative;
    font-size: 0.9em;

}

.sneaker-info {
    position: relative;
    padding-left: 5px;
}

.scrolling-div::-webkit-scrollbar {
    background-color: transparent;
    height: 7px;
}

.scrolling-div:hover::-webkit-scrollbar-track {
    background-color: white;
    border-radius: 5px;
}

.scrolling-div:hover::-webkit-scrollbar-thumb {
    background-color: #9b9b9b;
    border-radius: 5px;
}

#scrolling .heading {
    margin-right: 30px;
}

.scrolling-div {
    padding-bottom: 20px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 30%;
    column-gap: 15px;

    overflow-x: auto;
    overscroll-behavior-x: contain;
    transition: 0.5s;
    scroll-behavior: smooth;
}


.sneaker1 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sneaker1 img {
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    transition: 0.5s;
}

.sneaker-name {
    font-size: 1.5em;
    margin: 5px 0 0 0;
}

.sneaker-type {
    color: #7e7e7e;
    margin: 5px 0;
    font-size: 1.2em;
    user-select:none;
}

.sneaker-price {
    color: black;
    margin: 5px 0;
    font-size: 1.4em;
    user-select:none;
}

.best-sales {
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0 5px 0;
    color: red;
    user-select:none;
}

#scrolling2 .best-sales {
    color: green;
}

#scrolling .heading {
    display: inline-block;
}

.arrows {
    display: flex;
    flex-direction: row;
}

.left-arrow, .right-arrow {
    width: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    margin-bottom: 10px;
    cursor: pointer;
    margin-left: 5px;
}

.scrolling-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}


@media (max-width: 1400px) {
    .left-arrow, .right-arrow {
        width: 30px;
    }

    .scrolling-div {
        grid-auto-columns: 33%;
    }
}

@media (max-width: 1200px) {
    .best-sales {
        font-size: 1em;
    }

    .sneaker-name {
        font-size: 1.3em;
    }

    .sneaker-type {
        font-size: 1em;
    }

    .sneaker-price {
        font-size: 1em;
    }
}

@media (max-width: 1050px) {
    .scrolling-div {
        grid-auto-columns: 45%;
    }
}

@media (min-width: 1700px) {
    .scrolling-div {
        grid-auto-columns: 21%;
    }
}

@media (min-width: 2200px) {
    .scrolling-div {
        grid-auto-columns: 15%;
    }
}

@media (max-width: 600px) {
    .scrolling-div {
        grid-auto-columns: 90%;
    }
    .best-sales {
        font-size: 1em;
    }
    .sneaker-name {
        font-size: 1.3em;
    }
    .sneaker-type {
        font-size: 1em;
    }
    .sneaker-price {
        font-size: 1em;
    }
}

@media (hover: hover) {
    .left-arrow:hover, .right-arrow:hover {
       background-color: #efefef;
    }
}

@media (hover: none) {
    .arrows {
        display: none;
    }
}
