.btn {
  cursor: pointer;
  color: black;
  position: relative;
  padding: 10px 20px;
  background: white;
  font-size: 28px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  transition: all 1s;

  &:after,
  &:before {
    content: " ";
    width: 10px;
    height: 10px;
    position: absolute;
    border: 0px solid #fff;
    transition: all 1s;
  }

  &:after {
    top: -1px;
    left: -1px;
    border-top: 5px solid#b70012;
    ;
    border-left: 5px solid #b70012;
    ;
  }

  &:before {
    bottom: -1px;
    right: -1px;
    border-bottom: 5px solid #78000c;
    border-right: 5px solid #78000c;
  }

  &:hover {
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    background: rgba(0, 0, 0, .5);
    color: white;

    &:before,
    &:after {
      width: 100%;
      height: 100%;
      border-color: white;
    }
  }
}

.data-container {
  display: flex;
  align-items: center;
}

main {
  direction: rtl;
  background-color: white;
}

#span {
  color: black;
}

#hr1 {
  width: 45%;
  height: 1px;
  background-color: #ea1d21;
  margin-right: 2px;
}

#sany {
  display: flex;
  align-items: center;
}

#hr2 {
  width: 45%;
  height: 1px;
  background-color: #ea1d21;

}

#hr3 {
  width: 40%;
  height: 1px;
  background-color: #ea1d21;
  ;
}

#hr4 {
  width: 40%;
  height: 1px;
  background-color: #ea1d21;
}


.belag {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-top: 2em;
}

.belag a {
  text-decoration: none;
  color: gray;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: medium;
  font-weight: bold;
}

.belag img {
  width: 100%;
  height: 100%;
}

.belag figure {
  margin: 1em;

}

.belag figcaption {
  background-color:gainsboro;
  padding: 2em;
}

.belag figcaption:hover {
  background-color: #b70012;
}
@media screen and (max-width:1000px) {
  .belag {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2em;
  }

  .belag img {
    width: 100%;
    height: 100%;
  }

  .belag figcaption {
    width: auto;
  }

  .belag a {
    font-size: .7em;
  }
}

@media screen and (max-width:500px) {
  .belag {
    grid-template-columns: repeat(1, 1fr);

  }
}


#kamel h1 {
  text-align: center;
  margin-top: 1.5em;
  letter-spacing: 2px;
  color: gray;
}

#kamel a {
  display: flex;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  color: gray;
}

#kamel a:hover {
  color: #b70012;
}

@media screen and (max-width:1000px) {
  #kamel h1 {
    font-size: 15px;
  }
}

.container {
  position: relative;
}

.image {
  opacity: 1;
  display: block;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.container:hover .image {
  opacity: 0.3;
}

.container:hover .middle {
  opacity: 1;
}

.text {
  font-size: 16px;
  padding: 16px 32px;
}

.wrapper {
  top: 10%;
  left: 40%;
  width: 300px;
  height: 500px;
  perspective: 900px;
}

.containerr {
  position: absolute;
  top: 0%;
  width: 100%;
  height: 100%;
  transition: .5s all ease;
  transform: rotateX(60deg) scale(0.7);
  perspective: 900px;
  box-shadow: 0px 20px 50px #7b88d1;
  animation: entry 1s linear 1;

}
/* عکسهای بزرگ */
#bs12{
  margin: 2.3em;
}
#bs12 figure img{
  width: 100%;
}
#bs12 figure{
  border: 2px solid rgb(78, 78, 78) ;
}
#bs12 figcaption{
  font-size: 1em;
}
#bs12 a{
 border: 1px solid blue;
 text-decoration: none;
margin: 26px 12px;
}
#bs12 div{
  display: flex;
 justify-content: space-between;
}
@media screen and (max-width:551px){
  #bs12{
    margin: 0;
  }
  #bs12 figcaption{
font-size: .6em;
  }
}
@media screen and (max-width:300px){
  #bs12 figcaption{
font-size:10px ;

  }
  #bs12 p{
    display: none;
  }
  #bs12 h1{
    font-size:small ;
  }
}
/* پرسش های متداول */
#titrr {
  text-align: center;

}

