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;*/
    font-family: Helvetica, Arial;

}

i {
  cursor: pointer;
}

.gfycat-logo {
  width: 72px;
  height: 23px;
}

.mobile-controls {
  position: fixed;
  bottom: 0%;
  display: block;
  width: 100%;
  height: 30px;
}

.mobile-control {
  position: absolute;
  display: inline-block;
}

.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:50px;
    display: block;
    /*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;
}
.embed-container {
  position: fixed;
  display: flex;
  width: calc(100% + 1px);
  height: calc(100% + 1px);
  border-radius: 7.5px;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  background-color: rgba(0, 0, 0, .6);
}
.embed-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  /*position: relative;
  left: 50%;
  height: inherit;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  margin: 0 auto;
  top: 50%;*/
  /*top: calc(50% - 25px);*/ /* 25px is a half of a control bar */
  /*font-size: 0;*/
}
.url-box {
  width: 90%;
  position: relative;
  transform: translateX(-50%);
  left: 50%;
  /*margin: 0 1%;*/
}
.url-box--embed {
  height: 70px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.url-box--social {
  transform: translate(-50%, -50%);
  left:50%;
  top: 55%;
  width: 90%;
  position: relative;
}
.url-box-title {
  color: white;
  /*position: absolute;*/
  text-align: center;
  text-align: -webkit-center;
  margin: auto;
}
.url-input-wrapper {
  display:block;
  overflow:visible;
  width: 100%;
}
.url-input {
  width: calc(100% - 40px);
  height: 30px;
  padding-left: 6px;
  box-sizing: border-box;
  font-size: 13px;
  border: none;
  border-radius: initial;
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
}
.copy-url-button {
  height: 30px;
  width: 30px;
  float: right;
  /*margin-left: 10px;*/
  padding: 0;
  outline: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0;
}
.copy-url-button:active {
  opacity: 0.8;
}
.copy-url-button:active::after {
  opacity: 1;
  transition: opacity 0.4s;
}
.copy-url-button:after {
  content: "Copied!";
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  bottom: -20px;
  left: 0px;
  opacity: 0;
  font-size: small;
}
.fa-copy {
  display: inline-block;
  width: 100%;
  height: 100%;
  font-size: 0;
  background-image: url("/images/iframe/fa-copy.svg");
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 25px;
}
.social-container {
  background-color: rgba(0, 0, 0, .6);
  position: fixed;
  width: calc(100% + 1px);
  height: calc(100% + 1px);
  border-radius: 7.5px;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}
.social-buttons {
  display: flex;
  position: relative;
  width: 100%;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  /*background-color: rgba(0, 0, 0, .6);*/
}
.social-buttons .button {
  /*margin: auto;*/
  cursor: pointer;
  width: 100%;
}
.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -khtml-user-select: none;    /* Konqueror */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* IE/Edge */
  user-select: none;           /* non-prefixed version, currently
                                  not supported by any browser */
}
.share-icon {
  max-width: 70px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
}

.hd, .gifLink, .share, .embed {
    -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:1.2em;
    bottom:10px;*/
    margin:0;
    display: inline-block;
    /*right:16px;*/
    pointer-events: all;
    font-family: inherit;
    height:20px;
    -webkit-box-sizing: initial;
    -moz-box-sizing: initial;
    box-sizing: initial;
}

.hd {
  /*line-height: 20px;*/
}

.active {
  color: #1b70ff;
}

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

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

.gifLink {
    text-decoration: none;
    /*line-height:20px;*/
}

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

.external-share {
    position:fixed;
    top:20px;
    left:20px;
    pointer-events:all;
}

.reverse {
  transform: rotateY(180deg);
}

.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:45px;
    visibility: visible !important;
    display: inherit !important;
    z-index: 1;
}

.control-container {
    position: absolute;
    display: flex;
    overflow: visible;
    flex-wrap: wrap;
    width:100%;
    height:16px;
    left:0;
    top:20px;
    color:#d8d8d8;
}

.left {
    display: inline-flex;
    order: 1;
    padding-bottom: 5px;
    /*width: 100%;*/
    height:16px;
    /*margin-right:auto;*/
}

.left .control-icon {
    width:16px;
    margin-left:20px;
    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 {
    order: 2;
    display: inline-flex;
    margin-left: auto;
    height:16px;
    padding-bottom: 5px;
}

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

}

.full-screen {
    width:20px;
    background-image:url("/images/desktop/ic_fullscreen.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: all;
    cursor: pointer;
    margin-right: 16px !important;
}

.full-screen path {
    fill:red;
}

.progress-bar-hover {
    border-radius: 50%;
    width:100%;
    position: absolute;
    padding-top: 5px;
    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:21px;
    width:16px;
    height:16px;
    background-image:url("/images/desktop/ic_website_detail-close.svg");
    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;
}

/* Larger than mobile */
@media all and (max-width: 400px) and (orientation:portrait){
  .share-video {
      /*max-height:calc(100vh - 100px);*/
      max-height:calc(100vh - 155px);
      max-width:calc(100vw);
  }
}

@media all and (max-width: 700px) and (orientation:landscape) {
  .share-video {
    max-height: calc(100vh);
    max-width: calc(100vw - 300px);
  }
}

/*
 * 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 {
    display: none;
    visibility: hidden;
    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; } }
