header {
  width: 100%;
  max-height: 50%;
  position: relative;
  top: 0px;
  border-bottom: 1px solid #8265a7;
}
.home-header
{
  flex-direction: column;
  padding-bottom: 8px;
  align-items: center;
  position: relative;
  top:0;
  margin-bottom: 16px;
}
.main_container {
  display: flex;
  flex-direction: column;
  width: 100%;
  direction: ltr;
  float: right;
  overflow: hidden;
}

.image_header {
  position: absolute;
  height: auto;
  width: 50%;
  top:10%;	
	animation-name: float ;
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;

}

.image-header-container
{
  display:flex ;
  align-items:flex-start;
  right:-100%;
  animation-fill-mode: forwards;
  animation-delay: 0s;
  animation-duration: 1s;
  width:100%
}

.text_header {
  position: relative;
  height: 100%;
  width: 100%;
  left:-100%;
  animation-fill-mode: forwards;
  animation-delay: 0s;
  animation-duration: 1s;
  font-size: 1rem;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 50%;
  width: auto;
}
.carousel {
  height: auto;
  width: 100%;
  max-width: 900px;
  margin: auto;
}

.options {
  width: 85%;
  height: auto;
  display: flex;
  justify-content: space-evenly;
  flex-direction: row;
  flex-wrap: wrap;
  margin: auto;
  padding: 8px;
  margin-top: 10px;
}

.service-logo {
  max-width: 100%;
  width: auto;
  margin: auto;
  padding: 0px 16px;
}

.games {
  text-align: center;
  font-size: 36px;
  margin: 10px auto 10px;
}

.grid-container {
   padding: 5px;
  margin-bottom: 20px;
}
.grid-Items {
  background-color: #26163b;
  margin: auto;
  border-radius: 8px;
  padding: 5px;
  text-align: right;
  color: white;
  font-size: 0.8rem;
  box-shadow: rgba(255, 64, 245, 0.4) 0px 13px 27px -5px, rgba(252, 3, 240, 0.3) 0px 8px 16px -8px;
  width: 80%;
  min-height: 160px;
}



.new-grid-Items {
  background-color: #26163b;
  margin:auto 16px;
  border-radius: 8px;
  padding: 5px;
  text-align: right;
  color: white;
  font-size: 0.7rem;
  height: 100%;
  border:1px solid #6e617d;
  display:inline-block !important;
  width: 200px;
  text-align: center;
}

.new-grid-container {
 border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  height: 250px;
  padding: 16px;
  margin: 16px 8px;
  text-align: center;
}

.game-Icons , .game-Icons-square
{
  width: 100%;
  margin: 5px auto 5px auto;
  border-radius: 50%;
  display: block;
  max-width:200px;
}

.topFlag {
  background-color: transparent;
  position: absolute;
  top: -100%;
  right: 10px;
  width: 32%;
  opacity: 0;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  animation-delay: 1s;
  animation-duration: 1s;
  animation-name: move-bottom;
  animation-fill-mode: forwards;
  height: 90%;
}

.bouncing-text
{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 3.8vw;
  font-family: Iransans;
  animation-delay: 0s;
  animation-duration: 3s;
  display: flex;
  animation-fill-mode: forwards;
  text-shadow: 0 1px #8e218c, 0 3px #8e218c, 0 5px #8e218c;
}



.game-Icons-square
{
  border-radius: 8px;
}
.game-category-label
{
  font-size: 1.2rem;
  color: #fffd91;
  text-align: right;
  padding: 8px 24px;
  direction: rtl;
}

@keyframes bounce {
  0%   { transform: scale(1,1) translateY(0); visibility: visible;}
  10%  { transform: scale(1.1,.9) translateY(0);visibility: visible; }
  30%  { transform: scale(.9,1.1)   translateY(-55px);visibility: visible;}
  50%  { transform: scale(1.05,.95) translateY(0); visibility: visible;}
  58%  { transform: scale(1,1) translateY(-7px); visibility: visible;}
  65%  { transform: scale(1,1) translateY(0); visibility: visible;}
  100% { transform: scale(1,1) translateY(0);visibility: visible;}
}

@keyframes bounceLeft {
  0%   { transform: scale(1,1) translateX(0); }
  10%  { transform: scale(1.1,.9) translateX(-1%); }
  30%  { transform: scale(.9,1.1)   translateX(-2%);}
  50%  { transform: scale(1.05,.95) translateX(-1%); }
  58%  { transform: scale(1,1) translateX(-2%); }
  65%  { transform: scale(1,1) translateX(-5%);}
  100% { transform: scale(1,1) translateX(-5%);}
}

@keyframes bounceRight {
  0%   { transform: scale(1,1) translateX(0); }
  10%  { transform: scale(1.1,.9) translateX(50%); }
  30%  { transform: scale(.9,1.1)   translateX(45%);}
  50%  { transform: scale(1.05,.95) translateX(50%); }
  58%  { transform: scale(1,1) translateX(90%); }
  65%  { transform: scale(1,1) translateX(100%);}
  100% { transform: scale(1,1) translateX(100%);}
}

.bazi {
  visibility: hidden;
  animation: bounce 1s ease 1 1s;
  animation-fill-mode: forwards;
}

