@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root{
  --base-clr: #11121a;
  --line-clr: #42434a;
  --hover-clr: #222533;
  --text-clr: #e6e6ef;
  --accent-clr: #5e63ff;
  --secondary-text-clr: #b0b3c1;
}
*{
  margin: 0;
  padding: 0;
}


@font-face {
  font-family: Vazir;
  src: url(webkima_com_vazir-font-v29.0.2/Vazir-Regular.eot);
  src: url(webkima_com_vazir-font-v29.0.2/Vazir-Regular.woff) format("woff"),
   url(webkima_com_vazir-font-v29.0.2/Vazir-Regular.ttf) format("ttf"),
   url(webkima_com_vazir-font-v29.0.2/Vazir-Regular.woff2) format("woff2");
}

/* border: 2px dashed green; */
/* ---------------------------------------------------------------------------------------------------------- */
.wrapper {
  margin-top: 2rem;
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  height: 300px;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

.imgr{
  width: 440px;
  height: 300px;
  border-radius: 10px;
}

@keyframes scrollLeft {
  to {
    left: -440px;
  }
}

@keyframes scrollRight {
  to {
    right: -440px;
  }
}

.itemLeft,.itemRight {
  width: 440px;
  height: 300px;
  position: absolute;
  animation-timing-function: linear;
  animation-duration: 90s;
  animation-iteration-count: infinite;
}

.itemLeft {
  left: max(calc(200px * 16), 100%);
  animation-name: scrollLeft;
}

.itemRight {
  right: max(calc(200px * 16), calc(100% + 200px));
  animation-name: scrollRight;
}

.item1 {
  animation-delay: calc(90s / 8 * (16 - 1) * -1);
}

.item2 {
  animation-delay: calc(90s / 8 * (16 - 2) * -1);
}

.item3 {
  animation-delay: calc(90s / 8 * (16 - 3) * -1);
}

.item4 {
  animation-delay: calc(90s / 8 * (16 - 4) * -1);
}

.item5 {
  animation-delay: calc(90s / 8 * (16 - 5) * -1);
}

.item6 {
  animation-delay: calc(90s / 8 * (16 - 6) * -1);
}

.item7 {
  animation-delay: calc(90s / 8 * (16 - 7) * -1);
}

.item8 {
  animation-delay: calc(90s / 8 * (16 - 8) * -1);
}

@media(max-width:600px) { 
    .div1{
        border: 2px solid;
        border-color: blue;
        width: 80px;
        height: 50px;
        font-size: 12px;
    }
    
    .div2{
        border: 2px solid;
        border-color: blue;
        width: 80px;
        height: 50px;
        font-size: 12px;
    }
    
    .div3{
        border: 2px solid;
        border-color: blue;
        width: 80px;
        height: 50px;
        font-size: 12px;
    }
    
    .div4{
        border: 2px solid;
        border-color: blue;
        width: 80px;
        height: 50px;
        font-size: 12px;
    }
}

@media(max-width:600px) {
  .wrapper {
    margin-top: 1rem;
    width: 99%;
    max-width: 1536px;
    margin-inline: auto;
    height: 170px;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 5%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0)
    );
  }

  @keyframes scrollLeft {
    to {
      left: -274px;
    }
  }
  
  @keyframes scrollRight {
    to {
      right: -274px;
    }
  }
  
  .itemLeft, .itemRight {
    width: 260px;
    height: 170px;
    border-radius: 6px;
    position: absolute;
    animation-timing-function: linear;
    animation-duration: 100s;
    animation-iteration-count: infinite;
  }

  .imgr{
    width: 260px;
    height: 170px;
    border-radius: 10px;
  }

  .itemLeft {
    left: max(calc(235px * 8), 100%);
    animation-name: scrollLeft;
  }
  
  .itemRight {
    right: max(calc(235px * 8), calc(100% + 250px));
    animation-name: scrollRight;
  }
  
  .item1 {
    animation-delay: calc(100s / 8 * (8 - 1) * -1);
  }
  
  .item2 {
    animation-delay: calc(100s / 8 * (8 - 2) * -1);
  }
  
  .item3 {
    animation-delay: calc(100s / 8 * (8 - 3) * -1);
  }
  
  .item4 {
    animation-delay: calc(100s / 8 * (8 - 4) * -1);
  }
  
  .item5 {
    animation-delay: calc(100s / 8 * (8 - 5) * -1);
  }
  
  .item6 {
    animation-delay: calc(100s / 8 * (8 - 6) * -1);
  }
  
  .item7 {
    animation-delay: calc(100s / 8 * (8 - 7) * -1);
  }
  
  .item8 {
    animation-delay: calc(100s / 8 * (8 - 8) * -1);
  }
    
}