#titrr h1 {
  color: rgb(196, 0, 0);
}

#titrr hr {
  width: 25%;
  height: 2px;
  background-color: rgb(78, 78, 78);


}

#ss1 {
  text-align: center;
  background-color:rgb(78, 78, 78);
  margin: 5px 4em;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.ss {
  border: 1px solid white;
}

.ss h2 {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.884);
}

#ss1 summary {
  color: black;
  font-size: .8rem;
}

@media screen and (max-width:1000px) {
  #titrr h1 {
    font-size: 1.2em;
  }
  #titrr h2{
    font-size: .8em;
      }
      #ss1{
        display: grid;
        grid-template-columns: repeat(2,1fr);
      }
      #ss1 h2{
        font-size: .8em;
      }
      #ss1 summary{
        font-size: .6em;
      }
}

@media screen and (max-width:700px) {
  #titrr h1 {
    font-size: 1.2em;
  }
  #titrr h2{
    font-size: .8em;
      }
      #ss1{
        display: grid;
        grid-template-columns: repeat(1,1fr);
      }
      #ss1 h2{
        font-size: .8em;
      }
      #ss1 summary{
        font-size: .6em;
      }
}
@media screen and (max-width:578px) {
  #titrr h1 {
    font-size: 1em;
  }
  #titrr h2{
    font-size: .6em;
      }
      #ss1{
        display: grid;
        grid-template-columns: repeat(1,1fr);
      }
      #ss1 h2{
        font-size: .6em;
      }
      #ss1 summary{
        font-size: .6em;
      }
}
@media screen and (max-width:450px) {
  #titrr h1 {
    font-size: 1em;
  }
  #titrr h2{
    font-size: .6em;
      }
      #ss1{
        display: grid;
        grid-template-columns: repeat(1,1fr);
      }
      #ss1 h2{
        font-size: .6em;
      }
      #ss1 summary{
        font-size: .6em;
      }
}
/* عکس دوتایی */
#m2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  direction: rtl;
}

#m2 img {
  margin: auto;
}

#m3 {
  text-align: center;
  line-height: 1.5em;
}
#m3 h4,h3{
  color:#e20611 ;
}
#m3 a{
  color:black ;
  background-color: #e20611;
  border-radius: 10px;
  text-decoration: none;
  margin: 0 1em;
}
@media only screen and (max-width: 1080px) {
  #m2 {
      grid-template-columns: 1fr;
  }
}
@media screen and (max-width:350px) {
 #m2{
  margin: 0 1em;
 }
  #m2 img{
width: 80%;
  }
  #m3{
   font-size:.8em;
  }
  #m3 a {
    font-size:12px;
  }
}
/* پایان بلاگ */

/* مین خدمات */
/* تعمیرات گیربکس */
#khadam1{
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  text-align: center;
  margin: 0 4em;
}
#dkhadam1{
  background-color: gainsboro;
 
 
}
#dkhadam1 p{
  font-size:small ;
}
#dkhadam1 h1{
  border: 2px solid #e20611;
  margin: 5px 4em;
}
#khadam1 img{
  width: 100%;  
  height: 100%;
}
@media screen and (max-width:1000px) {
  #khadam1{
  grid-template-columns: repeat(1,1fr);
  }
 
  #dkhadam1 p{
   font-size: 12px;
  }
}
@media screen and (max-width:620px) {
  #khadam1{
  grid-template-columns: repeat(1,1fr);
  margin: .5em .5em ;
  }
 
  #dkhadam1 p{
   font-size: 12px;
  }
  #dkhadam1 h1{
font-size: 15px;
  }
}
@media screen and (max-width:320px) {
  #khadam1{
  grid-template-columns: repeat(1,1fr);
  margin: 0 0;
  }
 
  #dkhadam1 p{
   font-size: 8px;
  }
  #dkhadam1 h1{
