*{
  font-family: 'VazirMatn';
}

body{
  margin: 0;
  width: 99vw;
  height: max-content;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game_box{
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  margin-left: 0;
  margin-right: 0;
  height: fit-content;
  /* height: 580px; */
}

.game_box iframe{
    width: 400px;
    height: 700px;
}

.main{
  width: 400px;
}

@media screen and (max-width: 810px) and (min-width: 601px) {
  
  .main{
      width: 400px;
      margin-left: auto;
      margin-right: auto;
  }

}
@media screen and (max-width: 600px) and (min-width: 430px) {

  .main{
      width: 400px;
      margin-left: 0%;
  }
  .game_box{

    margin-top: 0;

  }


}
@media screen and (max-width: 429px)  {
  body{
    width: 99vw;
    height: 95vh;
  }
  .game_box{
    margin-top: 0;
  }
  .main, .game_box{
    width: 360px;
  }

  .border{
    max-width: 100%;
    width: 100%;
    border-radius: 0;

  }
  .game{
    max-width: 100%;
    width: 100%;
    height: 100%;

  
  }
  .game_box iframe{
    width: 100%;
  
  }
}

.border{
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  max-width: 100%;
  width: 400px;
  display: flex;
  flex-direction: column;
  position: relative;
  align-self: center;
  border-radius: 30px;
  overflow: hidden;
}

.game{
  max-width: 100%;
  height: 650px;
  background-size: cover;

}

.gamehead{
  display: flex;
  justify-content: space-around;
}

.gamehead span{
  color: white;
  margin-left: 1rem;
  padding-top: 10px;
}

.gamehead img{
  width: 80px;
  height: 80px;
  margin-right: 20px;
  margin-left: 5px;
  margin-top: 15px;
  border-radius: 3rem;
}

@keyframes gamepage1 {
  from {box-shadow: 0px 0px 20px 40px rgba(255, 255, 255, 0.637);}
  to {box-shadow: 0px 0px 20px 20px rgba(255, 255, 255, 0.637);}
}

.p1img{
  width: 11rem;
  height: 11rem;
  border-radius: 6rem;
}

.p1img img, .avatar-upload .avatar-preview{
  width: 11rem;
  height: 11rem;
  border-radius: 6rem;
}

@media screen and (max-width: 429px){
  .p1img img, .p1img,  .avatar-upload .avatar-preview{
    width: 9rem;
    height: 9rem;
  }
}

.p1img:after {
  content: "";
  position: absolute;
    top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  opacity: 0;
  transform: rotate(30deg);

  background: rgba(255, 255, 255, 0.13);
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.13) 77%,
    rgba(255, 255, 255, 0.5) 92%,
    rgba(255, 255, 255, 0.0) 100%
  );
}

.p1img:hover:after {
  opacity: 1;
  left: 130%;
  transition-property: left, top, opacity;
  transition-duration: 0.7s, 0.7s, 0.15s;
  transition-timing-function: ease;
}

.p1img:active:after {
  opacity: 0;
}


.detail_box{
  padding-top: 10px;
}

.progress1, .progress2, .progress3, .progress4, .progress5{
  position: relative;
  left: 12px;
  margin-top: 3%;
}

.progress1 svg, .progress2 svg, .progress3 svg, .progress4 svg, .progress5 svg{
  width: 80px;
  height: 80px;
}

.toggle-button-cover {
  display: table-cell;
  position: relative;
  box-sizing: border-box;
}

.button-cover {
  height: 20px;
  margin: 20px;
  border-radius: 4px;
}

.button-cover:before {
  counter-increment: button-counter;
  position: absolute;
  right: 0;
  bottom: 0;
  color: #d7e3e3;
  font-size: 12px;
  line-height: 1;
  padding: 5px;
}

.button-cover,
.knobs,
.layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.button {
  position: relative;
  top: 50%;
  width: 120px;
  height: 36px;
  margin: -20px auto 0 auto;
  overflow: hidden;
}

.button.r,
.button.r .layer {
  border-radius: 100px;
}

.button.b2 {
  border-radius: 2px;
}

.checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.knobs {
  z-index: 2;
}

.layer {
  width: 100%;
  background-color: #16132a6f;
  transition: 0.3s ease all;
  z-index: 1;
}