@media(max-width:400px) {
  .wrapper {
    margin-top: 1rem;
    width: 99%;
    max-width: 1536px;
    margin-inline: auto;
    height: 170px;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 5%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0)
    );
  }

  @keyframes scrollLeft {
    to {
      left: -274px;
    }
  }
  
  @keyframes scrollRight {
    to {
      right: -274px;
    }
  }
  
  .itemLeft, .itemRight {
    width: 225px;
    height: 170px;
    border-radius: 6px;
    position: absolute;
    animation-timing-function: linear;
    animation-duration: 112s;
    animation-iteration-count: infinite;
  }

  .imgr{
    width: 225px;
    height: 170px;
    border-radius: 10px;
  }

  .itemLeft {
    left: max(calc(203px * 8), 100%);
    animation-name: scrollLeft;
  }
  
  .itemRight {
    right: max(calc(203px * 8), calc(100% + 250px));
    animation-name: scrollRight;
  }
  
  .item1 {
    animation-delay: calc(112s / 8 * (8 - 1) * -1);
  }
  
  .item2 {
    animation-delay: calc(112s / 8 * (8 - 2) * -1);
  }
  
  .item3 {
    animation-delay: calc(112s / 8 * (8 - 3) * -1);
  }
  
  .item4 {
    animation-delay: calc(112s / 8 * (8 - 4) * -1);
  }
  
  .item5 {
    animation-delay: calc(112s / 8 * (8 - 5) * -1);
  }
  
  .item6 {
    animation-delay: calc(112s / 8 * (8 - 6) * -1);
  }
  
  .item7 {
    animation-delay: calc(112s / 8 * (8 - 7) * -1);
  }
  
  .item8 {
    animation-delay: calc(112s / 8 * (8 - 8) * -1);
  }
    
}

.animation-sec{
  margin-bottom: 30px;
  margin-top: 30px;
}
/* --------------------------------------------------------------- */
.wrapper1{
  /* border: 4px solid black; */
  width: 87%;
  max-width: 1536px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  margin-top: 150px;
  margin-bottom: 150px;
  height: 90px;
  mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0)
    );
}

.wrapper-small{
  /* border: 4px solid black; */
  width: 87%;
  max-width: 1536px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  margin-top: 150px;
  margin-bottom: 150px;
  height: 90px;
  mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0)
    );
}

.itemn{
  position: absolute;
  height: 82px;
  right: 100%;
  animation-name:  goright;
  animation-duration: 6s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  color: aliceblue;
}

.itemr{
  position: absolute;
  height: 82px;
  right: 100%;
  animation-name:  goright;
  animation-duration: 6s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: reverse;
  color: aliceblue;
}

.item1n{
  animation-delay: calc(6s / 2 * (2 - 1));
}

.item2n{
  animation-delay: calc(6s / 2 * (2 - 2));
}

.item1r{
  animation-delay: calc(6s / 2 * (2 - 1));
}

.item2r{
  animation-delay: calc(6s / 2 * (2 - 2));
}

@keyframes goright {
  to{
      right: -120px;
  }
}

@media(min-width:600px) {
  .wrapper-small{
      display: none;
  }
}

@media(max-width:600px) {
  .wrapper1{
      display: none;
  }
}
/* ---------------------------------------------------------------- */
.typewriter{
  font-family: Vazir;
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 1rem;
}

.typewriter p{
  font-family: Vazir;
  font-size: 3rem;
  color: rgb(242, 249, 255);
  margin-inline: auto;
  overflow: hidden;
  white-space: nowrap;
  border-left: 1px solid white;
  animation: typing 5s steps(26) forwards, blink 1s step-end infinite;
  padding-top: 15px;
  padding-bottom: 17px;
}

.head{
  font-family: Vazir;
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 1rem;
}