font-size: 8px;
  }
}
@media screen and (max-width:320px) {
  #khadam1{
  grid-template-columns: repeat(1,1fr);
  margin: 0 0;
  }
 
  #dkhadam1 p{
   font-size: 8px;
  }
  #dkhadam1 h1{
font-size: 8px;
  }
}

/* سوالات */
#khs2 {
  text-align: center;
 
  margin: 5px 7em;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media screen and(max-width:400px) {
  #khs2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
}
/* تعمیر موتور */
#khadam2{
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  text-align: center;
  margin: 2em 4em;
}
#dkhadam2{
  background-color: gainsboro;
 
}
#dkhadam2 p{
  font-size:small ;
}
#dkhadam2 h1{
  border: 2px solid #e20611;
  margin: 1em 4em;
 
}
#khadam2 img{
  width: 100%;  
  height: 100%;
}
@media screen and (max-width:1000px) {
  #khadam2{
  grid-template-columns: repeat(1,1fr);
  }
 
  #dkhadam2 p{
   font-size: 12px;
  }
}
@media screen and (max-width:620px) {
  #khadam2{
  grid-template-columns: repeat(1,1fr);
  margin: .7em .5em ;
  }
 
  #dkhadam2 p{
   font-size: 12px;
  }
  #dkhadam2 h1{
font-size: 15px;
  }
}
@media screen and (max-width:320px) {
  #khadam2{
  grid-template-columns: repeat(1,1fr);
  margin: .7em 0;
  }
 
  #dkhadam2 p{
   font-size: 8px;
  }
  #dkhadam2 h1{
font-size: 8px;
  }
}
@media screen and (max-width:320px) {
  #khadam2{
  grid-template-columns: repeat(1,1fr);
  margin: .7em 0;
  }
 
  #dkhadam2 p{
   font-size: 8px;
  }
  #dkhadam2 h1{
font-size: 8px;
  }
}
/* سوالات سری دوم */
#khs3{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  background-color: rgb(78, 78, 78);
  text-align: center;
 margin: 0 4em;
}
@media screen and (max-width:600px) {
 #khs3{
  grid-template-columns: repeat(1,1fr);
  margin: 0 0;
 }
}
#kh3 {
  margin: 3em 4em 0em 0em;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  justify-content: center;
  gap: 0px 10px;
}

#kh3 img {
  width: 60%;
  height: 100%;
  object-fit: cover;
}

#kh3 h1 {
  font-size: 1.3rem;
  border: 2px solid #e20611;
  margin: 0em 9em;
}

@media screen and(max-width:950px) {
  #kh3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    text-align: center;
  }

  #kh3 h1,
  p {
    font-size: .6rem;
  }

  #kh3 img {
    width: 45%;
    height: 85%;
  }
}

@media screen and(max-width:650px) {
  #kh3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    text-align: center;
  }

  #kh3 h1,
  p {
    font-size: .5rem;
  }

  #kh3 img {
    width: 35%;
    height: 65%;
  }
}
/* ویدئو */
#khadamat4{  
  display:flex ;
 align-items: center;
 justify-content: center;

 
}

#khadamat4 video {
 width: auto;
 height: 20em;
  border-radius: 5px;  
  background-color: black;
 }

@media screen and (max-width:500px){
  #khadamat4 video{
width:22em;
height:10em;
  }

}
/* فضای مجازی */
#titrr1 {
  text-align: center;

}

#titrr1 h1 {
  color: rgb(196, 0, 0);
}
#titrr1 a{
  color:white;
  font-size:2em ;
  text-decoration: none;
  border: 1px solid gainsboro;
  background-color: #e20611;
  border-radius: 12px;
}
#titrr1 hr {
  width: 25%;
  height: 2px;
  background-color: rgb(78, 78, 78);


}

@media screen and (max-width:1000px) {
  #titrr1 h1 {
    font-size: 1.2em;
  }
  #titrr1 a{
    font-size: 1.5em;
  }
}

@media screen and (max-width:700px) {
  #titrr1 h1 {
    font-size: 1.2em;
  }
  #titrr1 a{
    font-size: 1em;
  }
}

