html,body{
    overscroll-behavior: none;  
    -webkit-overflow-scrolling: touch;    
    margin:0px;
    padding:0px
}

#vid_container {
    position: fixed;
    top: 0; left: 0;
}      

#video{
    width: 100%;
    height: 230px;
    object-fit: cover;
    z-index: 0;
    margin-top: 20px;
} 

#gui_controls {
    position: fixed;
    background-color: #111; /*rgba(255, 0, 0, 0.5);*/
    z-index: 2;
    bottom:0;
}      

#video_overlay {
    position: fixed; 
    display: none; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 10;
    background-color:#111;
}

/*  Button style from: 
    https://googlesamples.github.io/web-fundamentals/fundamentals/media/mobile-web-video-playback.html */

#gui_controls button {
    outline: none;
    position: absolute;
    color: white;
    display: block;
    opacity: 1;
    background: transparent;
    border: solid 2px #fff;
    padding: 0;
    text-shadow: 0px 0px 4px black;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: auto;
    z-index: 2;
}

/*#takePhotoButton {
    left: calc(50% - 40px);
    top: calc(50% - 40px);
    width: 80px;
    height: 80px;
    background-image: url('../img/ic_photo_camera_white_48px.svg') !important;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

#takePhotoButton:active {
    background-color: #fff;
}*/

#toggleFullScreenButton {
    display: none;
    width: 64px;
    height: 64px;
    background-image: url('../img/ic_fullscreen_white_48px.svg') !important;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

#toggleFullScreenButton[aria-pressed="true"] {
    background-image: url('../img/ic_fullscreen_exit_white_48px.svg') !important;
}

#switchCameraButton {
    display: none !important;
    width: 64px;
    height: 64px;
    background-image: url('../img/ic_camera_rear_white_36px.svg') !important;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

#switchCameraButton[aria-pressed="true"] {
    background-image: url('../img/ic_camera_front_white_36px.svg') !important;
}

#camera--frame{
    position: absolute;
    top: 20px;
    border: 20px solid rgba(0, 0, 0, 0.5);
    height: 230px;
    width: 100%;
}

.hide{
    display:none;
}

.show{
    display:block;
}

/*#media_container{
    display:none;
}*/

#capture_heading{
    color: #fff;
    position: absolute;   
    top: 117px;
    width: 100%;
    text-align: center; 
}

#native_capture_heading{    
    text-align: center;    
    font-size: 14px;
    margin-bottom: 10px;
}

#media_container .form-footer{
    position: relative;
    /*top: 230px;*/
}

#corner-top:before {
    display: block;
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    top: 39px;
    left: 19px;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
}
#corner-top:after {
    display: block;
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    top: 39px;
    right: 19px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
}

#corner-bottom:before {
    display: block;
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    bottom: 24px;
    left: 19px;
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
}
#corner-bottom:after {
    display: block;
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    bottom: 24px;
    right: 19px;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
}

/* This used to work for the parent element of button divs */
/* But it does not work with newer browsers, the below doesn't hide the play button parent div */

*::-webkit-media-controls-panel {
    display: none!important;
    -webkit-appearance: none;
  }
  
  /* Old shadow dom for play button */
  
  *::-webkit-media-controls-play-button {
    display: none!important;
    -webkit-appearance: none;
  }
  
  /* New shadow dom for play button */
  
  /* This one works! */
  
  *::-webkit-media-controls-start-playback-button {
    display: none!important;
    -webkit-appearance: none;
  }

  video::-webkit-media-controls-panel {
    display: none!important;
    -webkit-appearance: none;
  }
  
  /* Old shadow dom for play button */
  
  video::-webkit-media-controls-play-button {
    display: none!important;
    -webkit-appearance: none;
  }
  
  /* New shadow dom for play button */
  
  /* This one works! */
  
  video::-webkit-media-controls-start-playback-button {
    display: none!important;
    -webkit-appearance: none;
  }

  #video::-webkit-media-controls-panel {
    display: none!important;
    -webkit-appearance: none;
  }
  
  /* Old shadow dom for play button */
  
  #video::-webkit-media-controls-play-button {
    display: none!important;
    -webkit-appearance: none;
  }
  
  /* New shadow dom for play button */
  
  /* This one works! */
  
  #video::-webkit-media-controls-start-playback-button {
    display: none!important;
    -webkit-appearance: none;
  }