.head p{
  font-family: Vazir;
  font-size: 2rem;
  font-weight: bold;
  color: rgb(242, 249, 255);
  margin-inline: auto;
  overflow: hidden;
  white-space: nowrap;
  border-left: 1px solid white;
  animation: typing 5s steps(18) forwards, blink 1s step-end infinite;
  padding-top: 15px;
  padding-bottom: 15px;
}

@media(max-width:600px) {
 .typewriter{
  display: none;
 }
}

@keyframes typing {
  from{
    width: 0;
  }

  to{
    width: 100%;
  }
}

@keyframes blink {
  50%{
    border-color: transparent;
  }
}
/* ---------------------------------------------------------------- */
.sec-foot{
  background-color: var( --line-clr);
  height: 130px;
  width: 100%;
  border: 1px solid  #42434a;
  border-radius: 12px;
}

.pfoot{
  padding: min(30px, 7%);
  font-size: 32px;
  color: var(--text-clr);
  text-align: center;
}

@media(max-width:800px) {
  .pfoot{
      font-size: 20px;
  }
}
/* ---------------------------------------------------------------- */
.map-sec-i{
  display: flex;
  justify-content: space-between;
  height: 500px;
  width: 100%;
}

.pmap{
  font-size: 30px;
  font-weight: 800;
  color: var(--text-clr);
}

@media(max-width:800px) {
  .pmap{
    font-size: 20px;
  }
}

@media(max-width:1416px) {
  .mapmap1{
    display: none;
  }
}

@media(min-width:1416px) {
  .mapmap2{
    display: none;
  }
}
/* ---------------------------------------------------------------- */
.container-address{
  display: grid;
  grid-template-rows: repeat(6, 100px);
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.div-p{
  grid-area: 1/4/1/7;
  overflow: hidden;
}

.mapmap1{
  grid-area: 1/1/5/4;
  justify-self: center;
  align-self: center;
}

.divcon0{
  grid-area: 2/4/2/4;
  justify-self: center;
  align-self: end;
}
.divcon1{
  grid-area: 3/4/3/4;
  justify-self: center;
  align-self: center;
}
.divcon2{
  grid-area: 4/4/4/4;
  justify-self: center;
  align-self:start;
}
.divcon3{
  grid-area: 2/5/2/5;
  justify-self: center;
  align-self: end;
}
.divcon4{
  grid-area: 3/5/3/5;
  justify-self: center;
  align-self: center;
}
.divcon5{
  grid-area: 4/5/4/5;
  justify-self: center;
  align-self: start;
}
.divcon7{
  grid-area: 2/6/2/6;
  justify-self: center;
  align-self: end;
}
.divcon6{
  grid-area: 3/6/3/6;
  justify-self: center;
  align-self: center;
}

.divn{
  font-size: 18px;
  font-weight: 800;
}

@media(max-width:1416px){
  .container-address{
    display: grid;
    grid-template-rows: repeat(14, 100px);
    grid-template-columns: repeat(1, minmax(100px, 1fr));
  }
  .mapmap2{
    grid-area: 1/1/4/2;
    justify-self: center;
    align-self: start;
  }
  .div-p{
    grid-area: 5/1/5/2;
    overflow: hidden;
    justify-self: center;
    align-self: center;
  }
  .divcon0{
    grid-area: 6/1/6/2;
    justify-self: center;
    align-self: end;
  }
  .divcon1{
    grid-area: 7/1/7/2;
    justify-self: center;
    align-self: center;
  }
  .divcon2{
    grid-area: 8/1/8/2;
    justify-self: center;
    align-self:start;
  }
  .divcon3{
    grid-area: 9/1/9/2;
    justify-self: center;
    align-self: end;
  }
  .divcon4{
    grid-area: 10/1/10/2;
    justify-self: center;
    align-self: center;
  }
  .divcon5{
    grid-area: 11/1/11/2;
    justify-self: center;
    align-self: start;
  }
  .divcon7{
    grid-area: 12/1/12/2;
    justify-self: center;
    align-self: end;
  }
  .divcon6{
    grid-area: 13/1/13/2;
    justify-self: center;
    align-self: center;
  }

}
/* ---------------------------------------------------------------- */
html{
  font-family: Vazir;
  line-height: 1.5rem;
}

body{
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--base-clr);
  color: var(--text-clr);
  display: grid;
  grid-template-columns: auto 1fr;
}

