html,body {
    height:100vh;
    width:100vw;
}

img {
    text-decoration: none;
    border: 0;
}

body {
    background-color:#222937 !important;
    font-size:16px;
    margin:0;
    -webkit-animation: bugfix infinite 1s;
    -moz-animation: bugfix infinite 1s;
    -o-animation: bugfix infinite 1s;
    animation: bugfix infinite 1s;
    font-family: 'Open Sans', sans-serif;

}

.flex-container {

    position:absolute;
    display:inline-block;
    left: 50%;
    top: 50%;
    margin-right: -50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);

}

.share-video {
    display:block;
    -webkit-border-radius: 7.5px;
    -moz-border-radius: 7.5px;
    border-radius: 7.5px;
    max-height:calc(100vh - 120px);
    max-width:calc(100vw - 120px);

}

.hover-container {
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:100%;
    pointer-events: none;

}

.share-container {
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:80px;
    background: -webkit-linear-gradient(top, rgba(34, 41, 55, .8), rgba(34, 41, 55, 0));
    background: -o-linear-gradient(top, rgba(34, 41, 55, .8) , rgba(34, 41, 55, 0));
    background: -moz-linear-gradient(top, rgba(34, 41, 55, .8), rgba(34, 41, 55, 0));
    background: linear-gradient(to bottom, rgba(34, 41, 55, .8), rgba(34, 41, 55, 0));
}

.detail-container {

    position:absolute;
    left:0;
    bottom:0;
    padding:16px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width:100%;
    height:80px;
    background: -webkit-linear-gradient(bottom, rgba(34, 41, 55, .8), rgba(34, 41, 55 0));
    background: -o-linear-gradient(bottom, rgba(34, 41, 55, .8) , rgba(34, 41, 55, 0));
    background: -moz-linear-gradient(bottom, rgba(34, 41, 55, .8), rgba(34, 41, 55, 0));
    background: linear-gradient(to top, rgba(34, 41, 55, .8), rgba(34, 41, 55, 0));
}

.title {
    margin:0;
    position:absolute;
    color:#ffffff;
    bottom:45px;
}

.tags-row {
    position:absolute;
    height:20px;
    bottom:20px;
}

.tags-row a:nth-of-type(n+2) {
    margin-left:3px;
}

.tag {
    font-size:11px;
    padding:1px 9px;
    background-color:rgba(197,217,253,0.22);
    border:none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    cursor:pointer;
    color:rgba(197,217,253,1);
    text-decoration: none;
    pointer-events: all;
}

.hd,.gifLink {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background:transparent;
    border:1px solid #d8d8d8;
    padding:0 4px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    cursor:pointer;
    color:#d8d8d8;
    opacity:0.8;
    font-size:.6875em;
    bottom:10px;
    margin:0;
    position:absolute;
    right:16px;
    display:none;
    pointer-events: all;
    font-family: inherit;
    height:20px;
    -webkit-box-sizing: initial;
    -moz-box-sizing: initial;
    box-sizing: initial;
}

.hd.active {
    color:white;
    opacity:1;
    border-color: white;
}

.hd:focus,.hd:active {
    outline: none;
}

.gifLink {
    right:48px;
    display:block;
    text-decoration: none;
    line-height:20px;
}

.gifLink.right {
    right:16px;
}

.share-image {
    position:absolute;
    right:16px;
    bottom:16px;
    height:39px;
    cursor:pointer;
    pointer-events: all;
}

.external-share {
    position:absolute;
    top:16px;
    right:16px;
    pointer-events:all;
}

.social-share-group {
    position:absolute;
    right:16px;
    bottom:66px;
    width:39px;
    height:auto;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: visibility 0s .25s, opacity .25s linear;
    -moz-transition: visibility 0s .25s, opacity .25s linear;
    -o-transition: visibility 0s .25s, opacity .25s linear;
    transition: visibility 0s .25s, opacity .25s linear;
    pointer-events: all;
}

.social-share-group a {
    display:block;
}


input[type=checkbox]:checked ~ .detail-container .social-share-group {
    visibility: visible;
    opacity:1;
    -webkit-transition: opacity .25s linear;
    -moz-transition: opacity .25s linear;
    -o-transition: opacity .25s linear;
    transition: opacity .25s linear;
}

input[type=checkbox]:checked ~ .share-container, input[type=checkbox]:checked ~ .share-container .external-share {
    visibility: hidden;
    opacity:0;
}

.outside-hover-container {
    position:absolute;
    bottom:-45px;
    width:100%;
    height:40px;
    display:none;
}

.control-container {
    position: absolute;
    width:100%;
    height:16px;
    left:0;
    top:16px;
    color:#d8d8d8;
}

.left {
    float:left;
    height:16px;
}

.left .control-icon {
    width:16px;
    margin-left:30px;
    font-size:16px;
    cursor: pointer;
    pointer-events: all;
    vertical-align: top;
}