@media screen and (orientation:portrait) {
    /* portrait-specific styles */

    /* video_container (video) doesn't respect height... 
       so we will fill it in completely in portrait mode
    */
    #vid_container {  
        margin: auto;
        width: 92%;
        position: relative;
        height: 230px;
        overflow: hidden;     
    }  
	#video{margin-top: 0px;}
	#camera--frame {
		top: 0px;
	}
    #gui_controls {
        width: 100%;
        height: 20%;
        left:0;
    }

    #switchCameraButton { 
        left: calc(20% - 32px);
        top: calc(50% - 32px);
    }

    #toggleFullScreenButton { 
        left: calc(80% - 32px);
        top: calc(50% - 32px);
    }
	#corner-top:before,#corner-top:after {
		top:19px;
	}
	#corner-bottom:before{
	    bottom: 19px;
	}
}

@media screen and (orientation:landscape) {

    #vid_container {
        width:56%;
        margin: 0 auto;
		position: relative;
		max-width: 365px;height: 230px;overflow: hidden;
    }  
	#video{margin-top: 0px;}
	#camera--frame {
		top: 0px;
	}
	#corner-top:before,#corner-top:after {
		top:19px;
	}
	#corner-bottom:before{
	    bottom: 19px;
	}
    #vid_container.left {
        left:20%;
    }

    /* we default to right */
    #gui_controls {
        width: 20%; 
        height:100%;
        right:0;
    }  

    /* for the lefties */
    #gui_controls.left {
        left:0;
    }

    #switchCameraButton { 
        left: calc(50% - 32px);
        top: calc(18% - 32px);
    }

    #toggleFullScreenButton {
        left: calc(50% - 32px);
        top: calc(82% - 32px);
    }
	#media_container .form-footer {
    position: relative;
    top: 0px; 
}

} 
.text_prim{color:#4A4A4A;display:block;margin-top:4px;}

.instructions {
	padding: 20px;
}
.ins-header {
	margin-bottom: 50px;
}
.ins-close {
    margin-bottom: 20px;
}
.ins-close a {
    background-color: #8e8e93;
    border-radius: 50%;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    width: 22px;
}
.ins-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    margin-bottom: 0;
}
.iphone-device {
    border: 1px solid #e5e5e5;
    border-radius: 9px;
    height: 260px;
    margin-bottom: 26px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 10px;
    position: relative;
    width: 155px;
}
.iphone-device-inner {
    background-color: #222;
    border: 1px solid #e5e5e5;
    /*height: 120px;*/
}
.iphone-device img {
    height: 197px;
    width: 100%;
}
.iphone-device .camera {
    background-color: #e5e5e5;
    border-radius: 5px;
    height: 2px;
    left: 6px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    z-index: 3;
}
.iphone-device .speaker {
    background-color: #e5e5e5;
    border-radius: 5px;
    height: 1px;
    left: 48%;
    position: absolute;
    top: 11px;
    /* transform: translateX(50%); */
    width: 11px;
    z-index: 3;
}
.iphone-device .home-button {
    border-radius: 36px;
    box-shadow: 0 0 0 1px #e5e5e5 inset;
    height: 16px;
    position: absolute;
    right: 45%;
    top: 91%;
    /* transform: translateY(-50%); */
    width: 16px;
    z-index: 3;
}
.instructions .upload-input-cont i {
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
    margin-right: 0;
}
.instructions .upload-input {
    margin-bottom: 0;
    padding: 22px 30px;
}
.inscard-instruction .ins-header {
    margin-bottom: 40px;
}
.card-info-text {
    color: #ca3537;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 17px;
    margin-bottom: 8px;
    text-align: center;
}
.upload-input {
    /*border: 1px dashed var(--themecolor);*/
    color: var(--themecolor);
	cursor: pointer;
    /*margin: 18px;*/
    overflow: hidden;
    padding: 5px 2px;
    position: relative;
    text-align: center;
}
.upload-input-cont input[type="file"] {
    bottom: 0;
    cursor: pointer;
    font-size: 20px;
    left: 0;
    margin: 0;
    opacity: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}