.hesam{
    padding:180px !important;
}
.payam{
    height:540px;
}

@media screen and (max-width: 480px) {
  .hesam {
     padding:140px !important;
  }
  .payam{
    height:370px;
}
}

.fixed-bg {
    
    min-height: 500px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .fixed-bg-left{
    background-size: cover;
    min-height: 500px;

    background-position: right;
    background-repeat: no-repeat;
    background-size: contain;
    left: 0;

  }
  .fixed-bg-right{
    background-size: cover;
    min-height: 500px;

    background-position: left;
    background-repeat: no-repeat;
    background-size: contain;
    right: 0;

  }
 
  .reveal{
    position: relative;
    transform: translateY(150px);
    opacity: 1;
    transition: 1s all ease;
  }
  
  

  .revealed{
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s all ease;
  }
  
  .revealed.active{
    transform: translateY(0);
    opacity: 1;
  }
  .revealquickly{
    position: relative;
    transform: translateY(-150px);
    opacity: 0;
    transition: 1s all ease;
  }
  .revealquickly.active{
    transform: translateY(0);
    opacity: 1;
  }
  .video-top{
    display: none;
  }
  .video-top.active{
    display: block;
  }

  .wrapper{

    transform: translateY(0);
    transition: 1s all ease;
  }
  .wrapper.inherit{

    transform: inherit !important;

  }
  .wrapper.transition{
    transform: translateY(150);
    opacity: 1;
  }
  
/* ------------- middel video ----------------- */
.container-video, .video-controls, .video-timer, .options{
  display: flex;
  align-items: center;
  justify-content: center;
}
  #blurred{
    position: absolute;
    align-self: center;
    filter: blur(100px);
    width: 80%;

    aspect-ratio: 16 / 9;
    opacity: 0.5;
  }
  .container-video{

    user-select: none;
    overflow: hidden;

    border-radius: 5px;
    background: #000;
    aspect-ratio: 16 / 9;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .container-video.fullscreen{
    max-width: 100%;
    width: 100%;
    height: 100vh;
    border-radius: 0px;
  }
  .wrapper-video{
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    opacity: 0;
    bottom: -15px;
    transition: all 0.08s ease;
  }
  .container-video.show-controls .wrapper-video{
    opacity: 1;
    bottom: 0;
    transition: all 0.13s ease;
  }
  .wrapper-video::before{
    content: "";
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    position: absolute;
    height: calc(100% + 35px);
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  }
  .video-timeline{
    height: 7px;
    width: 100%;
    cursor: pointer;
  }
  .video-timeline .progress-area{
    height: 3px;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
  }
  .progress-area span{
    position: absolute;
    left: 50%;
    top: -25px;
    font-size: 13px;
    color: #fff;
    pointer-events: none;
    transform: translateX(-50%);
  }
  .progress-area .progress-bar{
    width: 0%;
    height: 100%;
    position: relative;
    background: #2289ff;
  }
  .progress-bar::before{
    content: "";
    right: 0;
    top: 50%;
    height: 13px;
    width: 13px;
    position: absolute;
    border-radius: 50%;
    background: #2289ff;
    transform: translateY(-50%);
  }
  .progress-bar::before, .progress-area span{
    display: none;
  }
  .video-timeline:hover .progress-bar::before,
  .video-timeline:hover .progress-area span{
    display: block;
  }
  .wrapper-video .video-controls{
    padding: 5px 20px 10px;
  }
  .video-controls .options{
    width: 100%;
  }
  .video-controls .options:first-child{
    justify-content: flex-start;
  }
  .video-controls .options:last-child{
    justify-content: flex-end;
  }
  .options button{
    height: 40px;
    width: 40px;
    font-size: 19px;
    border: none;
    cursor: pointer;
    background: none;
    color: #efefef;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .options button :where(i, span) {
    height: 100%;
    width: 100%;
    line-height: 40px;
  }
  .options button:hover :where(i, span){
    color: #fff;
  }
  .options button:active :where(i, span){
    transform: scale(0.9);
  }
  .options button span{
    font-size: 23px;
  }
  .options input{
    height: 4px;
    margin-left: 3px;
    max-width: 75px;
    accent-color: #0078FF;
  }
  .options .video-timer{
    color: #efefef;
    margin-left: 15px;
    font-size: 14px;
  }
  .video-timer .separator{
    margin: 0 5px;
    font-size: 16px;
    font-family: "Open sans";
  }
  .playback-content{
    display: flex;
    position: relative;
  }
  .playback-content .speed-options{
    position: absolute;
    list-style: none;
    left: -40px;
    bottom: 40px;
    width: 95px;
    overflow: hidden;
    opacity: 0;
    border-radius: 4px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: opacity 0.13s ease;
  }
  .playback-content .speed-options.show{
    opacity: 1;
    pointer-events: auto;
  }
  .speed-options li{
    cursor: pointer;
    color: #000;
    font-size: 14px;
    margin: 2px 0;
    padding: 5px 0 5px 15px;
    transition: all 0.1s ease;
  }
  .speed-options li:where(:first-child, :last-child){
    margin: 0px;
  }
  .speed-options li:hover{
    background: #dfdfdf;
  }
  .speed-options li.active{
    color: #fff;
    background: #3e97fd;
  }
  .container-video video{
    width: 100%;
  }
  
  @media screen and (max-width: 540px) {
    .wrapper-video .video-controls{
      padding: 3px 10px 7px;
    }
    .options input, .progress-area span{
      display: none!important;
    }
    .options button{
      height: 30px;
      width: 30px;
      font-size: 17px;
    }
    .options .video-timer{
      margin-left: 5px;
    }
    .video-timer .separator{
      font-size: 14px;
      margin: 0 2px;
    }
    .options button :where(i, span) {
      line-height: 30px;
    }
    .options button span{
      font-size: 21px;
    }
    .options .video-timer, .progress-area span, .speed-options li{
      font-size: 12px;
    }
    .playback-content .speed-options{
      width: 75px;
      left: -30px;
      bottom: 30px;
    }
    .speed-options li{
      margin: 1px 0;
      padding: 3px 0 3px 10px;
    }
    .right .pic-in-pic{
      display: none;
    }
  }
  .blur{
    width: 150%;
    height: 150%;
    background-color: rgba(0,0, 0, 0.5);
    filter: blur(25px);
    position: absolute;
    left: 0;
    top: 0;
  }
  
/* ------------- middel video ----------------- */