#video-container {
    position: fixed;
    z-index: 100;
    left: initial;
    right: calc(0% + 15px);
    bottom: calc(0% + 68px);
    width: 185px;
    height: 105px;
    padding: 0 !important;
    background-color: #000;
    box-shadow: 1px 6px 4px rgba(0, 0, 0, 0.25);
}

#video-container::after {
    content: "";
    z-index: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s linear;
}

#video-element {
    display: none;
    width: 100%;
    height: 100%;
}

#ad-container {
    display: none;
}

#ad-container > div:first-child {
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

#ads-main-controls {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: 50%;
    width: max-content;
    margin: 0 auto;
    transform: translateY(-50%);
    transition: 0.2s linear;
}

#play-previous {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background-color: transparent;
    background-image: url(../img/step-backward-icon-mobile.png);
    font-size: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

#play-switch {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    margin: 0 10px;
    background-color: transparent;
    background-image: url(../img/pause-icon-mobile.png);
    font-size: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

#play-next {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background-color: transparent;
    background-image: url(../img/step-forward-icon-mobile.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    cursor: pointer;
}

#ads-secundary-controls {
    position: absolute;
    z-index: 2;
    bottom: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 5px;
    transition: 0.2s linear;
}

#ads-progress-container {
    flex: 1 1 100%;
    height: auto;
}

#ads-progress {
    width: 100%;
    height: 3px;
    background-color: #ffffff63;
    overflow: hidden;
}

#ads-progress .bar {
    display: block;
    width: 0;
    height: 100%;
    background-color: #f6f3f3;
}

#ads-sound-container {
    margin-right: 10px;
    overflow: hidden;
}

#ads-sound {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background-color: transparent;
    background-image: url(../img/sound-on-icon-mobile.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    cursor: pointer;
}

#ads-time-container {
    margin-right: 10px;
    color: #fff;
    font-size: 10px;
    font-family: arial;
}

#ads-fullscreen-container {
    flex: 1 1 auto;
    max-width: 100%;
    text-align: right;
    overflow: hidden;
}

#ads-fullscreen {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background-color: transparent;
    background-image: url(../img/fullscreen-icon-mobile.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    cursor: pointer;
}

#btn-close-preroll {
    position: absolute;
    z-index: 1;
    top: calc(0% - 15px);
    right: 0;
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    background-color: transparent;
    background-image: url(../img/close-preroll.png);
    background-size: contain;
    font-size: 0;
    cursor: pointer;
}

.ads-destiny-link {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    font-size: 0;
}

/* Modifications */
.paused#video-container::after {
    opacity: 0.5;
}

#play-previous.disabled {
    opacity: 0.3;
    pointer-events: none;
}

#play-next.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.paused #play-switch {
    background-image: url(../img/play-icon-mobile.png);
}

.muted #ads-sound {
    background-image: url(../img/sound-off-icon-mobile.png);
}

.fullscreen #ads-sound-container {
    max-width: 30px;
    max-height: 25px;
}

.fullscreen #ads-time-container {
    font-size: 12px;
}

.fullscreen #ads-fullscreen-container {
    max-height: 25px;
}

.fullscreen #ads-progress-container {
    margin-bottom: 10px;
}

.fullscreen #play-previous,
.fullscreen #play-switch,
.fullscreen #play-next,
.fullscreen #ads-sound,
.fullscreen #ads-fullscreen {
    width: 30px;
    height: 30px;
}

/* Modifications by iphone */
.iphone #video-element {
    display: block;
}

/* Modifications by safari fullscreen */
.safari #video-container.fullscreen {
    z-index: 9999;
    /* Reply user agent style by ::fullscreen pseudoclass */
    object-fit: contain;
    user-select: text;
    position: fixed !important;
    top: 0px !important;
    right: 0px !important;
    bottom: 0px !important;
    left: 0px !important;
    box-sizing: border-box !important;
    min-width: 0px !important;
    max-width: none !important;
    min-height: 0px !important;
    max-height: none !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    margin: 0px !important;
}

body.safari.fullscreen-active {
    overflow: hidden;
}

.safari #video-container.fullscreen video {
    contain: initial;
}

/* Modifications by android */
.android #ad-container {
    display: block;
}

.android #ad-container > div > iframe:first-of-type{
    display: none;
}

@media screen and (min-width: 768px) {
    #video-container {
      bottom: calc(0% + 20px);
      width: 330px;
      height: 190px;
    }
  
    #video-container #ads-main-controls,
    #video-container #ads-secundary-controls {
      pointer-events: none;
    }
  
    #video-element {
      display: none;
    }
  
    #ad-container {
      display: block;
    }
  
    #play-previous,
    #play-switch,
    #play-next,
    #ads-sound,
    #ads-fullscreen {
      width: 30px;
      height: 30px;
    }
  
    #ads-main-controls,
    #ads-secundary-controls {
      opacity: 0;
    }
  
    #ads-progress-container {
      margin-bottom: 10px;
    }
  
    #ads-time-container {
      font-size: 14px;
    }
  
    #play-previous {
      background-image: url(../img/step-backward-icon.png);
    }
  
    #play-switch {
      background-image: url(../img/pause-icon.png);
    }
  
    #play-next {
      background-image: url(../img/step-forward-icon.png);
    }
  
    #ads-sound {
      background-image: url(../img/sound-on-icon.png);
    }
  
    #ads-fullscreen {
      background-image: url(../img/fullscreen-icon.png);
    }
  
    #btn-close-preroll {
      top: calc(0% - 30px);
      width: 20px;
      height: 20px;
    }
  
    /* Modifications */
    #video-container:hover #ads-main-controls,
    #video-container:hover #ads-secundary-controls {
      opacity: 1;
      pointer-events: all;
    }
  
    .paused #play-switch {
      background-image: url(../img/play-icon.png);
    }
  
    .muted #ads-sound {
      background-image: url(../img/sound-off-icon.png);
    }
  
    .paused #ads-main-controls,
    .paused#video-container #ads-secundary-controls {
      opacity: 1;
      pointer-events: all;
    }
  
    #video-container:hover::after {
      opacity: 0.5;
    }
  
    .fullscreen #ads-sound-container,
    .fullscreen #ads-fullscreen-container {
      max-width: none;
      max-height: 45px;
    }
  
    .fullscreen #ads-time-container {
      font-size: 16px;
    }
  
    .fullscreen #play-previous,
    .fullscreen #play-switch,
    .fullscreen #play-next,
    .fullscreen #ads-sound,
    .fullscreen #ads-fullscreen {
      width: 50px;
      height: 50px;
    }
  
    .fullscreen #ads-progress {
      height: 5px;
    }

}
  