* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
@font-face {
  src: url(fonts/IRANSansWeb_Bold.ttf);
  font-family: "IranSans";
}
@font-face {
  src: url(fonts/yekannumbers-regular.woff);
  font-family: "Yekan";
}
a,
p,
i,
label,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
  text-decoration: none;
  font-family: "IranSans";
  color: #6c4c4c;
}
span.Yekan {
  font-family: "Yekan";
}
main {
  width: 100%;
  background-color: #90ee90;
  text-align: center;
  line-height: 2rem;
}
main > div:first-of-type {
  position: relative;
  height: 600px;
}
main > div:first-of-type::after {
  background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 255, 0, 0.4)), to(rgba(15, 15, 97, 0.4)));
  background-image: linear-gradient(to right, rgba(0, 255, 0, 0.4), rgba(15, 15, 97, 0.4));
}
main > div:first-of-type > img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  opacity: 0.8;
}
main > div:first-of-type > div {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  padding: 2rem 1rem;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 5px;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
}
main > div:first-of-type > div > h3,
main > div:first-of-type > div > h5,
main > div:first-of-type > div > h3 > span,
main > div:first-of-type > div > h3 > span {
  color: yellow;
  font-size: 1rem;
}
main > div:first-of-type > div:first-of-type {
  top: 20%;
  -webkit-animation-name: initiate;
  animation-name: initiate;
}
main > div:first-of-type > div:nth-of-type(2) {
  top: 40%;
  -webkit-animation-name: initiate2;
  animation-name: initiate2;
}
main > section {
  margin: 0 1rem;
  padding: 1rem;
  border: 3px solid gray;
  border-radius: 15px;
  direction: rtl;
}
main > section:nth-of-type(1) {
  margin: 1rem;
}
main > section > h3 {
  text-align: center;
  padding: 1rem;
}
main > section > p {
  line-height: 2rem;
  text-align: justify;
}
main > section:nth-of-type(2) {
  border: none;
}
main > section:nth-of-type(2) > h3 {
  text-align: center;
  padding: 1rem;
}
main > section:nth-of-type(2) > div {
  width: 70%;
  height: 2000px;
  margin-left: auto;
  margin-right: auto;
  /* border: 3px outset gray; */
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
main > section:nth-of-type(2) > div > div#kalite_header {
  color: #6c4c4c;
  background-color: white;
  border-radius: 5px;
  padding: 2rem;
  position: relative;
  text-align: center;
  direction: rtl;
  z-index: 10;
}
main > section:nth-of-type(2) > div > div#kalite_header > div {
  position: absolute;
  top: 1rem;
  right: 2rem;
}
main > section:nth-of-type(2) > div > div#kalite_header > div > p {
  text-align: left;
  font-size: 0.75rem;
}
main > section:nth-of-type(2) > div > div#kalite_header > table {
  border-top: 3px solid #6c4c4c;
  margin-top: 1rem;
  padding-top: 1rem;
  width: 100%;
  font-family: "IranSans";
}
main > section:nth-of-type(2) > div > div#kalite_header > table tr > td {
  padding: 1rem;
}
main > section:nth-of-type(2) > div > div.cell {
  position: absolute;
  border: 1px solid gray;
  border-radius: 0 0 5px 5px;
  top: 0;
  width: 100%;
  -webkit-transition: 1s;
  transition: 1s;
  -webkit-transition-timing-function: ease-in-out;
  transition-timing-function: ease-in-out;
}
main > section:nth-of-type(2) > div > div.cell::after {
  content: "";
  background-image: url(../images/fastoni_background.jpg);
  opacity: 0.1;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
main > section:nth-of-type(2) > div > div.cell > p {
  cursor: pointer;
  position: absolute;
  padding: 1rem;
  color: white;
  text-align: center;
  line-height: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 1;
}
main > section:nth-of-type(2) > div > div.cell > p > span {
  color: white;
}
main > section:nth-of-type(2) > div > div#kalite_header > p {
  display: none;
}
@-webkit-keyframes initiate {
  from {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  to {
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}
@keyframes initiate {
  from {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  to {
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}
@-webkit-keyframes initiate2 {
  from {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  to {
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}
@keyframes initiate2 {
  from {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  to {
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}
@media screen and (max-width: 1160px) {
  main > section:nth-of-type(2) > div > div#kalite_header > div {
    top: 0;
    right: 0;
    position: relative;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 1rem;
  }
}
@media screen and (max-width: 626px) {
  main > section:nth-of-type(2) > div > div#kalite_header,
  main > section:nth-of-type(2) > div > div.cell {
    font-size: 0.75rem;
  }
}
@media screen and (max-width: 566px) {
  main > section:nth-of-type(2) > div {
    width: 90%;
  }
}
@media screen and (max-width: 467px) {
  main > div:nth-of-type(1) > div > h3,
  main > div:nth-of-type(1) > div > h5,
  main > div:nth-of-type(1) > div > h3 > span,
  main > div:nth-of-type(1) > div > h5 > span {
    font-size: 0.75rem;
  }
}
@media screen and (max-width: 461px) {
  main > section:nth-of-type(2) > div > div#kalite_header > table {
    display: none;
  }
  main > section:nth-of-type(2) > div > div#kalite_header > p {
    display: block;
    padding-top: 1rem;
  }
}
@media screen and (max-width: 375px) {
  main > section:nth-of-type(2) > div.cell_container > div.cell > p.modal_opener {
    width: 90%;
  }
  main > div:first-of-type > div {
    padding: 1rem;
  }
}
