html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

@font-face {
  font-family: "B Nazanin";
  src: url("project/font/B-NAZANIN/B-NAZANIN.TTF") format("truetype");
  font-style: normal;
  font-weight: normal;
}
body {
  font-family: "B Nazanin";
  margin: 0;
  padding: 0;
  background-color: Tan;
}

.navar div img {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  transition: 0.5s;
}

.item1, .item2, .item3 {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  font-family: "Georgia";
}

.navar {
  display: flex;
  background-color: IndianRed;
  padding: 5px;
}

@media screen and (max-width: 600px) {
  .item1, .item3 {
    font-size: 1.2rem;
    letter-spacing: 4px;
  }
  .navar div img {
    max-height: 105px;
  }
}
@media screen and (min-width: 601px) and (max-width: 900px) {
  .item1, .item3 {
    font-size: 1.6rem;
    letter-spacing: 6px;
  }
  .navar div img {
    max-height: 105px;
  }
  .item1, .item3 {
    flex: 1 1 70%;
  }
  .item2 {
    flex: 1 1 30%;
  }
}
@media screen and (min-width: 901px) {
  .item1, .item3 {
    font-size: 2.9rem;
    letter-spacing: 8px;
  }
  .navar div img {
    max-height: 120px;
  }
  .item2 {
    flex: 1 1 40%;
  }
}
.item1, .item3 {
  text-shadow: 1px 1px 8px snow;
}

.navar div img:hover {
  transform: rotateY(180deg);
}

.vorood {
  background-color: DarkSlateGray;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 350px;
  height: 210px;
  border-radius: 12px;
  padding: 10px;
  justify-content: center;
  align-items: center;
}

.itemb img {
  width: 100%;
  height: auto;
  max-width: 150px;
}

.itema {
  flex: 1 1 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.7rem;
  color: snow;
  line-height: 1;
}

