﻿body {
/*    display: flex;
    align-items: center;
    justify-content: center;*/
}

/*img {
    max-width: 100%;
}
*/
.container-all {
    position:relative ;
    max-width: 2000px;
    width: 100%;
    height:auto;
    overflow: hidden;
}

.slide {
    display: flex;
    width:100%;
    transform: translate3d(0, 0, 0, 0);
    transition: all 600ms;
    animation-name: autoplay;
    animation-duration: 30s;
    animation-direction: alternate;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}

.item-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    flex-grow: 0;
    width: 100%;
    height :30%;
    top: 0px;
    left: 0px;
}

.pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pagination-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid white;
    width: 25px;
    height: 25px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    text-align: center;
    transition: all 600ms;
}

.pagination-item:hover {
        transform: scale(3);
}

.pagination-item img {
    display: inline-block;
    max-width: none;
    height: 100%;
    transform: scale(1);
    opacity: 0;
    transition: all 600ms;
}

.pagination-item:hover img {
    opacity: 1;
    transform: scale(1);
}

input[id="1"]:checked ~ .slide {
    animation: none;
    transform: translate3d(0, 0, 0);
}

input[id="1"]:checked ~ .pagination .pagination-item[for="1"] {
    background: #fff;
}

input[id="2"]:checked ~ .slide {
    animation: none;
    transform: translate3d(calc(-100% * 1), 0, 0);
}

input[id="2"]:checked ~ .pagination .pagination-item[for="2"] {
    background: #fff;
}

input[id="3"]:checked ~ .slide {
    animation: none;
    transform: translate3d(calc(-100% * 2), 0, 0);
}

input[id="3"]:checked ~ .pagination .pagination-item[for="3"] {
    background: #fff;
}

input[id="4"]:checked ~ .slide {
    animation: none;
    transform: translate3d(calc(-100% * 3), 0, 0);
}

input[id="4"]:checked ~ .pagination .pagination-item[for="4"] {
    background: #fff;
}

input[id="5"]:checked ~ .slide {
    animation: none;
    transform: translate3d(calc(-100% * 4), 0, 0);
}

input[id="5"]:checked ~ .pagination .pagination-item[for="5"] {
    background: #fff;
}

input[id="6"]:checked ~ .slide {
    animation: none;
    transform: translate3d(calc(-100% * 5), 0, 0);
}

input[id="6"]:checked ~ .pagination .pagination-item[for="6"] {
    background: #fff;
}

@keyframes autoplay {
    16.66% {
        transform: translate3d(calc(-100% * 0), 0, 0);
    }

    33.3% {
        transform: translate3d(calc(-100% * 1), 0, 0);
    }

    50% {
        transform: translate3d(calc(-100% * 2), 0, 0);
    }

    66.6% {
        transform: translate3d(calc(-100% * 3), 0, 0);
    }

    83.3% {
        transform: translate3d(calc(-100% * 4), 0, 0);
    }

    100% {
        transform: translate3d(calc(-100% * 5), 0, 0);
    }
}