.left .control-icon:hover {
    color:white;
}

.left .control-icon:first-child {
    margin-left:16px;
}

.right {
    float:right;
    height:16px;
}

.right .right-element {
    margin-right:30px;
    display: inline-block;
    vertical-align: top;
    height:16px;
    line-height:16px;
    font-size:.6875em;

}

.right .full-screen {
    width:20px;
    background-image:url('/javascript/shared/share-page/assets/images/ic_fullscreen.svg'),none;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: all;
    cursor: pointer;
    margin-right:16px;
}

.right .full-screen path {
    fill:red;
}

.progress-bar-hover {
    width:100%;
    position: absolute;
    top:0;
    left:0;
    height:7px;
    background:transparent;
    pointer-events: all;
    cursor:pointer;
    cursor:-webkit-grab;
    cursor:-moz-grab;
    align-items: center;
}

.progress-bar-highlighted {
    position: absolute;
    bottom:0;
    left:0;
    height:5px;
    width:0;
    margin-bottom:1px;
    background-color:white;
    z-index:10;
}

.progress-bar-hover:hover .progress-bar {
    height:5px;

}

.progress-bar-hover:hover .progress-circle {
    height:13px;
    width:13px;
    margin-left:-6px;
}

.progress-bar {
    position:relative;
    width:100%;
    height:3px;
    background-color:#d8d8d8;
}

.progress {
    position: absolute;
    height:100%;
    width:0;
    background-color: #1b70ff;
    z-index:11;
}

.progress-circle {
    position: absolute;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    height:0;
    width:0;
    top:50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: width 200ms,height 200ms;
    -moz-transition: width 200ms,height 200ms;
    -ms-transition: width 200ms,height 200ms;
    -o-transition: width 200ms,height 200ms;
    transition: width 200ms,height 200ms;
    background-color:#1b70ff;
    z-index:11;
}

.sharepage-close {
    position: fixed;
    right:20px;
    top:20px;
    width:16px;
    height:16px;
    background-image:url('/javascript/shared/share-page/assets/images/ic_website_detail-close.svg'),none;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.dragging-hover-container:hover .hover-container {
    display:none !important;
}

.grabbing-cursor {
    cursor:pointer;
    cursor:-webkit-grabbing;
    cursor:-moz-grabbing;
}

.flex-center {
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
}

/*
 * iPad with portrait orientation.
 */
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait){
    html,body {
        height: 1024px;
        width:768px;
    }

    .share-video {
        max-height:1024px;
        max-width:768px;
    }
}

/**
 * iPad with landscape orientation.
 */
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape){
    html,body {
        height: 768px;
        width:1024px;
    }

    .share-video {
        max-height:768px;
        max-width:1024px;
    }
}

/**
 * iPhone 5
 * You can also target devices with aspect ratio.
 */
@media screen and (device-aspect-ratio: 40/71) {
    html,body {
        height: 500px;
    }

    .share-video {
        max-height:500px;
    }
}

@media only screen and (min-device-width: 1025px) {

    .flex-container.desktop video::-webkit-media-controls-enclosure {
        display:none !important;
    }

    .flex-container.desktop video::-webkit-media-controls {
        display:none !important;
    }

    .flex-container.desktop, .flex-container.desktop .share-video {
        height:auto;
        width:auto;
    }

    .flex-container.desktop .hover-container {
        visibility: hidden;
        opacity: 0;
        -webkit-transition: visibility 0s .25s, opacity .25s linear;
        -moz-transition: visibility 0s .25s, opacity .25s linear;
        -o-transition: visibility 0s .25s, opacity .25s linear;
        transition: visibility 0s .25s, opacity .25s linear;
    }

    .flex-container.desktop:hover .hover-container  {
        visibility: visible;
        opacity: 1;
        -webkit-transition: opacity .25s linear;
        -moz-transition: opacity .25s linear;
        -o-transition: opacity .25s linear;
        transition: opacity .25s linear;
    }
}

.is-visible {
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-transition: opacity .25s linear !important;
    -moz-transition: opacity .25s linear !important;
    -o-transition: opacity .25s linear !important;
    transition: opacity .25s linear !important;
}

.is-hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    -webkit-transition: visibility 0s .25s, opacity .25s linear !important;
    -moz-transition: visibility 0s .25s, opacity .25s linear !important;
    -o-transition: visibility 0s .25s, opacity .25s linear !important;
    transition: visibility 0s .25s, opacity .25s linear !important;
}

@-moz-document url-prefix() {
    .hd {
        padding:0;
    }
}

@-webkit-keyframes bugfix { from { padding: 0; } to { padding: 0; } }
@-moz-keyframes bugfix { from { padding: 0; } to { padding: 0; } }
@-o-keyframes bugfix { from { padding: 0; } to { padding: 0; } }
@keyframes bugfix { from { padding: 0; } to { padding: 0; } }
