
*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins' , sans-serif;
}
body{
    background-color: coral;
}
section{
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 600px;
}
.banner{
    position: relative;
    width: 100%;
    height: 100%;
    transition: 4s;
    transform-style: preserve-3d;
    display: block;    
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
   
}
section h1{
    position: absolute;
    padding-left: 30%;
    text-align: center;
    color: white;
    line-height: 650px;
    font-size: 70px;
}
.blocks{
    position: relative;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: url(../images/amir.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);  
    animation: xx 3s ease-in-out forwards ;     
}
.blocks2{
    position: relative;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background-color:hsla(190, 100%, 50%, 0.7);
    opacity: 0.7;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);  
    animation: xx 3s ease-in-out forwards ;     
}
.active{
    position: relative;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background-color:hsla(302, 62%, 56%, 0.7);
    opacity: 0.7;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    box-shadow: 0 5px 15px rgba(170, 97, 97, 0.5);  
    animation: xx2 2s ease-in-out forwards ; 
}
.active2{
    position: relative;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background-color:url(../images/amir.jpg);
    opacity: 0.7;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    box-shadow: 0 5px 15px rgba(170, 97, 97, 0.5);  
    animation: xx2 2s ease-in-out forwards ; 
}

@keyframes xx{
    0%{
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
         transform: translate3d(0, 0, 0);
       
    }
    100%{
        -webkit-transform: translate3d(0, 0, 1000px);
        -moz-transform: translate3d(0, 0, 1000px);
        transform: translate3d(0, 0, 1000px);
       
    }
}

@keyframes xx2{
    0%{
        -webkit-transform: translate3d(0, 0, 2000px);
        -moz-transform: translate3d(0, 0, 2000px);
         transform: translate3d(0, 0, 2000px);
       
    }
    100%{
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
       
    }
}