#sidebar{
  box-sizing: border-box;
  height: 100vh;
  width: 250px;
  padding: 5px 1em;
  background-color: var(--base-clr);
  border-right: 1px solid var(--line-clr);

  position: sticky;
  top: 0;
  align-self: start;
  transition: 300ms ease-in-out;
  overflow: hidden;
  text-wrap: nowrap;
}
#sidebar.close{
  padding: 5px;
  width: 60px;
}
#sidebar ul{
  list-style: none;
}
#sidebar > ul > li:first-child{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  .logo{
    font-weight: 600;
  }
}
#sidebar ul li.active a{
  color: var(--accent-clr);

  svg{
    fill: var(--accent-clr);
  }
}

#sidebar a, #sidebar .dropdown-btn, #sidebar .logo{
  border-radius: .5em;
  padding: .85em;
  text-decoration: none;
  color: var(--text-clr);
  display: flex;
  align-items: center;
  gap: 1em;
}
.dropdown-btn{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
#sidebar svg{
  flex-shrink: 0;
  fill: var(--text-clr);
}
#sidebar a span, #sidebar .dropdown-btn span{
  flex-grow: 1;
}
#sidebar a:hover, #sidebar .dropdown-btn:hover{
  background-color: var(--hover-clr);
}
#sidebar .sub-menu{
  display: grid;
  grid-template-rows: 0fr;
  transition: 300ms ease-in-out;

  > div{
    overflow: hidden;
  }
}
#sidebar .sub-menu.show{
  grid-template-rows: 1fr;
}
.dropdown-btn svg{
  transition: 200ms ease;
}
.rotate svg:last-child{
  rotate: 180deg;
}
#sidebar .sub-menu a{
  padding-left: 2em;
}
#toggle-btn{
  margin-left: auto;
  padding: 1em;
  border: none;
  border-radius: .5em;
  background: none;
  cursor: pointer;

  svg{
    transition: rotate 150ms ease;
  }
}
#toggle-btn:hover{
  background-color: var(--hover-clr);
}

main{
  padding-top: min(30px, 7%);
  padding-left: min(30px, 7%);
  padding-right: min(30px, 7%);
  padding-bottom: 0;
}
main p{
  color: var(--secondary-text-clr);
  margin-top: 5px;
  margin-bottom: 15px;
}

.container{
  border: 1px solid var(--line-clr);
  border-radius: 1em;
  margin-bottom: 20px;
  padding: min(3em, 15%);
  text-align: center;
  h2, p { margin-top: 0.5em }
  h2, p { font-size: 30px; }
}


@media(max-width: 800px){
  body{
    grid-template-columns: 1fr;
  }

  main{
    padding: 2em 1em 60px 1em;
  }
  .container{
    /* border: none; */
     padding: min(3em, 15%);
  }
  #sidebar{
    height: 60px;
    width: 100%;
    border-right: none;
    border-top: 1px solid var(--line-clr);
    padding: 0;
    position: fixed;
    top: unset;
    bottom: 0;

    > ul{
      padding: 0;
      display: grid;
      grid-auto-columns: 100px;
      grid-auto-flow: column;
      align-items: center;
      overflow-x: scroll;
    }
    ul li{
      height: 100%;
    }
    ul a, ul .dropdown-btn{
      width: 100px;
      height: 60px;
      padding: 0;
      border-radius: 0;
      justify-content: center;
    }

    ul li span, ul li:first-child, .dropdown-btn svg:last-child{
      display: none;
    }

    ul li .sub-menu.show{
      position: fixed;
      bottom: 60px;
      left: 0;
      box-sizing: border-box;
      height: 60px;
      width: 100%;
      background-color: var(--hover-clr);
      border-top: 1px solid var(--line-clr);
      display: flex;
      justify-content: center;

      > div{
        overflow-x: auto;
      }
      li{
        display: inline-flex;
      }

      a{
        box-sizing: border-box;
        padding: 1em;
        width: auto;
        justify-content: center;
      }
    }
  }
}

nav{
  z-index: 1;
}

.head{
  text-align: center;
}

@media(min-width: 800px){
  .head{
      display: none;
  }
}