.itemb {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.itemc {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.itemc button {
  text-align: center;
  padding: 4px;
  width: 120px;
  font-family: "B Nazanin";
  font-size: 1.1rem;
  border: none;
  border-radius: 3px;
  font-weight: bold;
  transition: color 0.2s, background-color 0.2s, transform 0.1s;
}

.bb img {
  transform: rotate(40deg);
}

.sport {
  transform: none;
}

.carts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 10px;
}

@media screen and (min-width: 800px) {
  .vorood {
    flex: 1 1 40%;
    height: 215px;
  }
  .carts {
    padding: 15px;
  }
}
@media screen and (max-width: 900px) {
  .itema {
    padding: 10px;
    font-size: 2.1rem;
  }
  .vorood {
    width: 95%;
  }
}
.itemc button:hover {
  color: white;
  background-color: SeaGreen;
}

.itemc button:active {
  transform: translateY(1.1px);
}

.headform {
  grid-area: header;
  margin-bottom: 0;
  padding-right: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: teal;
  font-size: 1.9rem;
}

.matninform {
  unicode-bidi: embed;
  direction: rtl;
  grid-area: matn;
  display: flex;
  align-items: center;
  line-height: 2;
  font-size: 1.3rem;
  text-align: justify;
  text-align-last: center;
  padding: 8px;
  color: DarkSlateGrey;
}

.picform {
  grid-area: pic;
  display: flex;
  justify-content: center;
  align-items: center;
}

.picform img {
  max-width: 100%;
  height: auto;
  max-height: 250px;
}

.inform {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "header header" "matn pic";
  gap: 0;
  background-color: MistyRose;
}

@media screen and (max-width: 725px) {
  .inform {
    grid-template-areas: "header header" "matn matn" "pic pic";
    margin-top: 10px;
  }
  .headform {
    justify-content: center;
  }
  .picform img {
    max-height: 300px;
  }
  .matninform {
    font-size: 1.2rem;
  }
  .headform {
    font-size: 1.7rem;
  }
}
input[type=search] {
  padding: 10px;
  border: none;
  padding-right: 35px;
  font-size: 1.1rem;
  border-radius: 6px;
  background-color: WhiteSmoke;
  opacity: 0.6;
}

.iconposition {
  position: relative;
}

.iconposition i {
  position: absolute;
  right: 2px;
  top: 9px;
  transform: rotateY(180deg);
  font-size: 25px;
  color: gray;
}

.search {
  padding: 10px;
}

.itemdo, .itemse, .itemchar, .itempang, .itemshish, .itemhaf {
  text-align: center;
  flex: 1 1 100%;
  padding: 5px;
  font-size: 1.3rem;
  color: snow;
  background-color: teal;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.2s, background-color 0.1s;
  cursor: pointer;
  user-select: none;
}

.search {
  margin: 8px 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 6px;
}

@media screen and (max-width: 650px) {
  .search {
    flex-wrap: wrap;
  }
  input {
    width: 100%;
  }
  .itemyek {
    width: 100%;
  }
  .itemdo, .itemse, .itemchar, .itempang, .itemshish, .itemhaf {
    flex: 0 1 45%;
  }
  input {
    font-size: 1rem;
  }
}
@media screen and (min-width: 651px) and (max-width: 950px) {
  .search {
    flex-wrap: wrap;
  }
  .itemdo, .itemse, .itemchar, .itempang, .itemshish, .itemhaf {
    flex: 1 1 45%;
  }
  .itemyek {
    flex: 1 1 100%;
  }
  input {
    width: 100%;
  }
}
input[type=search]:focus {
  outline: none;
  opacity: 1;
}

.itemdo {
  background-color: Tomato;
}

.itemse {
  background-color: SeaGreen;
}

.itemchar {
  background-color: Brown;
}

.itempang {
  background-color: DarkMagenta;
}

.itemshish {
  background-color: DarkGoldenRod;
}

.itemdo:hover {
  transform: translateY(-2px);
}

.itemse:hover {
  transform: translateY(-2px);
}

.itemchar:hover {
  transform: translateY(-2px);
}

.itempang:hover {
  transform: translateY(-2px);
}

.itemshish:hover {
  transform: translateY(-2px);
}

.itemhaf:hover {
  transform: translateY(-2px);
}

.itemdo:active {
  background-color: silver;
}

.itemse:active {
  background-color: silver;
}

.itemchar:active {
  background-color: silver;
}

.itempang:active {
  background-color: silver;
}

.itemshish:active {
  background-color: silver;
}

.itemhaf:active {
  background-color: silver;
}

.parent1 {
  width: 200px;
  height: 200px;
  position: relative;
  perspective: 550px;
  border-radius: 5px;
}

.parent2 {
  transform-style: preserve-3d;
  transition: 0.5s;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

.parent2 .front, .back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 5px;
}

.front img {
  width: 100%;
  max-width: 250px;
  height: 100%;
  max-height: 250px;
  background-color: Plum;
  border-radius: 5px;
}

.back {
  background-color: teal;
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.back button {
  padding: 5px;
  border: none;
  font-size: 1.1rem;
  border-radius: 3px;
  transition: 0.2s;
}

.back button:hover {
  background-color: SteelBlue;
  color: white;
}

.back button:active {
  transform: translateY(3px);
}

.parent1:hover .parent2 {
  transform: rotateY(-180deg);
}

.persons {
  background-color: PaleGoldenRod;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: space-around;
}

.person1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  align-content: center;
  flex: 0 1 28%;
}

figcaption {
  flex: 1 1 100%;
}

figcaption h2 {
  background-color: white;
  margin: 10px auto;
  padding: 3px;
  border-radius: 4px;
  white-space: nowrap;
  width: 60%;
  max-width: 200px;
}

@media screen and (max-width: 600px) {
  .person1 {
    flex: 1 1 100%;
  }
}
@media screen and (min-width: 601px) {
  figcaption h2 {
    width: 100%;
  }
}
@media screen and (min-width: 1200px) {
  .persons {
    flex-wrap: nowrap;
  }
}

/*# sourceMappingURL=style.css.map */
