@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
html,body{
    height: 100%;
    width: 100%;
    display:grid;
    place-items: center;
    background: linear-gradient(to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);
    overflow-y: hidden;
    background-image: url('Img_1.png');
    background-size: cover;
    position: relative;
     /* border: 1px solid black; */
    /* margin: 5rem auto; */

  }
  .play{
    place-items: left;
    
  }
  .topleft {
    position: absolute;
    color: greenyellow;
    top: 10px;
    left: 16px;
    font-size: 18px;
  }
  
.surface {
  height: 140px;
  width: 500%;
  background:url(Img_02.png);
  display: block;
  position: absolute;
  bottom: 0%;
  left: 0%;
  background-repeat:repeat-x;
  
}
.car{
  position: absolute;
  bottom: 6%;
  left: 15%;

}
@keyframes moveRight{
  100%{transform:translateX(-2950px) ;}
}

@keyframes suspension{
  100% {
    transform: translateY(-1px);
  }
  50%{
    transform: translateY(2px);
  }
  0%{
    transform: translateY(-1px);
  }
}
  ::selection{
    color: #eaebebcc;
    background: #343535;
  }
 .moveRight{
  animation: moveRight 5s linear infinite;
 }
 .suspension{
  animation: suspension 1s linear infinite;
 }
  .wrapper {
    height: 400px;
    width: 320px;
    position: relative;
    transform-style: preserve-3d;
   perspective: 1000px;
  }
  .wrapper .card{
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 5px;
    background: #eaebebcc;
    border-radius: 10px;
    transform: translateY(0deg);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow: 0px 10px 15px rgba(0,0,0,0.1);
    transition: transform 0.7s cubic-bezier(0.4,0.2,0.2,1);
  }
  .wrapper:hover > .front-face{
    transform: rotateY(-180deg);
  }
  .wrapper .card img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  .wrapper .back-face{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    transform: rotateY(180deg);
  }
  .wrapper:hover > .back-face{
    transform: rotateY(0deg);
  }
  .wrapper .back-face img{
    height: 150px;
    width: 150px;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(375deg,#acaeae, #343535);
  }
  .wrapper .back-face .info{
    text-align: center;
  }
  .back-face .info .title{
    font-size: 30px;
    font-weight: 500;
  }
.icons{
  display: inline-flex;
}
.icons a{
  margin: 0 15px;
  text-decoration: none;
  color: #fff;
  display: block;
  position: relative;
}
.icons a .layer{
  width: 30px;
  height: 30px;
  transition: transform 0.3s;
}
.icons a:hover .layer{
  transform: rotate(-35deg) skew(20deg);
}
.icons a .layer span{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border: 1px solid #fff;
  border-radius: 5px;
  transition: all 0.3s;
}
.icons a .layer span.fab{
  font-size: 20px;
  line-height: 30px;
  text-align: center;
}
.icons a .layer span.fa-solid{
    font-size: 20px;
    line-height: 30px;
    text-align: center;
  }
.icons a:hover .layer span:nth-child(1){
  opacity: 0.2;
}
.icons a:hover .layer span:nth-child(2){
  opacity: 0.4;
  transform: translate(5px, -5px);
}
.icons a:hover .layer span:nth-child(3){
  opacity: 0.6;
  transform: translate(10px, -10px);
}
.icons a:hover .layer span:nth-child(4){
  opacity: 0.8;
  transform: translate(15px, -15px);
}
.icons a:hover .layer span:nth-child(5){
  opacity: 1;
  transform: translate(20px, -20px);
}
.icons a:nth-child(1) .layer span,
.icons a:nth-child(1) .text{
  color: #0a66c2;
  border-color: #0a66c2;
}
.icons a:nth-child(2) .layer span,
.icons a:nth-child(2) .text{
  color: #2b3137;
  border-color: #2b3137;
}
.icons a:nth-child(3) .layer span,
.icons a:nth-child(3) .text{
  color: #5865f2;
  border-color: #5865f2;
}
.icons a:nth-child(4) .layer span,
.icons a:nth-child(4) .text{
  color: #1da1f2;
  border-color: #1da1f2;
}
.icons a:nth-child(5) .layer span,
.icons a:nth-child(5) .text{
  color: #0489c9;
  border-color: #0489c9;
}
.icons a:hover:nth-child(1) .layer span{
  box-shadow: -1px 1px 3px #0a66c2;
}
.icons a:hover:nth-child(2) .layer span{
  box-shadow: -1px 1px 3px #2b3137;
}
.icons a:hover:nth-child(3) .layer span{
  box-shadow: -1px 1px 3px #5865f2;
}
.icons a:hover:nth-child(4) .layer span{
  box-shadow: -1px 1px 3px #1da1f2;
}
.icons a:hover:nth-child(5) .layer span{
  box-shadow: -1px 1px 3px #0489c9;
}
.icons a .text{
  position: absolute;
  left: 50%;
  bottom: -5px;
  opacity: 0;
  font-weight: 500;
  transform: translateX(-50%);
  transition: bottom 0.3s ease, opacity 0.3s ease;
}
.icons a:hover .text{
  bottom: -35px;
  opacity: 1;
}
nav{
  position: absolute;
  top: -20px;
  right: 0;
  width: 80px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
nav .nav-content{
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
}
.nav-content .toggle-btn,
.nav-content span a{
  height: 30px;
  width: 30px;
  background: #acaeae;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
.nav-content .toggle-btn{
  font-size: 15px;
  color: #0e2431;
  z-index: 100;
  cursor: pointer;
  transform: rotate(-225deg);
  transition: all 0.6s ease;
}
nav.open .toggle-btn{
  transform: rotate(0deg);
}
.nav-content span{
  position: absolute;
  transition: all 0.6s ease;
  opacity: 0;
}
nav.open .nav-content span{
  transform: rotate(calc(var(--i) * (360deg/8))) translateY(45px);
  opacity: 1;
}
.nav-content span a{
  text-decoration: none;
  transform: rotate(45deg);
}
.nav-content span a i{
  font-size: 24px;
  color: #0e2431;
  transform: rotate(calc(var(--i) * (360deg/ -8)));
  opacity: 0.8;
  transition: 0.2s;
}
.nav-content span a:hover i{
  opacity: 1;
}
.font1{
  position: center;
  bottom: 1px;
  width: 100%;
  font-size: 10px;
  /* height: 2.5rem;  */
  /* position: center;
  font-size: 10px; */
}

@media screen and (max-width: 768px) {
  body {
    height: 100%;
    width: 100%;
    display:grid;
    place-items: center;
    background: linear-gradient(375deg,#acaeae, #343535);
    overflow-y: hidden;
  }
  .surface {
    display: none;
  }
  .car{
   display: none;
  }
  .topleft{
    display: none;
  }
  .box{
    position: absolute;
    overflow: hidden;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: calc(832px /6);
    height: 139px;
    background:url(spritestrip.png);
    animation: animate 1s steps(6) infinite;
  }
}

.box{
  position: absolute;
  overflow: hidden;
  top:50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: calc(832px /6);
  height: 139px;
  background:url(spritestrip.png);
  /* animation: animate 1s steps(6) infinite; */
}
@keyframes animate 
{
  from
  {
    background-position: 0;
  }
  to{
    background-position: -832px;
  }
}

.stop{
  animation: animate 1s steps(6) infinite;
}