@media screen and (max-width:400px) {
  #titrr1 h1 {
    font-size: .7em;
  }
  #titrr1 a{
    font-size: .7em;
  }
}
#s14 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  text-align: center;

}

#s14 img {
  width: 20%;
}




@media screen and (max-width:500px) {
  #s14 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 1em 0 1em;
  }

  #s14 img {
    width: 40%;
  }

 
}
/* خدمات با ایکونها */
#s4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  text-align: center;

}

#s4 img {
  width: 20%;
}

#s4 a {
  text-decoration: none;
  font-size: 1em;
  color: black;

}

@media screen and (max-width:1000px) {
  #s4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  #s4 a {
    text-decoration: none;
    font-size: .7em;
  }
}

@media screen and (max-width:600px) {
  #s4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 1em 0 1em;
  }

  #s4 img {
    width: 40%;
  }

  #s4 a {
    text-decoration: none;
    font-size: .7em;
  }
}

@media screen and (max-width:300px) {
  #s4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 1em 0 1em;
  }

  #s4 img {
    width: 60%;
  }

  #s4 a {
    text-decoration: none;
    font-size: .7em;
  }
}
@media screen and (max-width:200px) {
  #s4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 1em 0 1em;
  }

  #s4 img {
    width: 60%;
  }

  #s4 a {
    text-decoration: none;
    font-size: .7em;
  }
}
/* مین لوگین */
#gin1{
display: grid;
grid-template-columns: repeat(2,1fr);
text-align: center;
justify-content: center;
align-items: center;
}
#gin1 h2{
font-size: 1em;
}
#gin1 a{
  text-decoration: none;
  color: #e20611;
  font-size: 1em;
}
@media screen and (max-width:439px) {
  #gin1 h2{
    font-size: .7em;
    }
    #gin1 a{
     
      font-size: .7em;
    }
}
@media screen and (max-width:439px) {
  #gin1 {
   grid-template-columns: repeat(1,1fr);
    }
   
}
@media screen and (max-width:145px) {
  #gin1 h2{
    font-size: .5em;
    }
    #gin1 a{
     
      font-size: .5em;
    }
}

#gin2{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  text-align: center;
  justify-content: center;
  align-items: center;
}
#gin2 p{
font-size: 1em;
}
#gin2 img{
width: 30em;
border-radius: 10px;
height: 16em;
}
@media screen and (max-width:1000px) {
  #gin2 p{
    font-size: .8em;
  }
  #gin2 img{
    width:20em ;
    height: 12em;
  }
}
@media screen and (max-width:811px) {
  #gin2 p{
    font-size: .6em;
  }
  #gin2 img{
    width:17em ;
    height: 10em;
  }
}
@media screen and (max-width:603px) {
  #gin2 p{
    font-size: .6em;
  }
  #gin2 img{
    width:15em ;
    height: 10em;
  }
}
@media screen and (max-width:493px) {
  #gin2{
    grid-template-columns: repeat(1,1fr);
  }
  #gin2 img{
    width:20em ;
    height: 10em;
  }
}
@media screen and (max-width:333px) {
  #gin2 p{
    font-size: .6em;
  }
  #gin2 img{
    width:15em ;
    height: 10em;
  }
}
@media screen and (max-width:247px) {
  #gin2 p{
    font-size: 10px;
  }
  #gin2 img{
    width:12em ;
    height: 10em;
  }
}
@media screen and (max-width:175px) {
  #gin2 p{
    font-size: 8px;
  }
  #gin2 img{
    width:11em ;
    height: 10em;
  }
}
#gin3{
  display: grid;
  grid-template-columns: repeat(1,1fr);
  text-align: center;
  align-items: center;
  justify-content: center;
  border: 1px solid gainsboro;
  border-radius: 5px;
  background-color: #e20611;
  margin: 0 3em;
}
#gin3 h1{
 
  font-size: 2em;
}
#gin3 a{
  text-decoration: none;
  color: black;
