
body.mds-skin {
    font: 12px Arial, sans-serif;
    background-color: #000;
    color: #fff;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: absolute;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    line-height: 1;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: start;
}

#player, .mars-player {
    position: relative;
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    background-color: #000;
    overflow: hidden;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

#errorInfo, #newTabButton {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    font-size: 13px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background: #000;
    z-index: 950;
    cursor: default;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none
}

#errorInfo a, #newTabButton a {
    color: #fff !important;
    text-decoration: underline
}

#errorInfo .content, #newTabButton .content {
    padding: 5px;
    position: relative;
    display: table-cell;
    vertical-align: middle;
    z-index: 2
}
#newTabButton {
    display: none;
}
#errorInfo.table, #newTabButton.table {
    display: table;
}
#newTabButton a {
    max-width: 100px;
    max-height: 100px;
    display: inline-block;
}
#newTabButton a img {
    width: 100%;
    height: 100%;
}
.table {
    display: table;
}

#ghostery-purple-box {
    display: none;
}


/*Textboxes CSS*/
.textboxesPlayerPanel .textboxRelative {
    position: absolute !important;
}

.textboxesPlayerPanel img.cssbox {
    width: 100%;
    height: 100%;
}

.textboxesPlayerPanelOverlay, .mds-holder-poster {
    display: flex;
    visibility: hidden;
    position: relative;
    top: 0%;
    left: 0%;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    width: auto !important;
    height: auto;
    aspect-ratio: var(--aspect-ratio);
}


/** Fallback for not supported browser (aspect ratio) property
    Version's lower then 15 Safari not supported */
@supports not (aspect-ratio: 16 / 9) {
    .video-js-horizontal .textboxesPlayerPanelOverlay {
        width: 100vh !important;
        top:43% !important; /*  use hardcoded value to put textBoxes near middle horizontal-videos*/
    }

    .textboxesPlayerPanelOverlay .textbox {
        width: auto !important;
        height: auto !important;
    }

    .video-js-vertical .textboxesPlayerPanelOverlay {
        width: 50vh !important;
        top:25% !important; /*  use hardcoded value to put textBoxes near middle vertical-videos*/
    }
}


@media (max-aspect-ratio: var(--aspect-ratio)) {
    .textboxesPlayerPanel.videoPlayerOverlay {
        width: 100%;
        top: 0%;
        left: 0%;
        aspect-ratio: var(--aspect-ratio);
        height: auto;
    }
}

.textboxesPlayerPanelOverlay .textbox {
    pointer-events: none;
}

.textboxesPlayerPanelOverlay.mds-fit-video-textboxes {
    position: initial; /* needed when fit video, textboxes to be on correct position */
}

.mds-textbox-button-span {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    cursor: pointer;
}

.settingsPanel .mds-settings-topbar .vjs-svg-icon {
    width: 24px;
    height: 24px;
}

.settingsPanel .mds-settings-topbar {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.4);
}

.settingsPanel .textboxCollections {
    display: flex;
    padding: 0;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}

.textboxCollections button {
    margin: 10px;
    font-size: 1.23657142857em !important;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: inherit;
    display: inline-block;
    font-size: inherit;
    line-height: inherit;
    text-transform: none;
    text-decoration: none;
    transition: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.mds-settings-close {
    cursor: pointer;
}

.uiSwitchTextbox {
    cursor: pointer;
}

.uiSwitchTextbox.selected::before {
    height: 100%;
    width: 1em;
    align-items: center;
    content: "\2022";
    display: inline-flex;
    justify-content: center;
    padding-right: 4px;
}

.uiSwitchTextbox.selected {
    margin-left: -4px;
}

.mds-textbox-btn.opacity {
    opacity: 0.5;
}

.vjs-mobile-view +.uiCollectionTextboxes .mds-settings-topbar {
    display: none;
}

.vjs-mobile-view +.uiCollectionTextboxes .textboxCollections button  {
    color:#333;
}


.vjs-mobile-view +.uiCollectionTextboxes .textboxCollections  {
    width: calc(100% - 2px) !important;
    border: 1px solid #333;
    font-size: 12px;
}

.mds-settings-close svg, .tbButton svg, .vjs-submenu-textboxes  svg {
    width: 24px;
    height: 24px;
}

.video-js.vjs-jplay.vjs-mobile-view .vjs-control.vjs-button .vjs-icon-placeholder.mds-textbox-button-span {
    height: auto;
}

.video-js.vjs-mobile-view .tbButton svg {
    width: 28px;
    height: 28px;
}

.mds-fit-poster-video .vjs-poster {
    background-size: cover;
}

.mds-fit-poster-video .vjs-tech {
    object-fit: fill;
}

.video-js .vjs-big-play-button {
    z-index: 1;
}

/* fix for smaller screens, was not able to play/pause video because of control bar height */
@media (max-width: 480px), (max-height:480px)  {
    @media (hover: hover) {
        /* when hover is supported - not mobile devices */
        .video-js.vjs-jplay.vjs-mobile-view .vjs-control-bar {
            height: 50px;
            padding: 12px 12px 0;
        }
    }
}

.vjs-menu.vjs-setting-menu .vjs-menu-content .vjs-menu-item .vjs-menu-item-text:empty {
    display: none;
}

.mars-player.asBackground .vjs-big-play-button {
    display: none !important; /*prevent showing play/pause btn when background is set to true*/
}