.kon {
  visibility: hidden;
  animation: bounce 1s ease 1 1.3s;
  animation-fill-mode: forwards;
}

.daramad {
  visibility: hidden;
  animation: bounce 1s ease 1 1.6s;
  animation-fill-mode: forwards;
}

.dashte {
  visibility: hidden;
  animation: bounce 1s ease 1 1.9s;
  animation-fill-mode: forwards;
}

.bash {
  visibility: hidden;
  animation: bounce 1s ease 1 2.2s;
  animation-fill-mode: forwards;
}



.homeInfoSection{

  border-radius: 8px;
  border: 1px solid #7c6799;
  margin: 20px;
  padding: 8px;
}

@media screen and (min-aspect-ratio: 13/9) {

  .foot-container
  {
    max-width: 120px;
    width: 100%;
  }

  .ghost
  {
    top:50%;
    left:16px;
    width: 20%;
  }
  .image-header-container
  {
    width: 50%;
  }
  .home-header
  {
    flex-direction: row;
  }
  .motto {
    font-size: 1.7rem;
  }

  .text_header
  {
    font-size: 2vw;
  }

  .new-grid-container {
    height: 262px;
  }

  .new-grid-Items {
    font-size: 0.8rem;
  }

  .game-Icons , .game-Icons-square
  {
    width: 50%;
    margin: 16px auto 16px auto;
  }
}



@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ghost
{
  position:absolute;
  top:40%;
  left:16px;
  width: 25%;
  max-width: 200px;
  animation-name: float ;
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  background-color: transparent;
  z-index: 1;
}
.ballon1,.ballon2,.ballon3,.ballon4
{
  position:absolute;
  top:20%;
  left:16px;
  width: 50%;
  animation: move-behind 4s linear;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  background-color: transparent;
  opacity: 0;
  border-radius: 15px;
}

.ballon4
{
  top:26%;
   animation-delay: 4s;
}

.ballon3
{
  top:24%;
  animation-delay: 3s;
}

.ballon2
{
  top:22%;
  animation-delay: 2s;
}


@keyframes float {
  0% {
     transform: translatey(0px);
  }
  
  50% {
    transform: translatey(-20px);
  }
  100% {
    transform: translatey(0px);
  }
}


@keyframes move-right {
  0% {
    opacity: 0;
    transform: translate(0px,0px);
  }
  2%
  {
    opacity: 100;
  }
  50% {
    transform: translate(500%,300%);
  }
  100% {
    transform: translate(1500%,200%);
  }
}

@keyframes move-left {
  0% {
    opacity: 0;
    transform: translate(1500%,100%);
  }
  5%
  {
    opacity: 100;
  }
  50% {
    transform: translate(-500%,50%);
  }

  100% {
    transform: translate(-1500%,100%);
  }
}
@keyframes move-behind {

  0% {
    opacity: 0;
  }

  8%{
    opacity: 0;
  }
  100% {
    opacity: 100;
  }

}

.moon
{
  position: absolute;
  top: 15%;
  right:130%;
  width: 150px;
  animation: glow-moon 4s linear;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  border-radius: 75px;
}

@keyframes glow-moon
{
  0%   {
    transform:  translate(220%, -50%);
    box-shadow: 0 0 20px #fff, 0 0 20px #fff, 0 0 20px #deded5, 0 0 20px #deded5, 0 0 20px #deded5, 0 0 20px #deded5, 0 0 20px #deded5;
  }
  100% {
    transform:  translate(220%, -50%);
    box-shadow: 0 0 20px #fff, 0 0 30px #deded5, 0 0 40px #deded5, 0 0 50px #deded5, 0 0 60px #deded5, 0 0 70px #deded5, 0 0 80px #deded5;

  }
}

.jungle
{
  position: absolute;
  bottom: 0px;
  left:0px;
  width: 100%;
  z-index: -1;
}

.installApp
{
  position: fixed;
  top:-100%;
  left:0px;
  width: 100%;
  padding: 16px;
  animation: show-install 1s linear;
  animation-fill-mode: forwards;
  background-color: #2a1b3d;
  z-index: 2000;
  animation-delay: 1s;
}

.installAppContainer
{
  position: fixed;
  top:0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 27, 61,0.5);
  z-index: 1999;
}

@keyframes show-install
{
  0%   {
    top:  -100%;
   }
  100% {
    top:  0px;
  }
}

.userLevel
{
    background-color: #44318d;
    margin: auto;
    border-radius: 8px;
    padding: 5px;
    text-align: right;
    color: white;
    font-size: 0.8rem;
    width: 80%;
    min-height: 160px;
  box-shadow: rgba(3, 248, 252, 0.4) 0px 13px 27px -5px, rgba(30, 164, 166, 0.3) 0px 8px 16px -8px;

}

.disabledLevel
{
  opacity: 0.6;
}

@keyframes glow {
    from {
      box-shadow: rgba(255, 64, 245, 0.25) 0px 13px 27px -5px, rgba(252, 3, 240, 0.3) 0px 8px 16px -8px;
    }
    to {
      box-shadow: rgba(242, 245, 59, 0.25) 0px 20px 34px 2px, rgba(245, 211, 88, 0.3) 0px 15px 23px -1px;
    }
}


.foot-container
{
  max-width: 90px;
  width: 100%;
}