font-size: 1.3em;
font-weight: bold;

}
@media screen and (max-width:671px) {
  #gin3{
    margin: 0 8em;
  }
  #gin3 h1{
 
    font-size: 1em;
  }
  #gin3 a{
    font-size: .8em;
  }
}
@media screen and (max-width:520px) {
  #gin3{
    margin: 0 5em;
  }
  #gin3 h1{
 
    font-size: 1em;
  }
  #gin3 a{
    font-size: .8em;
  }
}
@media screen and (max-width:359px) {
  #gin3{
    margin: 0 2em;
  }
  #gin3 h1{
 
    font-size: 1em;
  }
  #gin3 a{
    font-size: .8em;
  }
}
@media screen and (max-width:243px) {
  #gin3{
    margin: 0 0em;
  }
  #gin3 h1{
 
    font-size: .8em;
  }
  #gin3 a{
    font-size: .7em;
  }
}
/* ویدیو */
#s5 {
  margin: .5em 2em 0em 2em;
}


#s5 video {
  width: 100%;
  height: 20em;
  border-radius: 5px;
  background-color: black;
}



@media screen and (max-width:300px) {
  #s5 {
    margin: 0 1.5em 0 1em;
  }

  #s5 video {
    width: 10em;
    height: 10em;
    border-radius: 5px;
    background-color: black;
  }
}
/* مین سایگن اپ */

  #skhadam1{
    direction: ltr;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    text-align: center;
    margin: .5em 6em;
  }
  #sdkhadam2{
    background-color: gainsboro;  
    
  }
  #sdkhadam2 p{
    font-size:1em ;
  }
  #sdkhadam2 h1{
    border: 2px solid #e20611;   
    font-size: 2em;
  }
  #skhadam1 img{
    width: 100%;  
    height: 100%;
  }
  @media screen and (max-width:1000px) {
    #skhadam1{
    grid-template-columns: repeat(1,1fr);
    }
   #skhadam2{
    height: 100%;
   }
    #sdkhadam2 p{
     font-size: 12px;
    }
    #skhadam1 img{
      height: 100%;
    }
  }
  @media screen and (max-width:620px) {   
   #skhadam2{
    height: auto;
   }
    #sdkhadam2 p{
     font-size: 10px;
    }
    #sdkhadam2 h1{
  font-size: 15px;
    }
  }
  @media screen and (max-width:320px) {
   
    #sdkhadam2 p{
     font-size: 6px;
    }
    #sdkhadam2 h1{
  font-size: 8px;
    }
  }
 /* مین روغن */
 #asliro{
text-align: center;
 }
 #asliro img{
  width: 50%;
 }
 @media screen and(max-width:600px) {
  #asliro{
    margin-left: auto;
    margin-right: auto;
  }
 }
 
 #roghan64{
display: grid;
grid-template-columns: repeat(3,1fr);
text-align: center;
justify-content: center;
align-items: center;
margin: 0 2em;

 }
 #roghan64 div{
 margin: 0 .5em;
 border: 2px solid rgb(78, 78, 78);
 background-color: gainsboro;

 }
 #roghan64 h1{
  color: #e20611;
  font-size: 1.5em;
 }
 #roghan64 p{
  font-size: 1em;
 }
 @media screen and (max-width:1000px) {
  #roghan64{
    grid-template-columns: repeat(1,1fr);
    margin: .5em .5em;
  } 
 }
 @media screen and (max-width:400px) {
  #roghan64 h1{
    
    font-size: .9em;
   }
   #roghan64 p{
    font-size: .7em;
   } 
 }
 /* تگ ها */
 #tagha{
  display: grid;
  grid-template-columns: repeat(5,1fr);
text-align: center;
margin: 0 0;
background-color:rgb(78, 78, 78);
 }
 #tagha a{
text-decoration: none;
color:gainsboro;
font-size: .8em;
margin: .5em .5em;
border-bottom: 1px solid black;

 }
 @media screen and (max-width:1000px) {
  #tagha{
    grid-template-columns: repeat(1,1fr);
    margin: 0 0;
  }
  #tagha a{
    font-size: .5em;
  }
 }
 