.media {
  padding: 40px 0;
}
.mediaContainer {
  width: 100%;
  position: relative;
  margin: 84px auto 0 auto;
}
.iframeContainer{
  position: relative;
  margin: 0 auto;

  width: 942px;
  height: 536px;
  padding-top: 30px;
}
.video{
  display: flex;
  position: relative;
  width: 882px;
  height: 476px;

  padding: 30px;

  border-radius: 30px;


  margin: 0 auto;
  z-index: var(--video);
}
.video::before{
  display: none;
}
.iframeContainer::after{
  content: '';
  position: absolute;

  right: 0;
  bottom: 0;

  width: 588px;
  height: 487px;

  background: rgb(35,37,98);

  border-radius: 30px;
  background: 
  /* linear-gradient(318deg, #232562 ,
    #00B0EE ,
    rgba(255, 255, 255, 0.00),
    rgba(255, 255, 255, 0.00)); */
    linear-gradient(318deg, #232562 5%,
    #00B0EE 20.44%,
    rgba(255, 255, 255, 0.00) 30%,
    rgba(255, 255, 255, 0.00) 100%);
    background-size: 200% 200%;
  animation: gradient 7s ease infinite;
}
.iframeContainer::before{
  content: '';
  position: absolute;

  left:  0;
  top: 0;

  width: 588px;
  height: 487px;

  background: rgb(35,37,98);

  border-radius: 30px;
  background: linear-gradient(128deg, #232562 5%,
    #00B0EE 20.44%,
    rgba(255, 255, 255, 0.00) 30%,
    rgba(255, 255, 255, 0.00) 100%);
  background-size: 200% 200%;
  animation: gradient 7s ease infinite;
}

@media (max-width:1024px) {
  .iframeContainer{
    width: 768px;
    height: 437px;
  }
  .video{
    width: 708px;
    height: 377px;
  }
}
@media (max-width:768px) {
  .mediaContainer {
    margin: 35px auto 0 auto;
  }
  .iframeContainer{
    padding-top: 10px;
    width: 425px;
    height: 242px;
  }
  .video{
    width: 405px;
    height: 222px;
  
  }
  .iframeContainer::after{
    width: 292px;
    height: 242px;
  }
  .iframeContainer::before{
    width: 292px;
    height: 242px;
  }
  
}
@media (max-width: 425px){
  .iframeContainer{
    width: 390px;
    height: 222px;
  }
  .video{
    width: 370px;
    height: 202px;
  }
  .iframeContainer::after{
    width: 268px;
    height: 222px;
  }
  .iframeContainer::before{
    width: 268px;
    height: 222px;
  }
}
@media (max-width: 390px){
  .iframeContainer{
    width: 360px;
    height: 205px;
  }
  .video{
    width: 340px;
    height: 185px;
  }
  .iframeContainer::after{
    width: 247px;
    height: 205px;
  }
  .iframeContainer::before{
    width: 247px;
    height: 205px;
  }
}