#ma {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  direction: rtl;
  padding-inline: 3em;
  align-items: center;
  justify-items: center;
}

#m1 {
  text-align: center;
  line-height: 1.5em;
  font-size: larger;
  font-weight: bold;
 
}
#m1 p{
  font-size: 1em;
}
#m1 a {
  text-decoration: none;
  border: 1px solid gray;
  border-radius: 5px;
  background-color: rgb(220 234 239);
 font-size: 1em;
  color: black;
}
#m1 h1{
  font-size: 1.5em;
}

@media only screen and (max-width: 1112px) {
  #ma {
    grid-template-columns: 1fr;

  }
}

@media only screen and (max-width: 619px) {
  #ma {
    padding: 0;
  }
}

@media only screen and (max-width: 619px){
  #m1 h1{
font-size: 1em;
  }
  #m1 p{
font-size:.7em ;
  }
  #m1 a{
    font-size: .9em;
  }
}
@media only screen and (max-width:400px){
  #m1 h1{
font-size: .8em;
  }
  #m1 p{
font-size:.4em ;
  }
  #m1 a{
    font-size: .9em;
  }
}


@media screen and (max-width:750px) {
  #maattn h1 {
    font-size: x-large;
  }

  #sedighi {
    font-size: small;
  }
}

/* از اینجا مین محدث */
.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;
}

&:after,
&:before {
  content: " ";
  width: 10px;
  height: 10px;
  position: absolute;
  border: 0px solid #fff;
  transition: all 1s;
}

.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: grid;
  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: grid;
  justify-content: space-around;
  align-items: center;
  font-size: 1em;
  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: .8em;
  }
}

@media screen and (max-width:500px) {
  .belag {
    grid-template-columns: repeat(2, 1fr);

  }

  .belag img {
    width: 100%;
    height: 100%;
  }

  .belag figcaption {
    width: auto;
  }

  .belag a {
    font-size: .7em;
  }
}
@media screen and (max-width:320px) {
  .belag {
    grid-template-columns: repeat(1, 1fr);

  }

  .belag img {
    width: 100%;
    height: 100%;
  }

  .belag figcaption {
    width: auto;
  }

  .belag a {
    font-size: .6em;
  }
}
#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;
}

.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;

}

@media screen and(max-width:950px) {
  #kamel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and(max-width:500px) {
  #kamel {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
}

/* متن های طولانی */
#tozih64{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  text-align: center;
  justify-content: center;
  align-items: center;
  margin: 0 2em;
  
   }
   #tozih64 div{
   margin: 0 .5em;
   border: 2px solid rgb(78, 78, 78);
   background-color: gainsboro;
  
   }
   #tozih64 h1{
    color: #e20611;
    font-size: 1.5em;
   }
   #tozih64 p{
    font-size: 1em;
   }
   #tozih64 a{
    text-decoration: none;
    color:#e20611;  
font-weight: bold;
   }
   @media screen and (max-width:1000px) {
    #tozih64{
      grid-template-columns: repeat(1,1fr);
      margin: .5em .5em;
    } 
    #tozih64 div{
      margin: 0 .5em;
      border: 2px solid rgb(78, 78, 78);
      background-color: gainsboro;
     
      }
   }
   @media screen and (max-width:400px) {
    #tozih64 div{
      margin: 0 .5em;
      border: 2px solid rgb(78, 78, 78);
      background-color: gainsboro;
     
      }
    #tozih64 h1{
      
      font-size: .9em;
     }
     #tozih64 p{
      font-size: .7em;
     } 
     #tozih64 a{
      font-size:.9em ;
     }
   }
/* مین خودم */
#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;
  }
}
/* #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;
  }
} */
/* 
#titrr1 {
  text-align: center;

}

#titrr1 h1 {
  color: rgb(196, 0, 0);
}

#titrr1 hr {
  width: 25%;
  height: 2px;
  background-color: rgb(78, 78, 78);


}

@media screen and (max-width:1000px) {
  #titrr1 h1 {
    font-size: 1.2em;
  }
}

@media screen and (max-width:700px) {
  #titrr1 h1 {
    font-size: 1.2em;
  }
}

@media screen and (max-width:400px) {
  #titrr1 h1 {
    font-size: .7em;
  }
} */
#titrr1 {
  text-align: center;

}

#titrr1 h1 {
  color: rgb(196, 0, 0);
}

#titrr1 hr {
  width: 25%;
  height: 2px;
  background-color: rgb(78, 78, 78);


}

@media screen and (max-width:1000px) {
  #titrr1 h1 {
    font-size: 1.2em;
  }
}

@media screen and (max-width:700px) {
  #titrr1 h1 {
    font-size: 1.2em;
  }
}

@media screen and (max-width:400px) {
  #titrr1 h1 {
    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: 7em;
    height: 10em;
    border-radius: 5px;
    background-color: black;
  }
}

/* لوگو ماشین ها */
.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;
}

&:after,
&:before {
  content: " ";
  width: 10px;
  height: 10px;
  position: absolute;
  border: 0px solid #fff;
  transition: all 1s;
}

.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: grid;
  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;
}


.beelag {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-top: 2em;
}

.beelag a {
  text-decoration: none;
  color: gray;
  display: grid;
  justify-content: space-around;
  align-items: center;
  font-size: 1em;
  font-weight: bold;
}

.beelag img {
  width: 100%;
  height: 100%;
}

.beelag figure {
  margin: 1em;

}

.beelag figcaption {
  background-color: gainsboro;
  padding: 1em;
  width: auto;
}

