/* This solution was very difficult to find
Tom Tavar: 12/15/18

This solution still needs work to remove the bottom border in the viewport.
But it successfully resizes the video element and is sticky top/left/right.

NOTES: # = id selector
       . = class selector

*/

html, body {
  margin: 0 !important; 
  border: 0 !important;
  padding: 0 !important;
  background-color: black;
  height: 100%;
  width: 100%;
}

/* Force video into Landscape mode on phones*/
#phoneLandmode { display:block; }

/* This handles ALL portrait screen and the Desktop screen */
@media only screen and (orientation:portrait) {
  #phoneLandmode {
    /*
    height: 100vw;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    */
    
     position: fixed;
     bottom: 0;
     padding-bottom: 10px;
     
  }
}

/* This handles the iPhone Landscape screens */
@media only screen and (min-width: 360px) and (orientation:landscape){
  #phoneLandmode {
    /*
     -webkit-transform: rotate(0deg);
     -moz-transform: rotate(0deg);
     -o-transform: rotate(0deg);
     -ms-transform: rotate(0deg);
     transform: rotate(0deg);
     */
     position: fixed;
     bottom: 0;
     padding-bottom: 10px;
    
  }
}

/* This handles the Android Samsung Landscape screens?? */
@media only screen and (min-width: 740px) and (orientation: landscape){
  #phoneLandmode {
    /*
     -webkit-transform: rotate(0deg);
     -moz-transform: rotate(0deg);
     -o-transform: rotate(0deg);
     -ms-transform: rotate(0deg);
     transform: rotate(0deg);
     */
     position: fixed;
     bottom: 0 !important;
     padding-bottom: 10px;
    
  }
}

/* This is my ID definition for the #video container.ss-logo-reveal */
/* Usage: <Div id="video-container" > */
#video-container {
  
  /* An absolute position element is positioned relative to the first parent element that has a position other than static.
   * A relative positioned element is positioned relative to its normal position. */
  
  position: absolute; 
  /*position: relative; */
  
  top: 50%;
  left: 50%;
  
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);

  /*width: auto;
  height: auto; */
  
  width: 100%;
  height: 100%;
  
  z-index: 10;
  min-width: 100%;
  min-height: 100%;
  background-color: black;
  background-size: cover;
  overflow: hidden;

/* width: calc(100vh * (1000 / 562));     /* video width / height  */
/* height: calc(100vw * (562 / 1000));     /* video height / width  */

 }




/* This is my CSS class selector definition for the ss-logo-reveal video */
/* Usage: <video class="ss2-logo-reveal" > */
.ss2-logo-reveal video {
  position: absolute;

  /*

  width: 50%;
  height: 50%;
  
    top: 0;
  left: 0;
  
  */
  
  top: 50%;
  left: 50%;

  width: 100%;
  height: 100%;


  
  z-index: 10;
  min-width: 100%;
  min-height: 100%;
  overflow: hidden;
padding: 0 !important;

  /*
    box-sizing: border-box;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  transform: translate(-50%, -50%);
  
  top: 50%;
  left: 50%;

  margin: 0;
  
  bottom:0;
  
  right: 0;
  */
}