.beelag figcaption:hover {
  background-color: #b70012;
}
@media screen and (max-width:1000px) {
  .beelag {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2em;
  }

  .beelag img {
    width: 100%;
    height: 100%;
  }

  .beelag figcaption {
    width: auto;
  }

  .beelag a {
    font-size: .9em;
  } 
}

@media screen and (max-width:500px) {
  .beelag {
    grid-template-columns: repeat(2, 1fr);

  }

  .beelag img {
    width: 100%;
    height: 100%;
  }

  .beelag figcaption {
    width: auto;
  }

.beelag a {
    font-size: .5em;
  } }
@media screen and (max-width:320px) {
  .beelag {
    grid-template-columns: repeat(1, 1fr);

  }

  .beelag img {
    width: 100%;
    height: 100%;
  }

  .beelag figcaption {
    width: auto;
  }

  .beelag a {
    font-size: .5em;
  } 
}
/* 
@media screen and (max-width:1000px) {
  .beelag {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2em;
  }

  .beelag img {
    width: 100%;
    height: 100%;
  }

  .beelag figcaption {
    width: auto;
  }

  .beelag a {
    font-size: .9em;
  }
}

@media screen and (max-width:700px) {
  .beelag {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2em;
  }

  .beelag img {
    width: 100%;
    height: 100%;
  }

  .beelag figcaption {
    width: auto;
  }

  .beelag a {
    font-size: .9em;
    padding: 1em;
  }
}
@media screen and (max-width:500px) {
  .beelag {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
   margin: 2em 2em;
  }

  .beelag img {
    width: 100%;
    height: 100%;
  }

  .beelag figcaption {
   width: auto;
  }

  .beelag a {
    font-size: .9em;
    padding: 1em;
  }
}

@media screen and (max-width:469px) {
  .beelag {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    margin: 2em 2em;
  }

  .beelag img {
    width: 100%;
    height: 100%;
  }

  .beelag figcaption {
    width: auto;
  }

  .beelag a {
    font-size: .9em;
    padding: 0em;
  }
} */

#kamell h1 {
  text-align: center;
  margin-top: 1.5em;
  letter-spacing: 2px;
  color: gray;
}

#kamell a {
  display: flex;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  color: gray;
}

#kamell a:hover {
  color: #b70012;
}

.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;

}

@media screen and(max-width:950px) {
  #kamel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and(max-width:500px) {
  #kamell {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}


/* عکس دوتایی */
#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;
  }
}

#s10 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  margin: 0 2em;

}

#s10 div {
  border: 2px solid gainsboro;
  border-radius: 10px;
  margin: .5em 1em;
}

#s10 h1 {
  color: #e20611;
  font-size: 1em;
}

#s10 p {
  font-size: .9em;
}

#s10 a {
  color: black;
  border-radius: 2px solid gray;
  background-color: rgba(157, 157, 255, 0.87);
  text-decoration: none;
  border-radius: 10px;
  font-size: 1em;
}
@media screen and (max-width:1000px) {
  #s10{
  grid-template-columns: repeat(1,1fr);
  }
 
  #s10 p{
   font-size: 12px;
  }
  #s10 a{
    font-size: 10px;
  }
}
@media screen and (max-width:620px) {
  #s10{
  grid-template-columns: repeat(1,1fr);
  margin: .7em .5em ;
  }
 
  #s10 p{
   font-size: 12px;
  }
  #s10 h1{
font-size: 15px;
  }
}
@media screen and (max-width:320px) {
  #s10{
  grid-template-columns: repeat(1,1fr);
  margin: .7em 0;
  }
 
  #s10 p{
   font-size: 8px;
  }
  #s10 h1{
font-size: 8px;
  }
  #s10 a{
    font-size: 8px;
  }
}
@media screen and (max-width:320px) {
  #s10{
  grid-template-columns: repeat(1,1fr);
  margin: .7em 0;
  }
 
  #s10 p{
   font-size: 8px;
  }
  #s10 h1{
font-size: 8px;
  }
  #s10 a{
    font-size: 6px;
  }
}
/* 
@media screen and (max-width:1000px) {
  #s10 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width:800px) {
  #s10 h1 {
    font-size: .9em;
  }

  #s10 p {
    font-size: .7em;
  }

  #s10 a {
    font-size: .7em;
  }
}

@media screen and (max-width:700px) {
  #s10 {
    grid-template-columns: repeat(1, 1fr);
  }
  #s10 h1 {
    font-size: .8em;
  }

  #s10 p {
    font-size: .6em;
  }

  #s10 a {
    font-size: .6em;
  }
}
@media screen and (max-width:500px) {
  #s10 {
    grid-template-columns: repeat(1, 1fr);
    margin: 0 1em;
  }
  #s10 h1 {
    font-size: .6em;
  }

  #s10 p {
    font-size: .4em;
  }

  #s10 a {
    font-size: .4em;
  }
}
@media screen and (max-width:400px) {
  #s10 {
   margin: 0 1em;
  }

  #s10 h1 {
    font-size: .6em;
  }

  #s10 p {
    font-size: .5em;
  }

  #s10 a {
    font-size: .5em;
  }
}
@media screen and (max-width:200px) {
  #s10 {
   margin: 0 1em;
  }

  #s10 h1 {
    font-size: 8px  }

  #s10 p {
    font-size: 6px;
  }

  #s10 a {
    font-size: 6px;
  }
} */
#s14 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  text-align: center;

}
#s14 img {
  width: 30%;
}

@media screen and (max-width:1000px) {
  #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: 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%;
  }
 
}
