@font-face {
  font-family: OpenSans;
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
}@font-face {
  font-family: OpenSans;
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/OpenSans-Bold.woff2') format('woff2');
}@font-face {
  font-family: OpenSans;
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/OpenSans-Semibold.woff2') format('woff2');
}
html{overflow: hidden;}
body{
    margin: 0;
    background-color: #242424;
    color:#DDD;
    font-family: OpenSans, sans-serif;
    overflow: hidden;
}
h1{
    margin-top: 10px;
}




    
.box{/* Pour un aspect ratio bon */
	position: relative;
    top: 25px;
    display: inline-block;
    opacity: 0;
    padding: 50px;
    box-sizing: border-box;
    border: 1px solid #5C78DC;
}

#camera{
    position:  absolute;
    top: 25px;
    left: 25px;
    bottom: 25px;
    right: 25px;
}
#cameraContainer{
    padding: 10px;
    border: 1px solid #5C78DC;
}

#debug{
    position:absolute;
    top:0px;
    right:0px;
    background-color:#FFF;
}
#video{
    display: inline-block;
    width: 300px;
}




.grid::before{
    content: " ";
    position: relative;
    float: left;
    height: 100%;
    left: 33%;
    width: 33%;
    z-index: 3;
    border-left: 1px solid white;
    border-right: 1px solid white;
}
.grid::after{
    content: " ";
    position: inherit;
    float: left;
    width: 100%;
    height: 33%;
    top: 33%;
    left: 0;
    z-index: 3;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}



#bottomUI{
    position: absolute;
    bottom: 0px;
    width:100%;
    z-index: 4;
}
#snapshots{
    background-color: #3C3C3C;
    box-shadow: inset #292929 0px 0px 15px;
    height: 100px;
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    width: 100%;
}
#snapshots canvas
{
    padding-top: 5px;
    background-color: #7b7b7b;
    margin-left: 2px;
}
#snapshots .selected{
    background-color: #E0AB4A;
}
#show_stream{
    background-color: #5C78DC;
    height: 100%;
    min-width: 133px;
    display: inline-block;
    border:none;
    margin: 0;
    border-radius: 0;
}


#toolbar{
    text-align: center;
    height: 110px;
    overflow: hidden
}
button, .boutonCarre, .bouton {
    background-color: #696969;
    color: #DDD;
    font-size: 1em;
    border-width: 0px;
    border-style: solid;
    border-radius: 2px;
    margin: 3px;
    cursor: pointer;
    padding: 8px;
    box-shadow: 0px 0px 10px rgba(50, 50, 50, 0.1);
    transition: all 0.2s ease-in-out;
}
.bouton{
    text-decoration: none;
    padding: 4px;
}
.boutonCarre{
    display: inline-block;
    box-sizing: border-box;
    padding: 2px 6px 3px;
    border: 1px  solid #c9c9c9;
    border-radius: 0;
    text-decoration: none;
}
.boutonDownload{
    width: 200px;
    height: 200px;
}
.boutonCarre:hover, button:hover{
    background-color: #717171;
}
input[type="number"]{
    font-size: 1.1em;
    width: 50px;
    background-color: #696969;
/*    border: 1px solid #ccc;*/
    border:0;
    color: #DDDDDD;
    padding: 5px;
    cursor: pointer;
    margin-left: 9px;
    margin-right: 9px;
}
input[type="text"]{
    height: 20px;
    width: 150px;
    background-color: #696969;
/*    border: 1px solid #ccc;*/
    border:0;
    padding: 5px;
    color: #DDDDDD;
    font-size: 1.1em;
}

.styledInput input{
    position: relative;
    bottom: 5px;
}


#onionBlending{
    cursor: pointer;
    width: 120px;
    height: 12px;
    display: inline-block;
    bottom: 40px;
    position: relative;
    background: #626262;
    border-radius: 3px;
}
#onionBlending span{
    height:24px;
    width:24px;
    top: -6px;
    border-radius: 12px;
    outline: none;
    background-color: #5C78DC;
    border: 0;
}
#onionBlending span:hover{
    background-color: #7b94ed;
}

.boutonDownloadImages, .boutonDownloadWebm{
    background-repeat: no-repeat;
    background-size: 85%;
    background-position: center;
}
.boutonDownloadImages{   
    background-image: url('../images/DownloadImages.png');
}
.boutonDownloadWebm{   
    background-image: url('../images/DownloadWebm.png');
}
#take_snapshots, #play, #loop, #pause, #save, #settings, #difference, #shortPlay, #moreOptions,#menuMobile{
    width: 100px;
    height: 100px;
    border-radius: 50px;
    position: relative;
    border: 0;
    background-image: url('../images/Camera.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 58%;
    display: inline-block;
    cursor: pointer;
}
#play{
    width: 50px;
    height: 50px;    
    background-image: url('../images/Play.png');
    background-position-x: 12px;
}
#pause{
    width: 50px;
    height: 50px;    
    background-image: url('../images/Play.png');
    background-position-x: 12px;
    background-color:#e84747;
    display:none;
}
#save{
    width: 50px;
    height: 50px;    
    background-image: url('../images/Download.png');
}
#settings{
    width: 50px;
    height: 50px;    
    background-image: url('../images/Settings.png');
}
#take_snapshots{
     background-color: #5C78DC;
    margin-right:10px;
    margin-left:10px;
}
#take_snapshots:hover{
     background-color: #516dd0;
}
#loop{
    width: 50px;
    height: 50px;    
    background-image: url('../images/Loop.png');
}
#shortPlay{
    width: 50px;
    height: 50px;    
    background-image: url('../images/Shortplay.png');
}
#difference{
    width: 50px;
    height: 50px;    
    background-image: url('../images/Difference.png');
}
#moreOptions{
    width: 50px;
    height: 50px;    
    background-image: url('../images/moreOptions.png');
}
#menuMobile{
    width: 50px;
    height: 50px;    
    background-image: url('../images/arrow.png');
    display:none;
}

#Options{
    display: none;
    text-align: left;
    position: absolute;
    bottom: 200px;
    z-index: 2;
    overflow: hidden;
    border-radius: 5px;
}
#Options span{
    display: inline-block;
    background-color: #696969;
    padding: 7px;
    line-height: 1.5em;
    width: 100%;
    cursor: pointer;
}

#Options span:hover{
    background-color: #717171;
}


.toolbarButton{   
    position: relative;
    margin-bottom: 25%;
    transform: translateY(-50%);
    margin-right:10px;
    margin-left:10px;
}

.toolbarItem{
    font-size: 2em;
    height: 50px;
    width: 50px;
    transform: translateY(0);
    position: relative;
    bottom: 33%;
    margin: 0;
    margin-right:10px;
    margin-left:10px;
}
.disabled, button:disabled{
    opacity: .5;
}

#hautContainer
{
    margin-bottom: 20px;
}


#sidebar{   
display:flex;
    flex-direction: column;
    position:absolute;
    right:20px;
    top:50px;
    z-index: 4;
}
.boutonSideBar{
    width: 47%;
    padding-bottom:47%;
}

#overlay{
    display:none;
    position:absolute;
    text-align: center;
    white-space: nowrap;
    top:0;
    left:0;
    z-index: 5;
    width:100%;
    height:100%;
    background-color:rgba(0,0,0,0.5);
}

#overlay:before{
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.25em; /* Adjusts for spacing */
}
.optionPop{
    display:none;
    background-color:#4a4a4a;
    border:2px solid #36658d;
    padding:10px;
    box-sizing: border-box;
    
    width: 800px;
    
    text-align: center;
    
    position: relative;
    margin: auto;
    vertical-align: middle;
/*
    top: 33%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
*/
}
#settingsPop p{
    font-size:1.2em;
}
#downloadLinks{
    display:none;
}
#lang-button{
    width: auto;
}
#progressPop{
}



/* FORM ELEMENTS */ 
label:hover{
    cursor: pointer;
}
.checkbox {
	width: 40px;
	height: 10px;
	background: #626262;
	margin-right: 12px;
	margin-left: 12px;
	position: relative;
	border-radius: 3px;
    display: inline-block;
}
.checkbox input {
    display:none;
}
.checkbox label {
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 50%;

	transition: all .5s ease;
	cursor: pointer;
	position: absolute;
	top: -3px;
	left: -3px;

	background: #a8a8a8;
}
.checkbox label:hover {
	background: #98a7bc;
}
.checkbox input[type=checkbox]:checked + label {
	left: 27px;
    background-color:#6d86e0;
}
.checkbox input[type=checkbox]:checked + label:hover {
	left: 27px;
    background-color:#7b94ed;
}

.radio-custom {
    opacity: 0;
    position: absolute;   
}

.radio-custom, .radio-custom-label {
    display: inline-block;
    vertical-align: middle;
    margin: 5px;
    cursor: pointer;
}

.radio-custom-label {
    position: relative;
}

.radio-custom + .radio-custom-label:before {
    content: '';
    background: #DCDCDC;
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    padding: 2px;
    margin-right: 10px;
    text-align: center;
}

.radio-custom + .radio-custom-label:before {
    border-radius: 50%;
}

.radio-custom:checked + .radio-custom-label:before {
    background: #5C78DC;
    box-shadow: inset 0px 0px 0px 4px #E4E4E4;
}









#snapshots::-webkit-scrollbar, #framerateSelection-menu::-webkit-scrollbar {
    width: 15px;
}
#snapshots::-webkit-scrollbar-thumb, #framerateSelection-menu::-webkit-scrollbar-thumb {
    min-height: 50px;
    background-color: hsla(0,0%,100%,.15);
    border: 3px solid transparent;
    border-radius: 8px;
    background-clip: padding-box;
}
#snapshots::-webkit-scrollbar-track, #framerateSelection-menu::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,.2);
}
.ui-tooltip{
    box-shadow: none;
    border-width:1px;
    border: 1px solid #bbb;
}
.link{
    color:#7FA5EF;
}


/*** MOBILE ***/


@media screen and (max-width: 1080px) {
    #bottomUI{
        bottom: -240px;
    }
    #hautContainer{
        min-width:0px;
    }
    .box{
        top:0px;
    }
/*
    .box{
        width: 100%;
        position: absolute;
        top:0px;
        left:0px;
        padding: 0px;
    }
    #camera{
        top:0px;
        bottom:0px;
        right:0px;
        left:0px;
    }
*/
    #toolbar{
        overflow: visible;
    }
    #take_snapshots{
        position: fixed;
        bottom: 5px;
        left: 50%;
        margin-right: 50px;
        z-index: 4;
    }
    #menuMobile{
        display: inline-block;
        position: fixed;
        bottom: -5px;
        left: 15px;
        margin: 0px;
        z-index: 4;
    }
    #currentFrame, #sep, #fsplabel{
        display: none;
    }
}
@media screen and (max-width: 815px) {
    #take_snapshot{
        width: 75px;
        height: 75px;
    }
    #take_snapshots, #play, #loop, #pause, #save, #settings, #difference, #shortPlay, #moreOptions, #menuMobile{
        width: 50px;
        height: 50px;
    }
    #onionBlending{
        width: 90px;
    }
    #toolbar{
        height:50px;
    }
}
#progressContainer {
    height:20px;
    margin: auto;
    margin-bottom: 15px;
    margin-top: 15px;
    
    width: 500px;
    background-color: #484848;
    box-shadow: inset 0 0 7px #2d2d2d;
}

#progressProgress {
    background-color: #5c78dc;
    height: 100%;
}

#progressNumber {
    color:#dddddd;
    text-align: center;
}

.loadingAnimation {
    width:50px;
    height: 50px;
    background-color:#5C78DC;
    position: absolute;
    top: 200px;
    left: 50vw;
    
    animation-name: loading;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes loading {
    0% {transform:rotate(0deg);
        border-radius: 5px;
    }
    50% {transform:rotate(-90deg);
        border-radius: 15px;
        transform: scale(0.6);
    }
    100% {transform:rotate(-180deg);
        border-radius: 5px;
    }
}

.styledSelect select{
    background: transparent;
    padding: 5px;
    font-size: 1em;
    padding-right:25px;
    line-height: 1.4;
    border: 0; 
    border-radius: 0;
    height: 34px;
    -webkit-appearance: none;
    color: #DDDDDD;
    position: relative;
    bottom: 6px;
}

.styledSelect {
    display: inline-block;
    margin-left: 9px;
    margin-right: 9px;
    margin-top: 5px;
    margin-bottom: 5px;
    background: url('../images/Drop.png') no-repeat right rgb(105, 105, 105);
    background-size: 22px;
/*    border: 1px solid #969696;*/
    height:34px;
    cursor: pointer;
   }

.form {
    display:flex;
}

.formLabels {
    width:400px;
    text-align:right;
    line-height: 40px;
}

.formInputs {
    text-align: left;
    width:400px;
    line-height: 46px;
}

.styledFile {
    display: inline-block;
    margin-left: 9px;
    margin-right: 9px;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color:rgb(105, 105, 105);
    border: 1px solid #969696;
    border:0;
    height: 34px;
    position: absolute;
    cursor: pointer;
}
input[type="file"]{
    opacity: 0;
    height: 34px;
    position: relative;
    bottom: 10px;
}

.formLabels label {
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 5px;
}

.styledFile span {
    line-height: 34px;
    position: absolute;
    padding-left: 5px;
}

.styledInput {
    display: inline-block;
    margin-left: 9px;
    margin-right: 9px;
    margin-top: 5px;
    margin-bottom: 5px;
    height: 36px;
}

.inputRatio {
    height:36px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.inputRatio input, .inputRatio label{
    position:relative;
    bottom:15px;
    height: 36px;
    margin:0;
}

#submitExport {
    background-color: #5c78dc;
    height: 50px;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 2px;
    text-transform: uppercase;
    font-size: 1.4em;
    border: 0;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}
#submitExport:hover{
    background-color: #7189e0;
}

.closePop {
    margin-top:20px;
}

#settingsPop {
    display:none;
}

#camera_info {
    
    display: inline-block;
    margin-left: 9px;
    margin-right: 9px;
    margin-top: 5px;
    margin-bottom: 5px;
    height:34px;
}

.checkboxCont {
    display: inline-block;
    height:36px;
    margin-top :2px;
    margin-bottom: 2px;
}

h2 {    
    font-size: 1.2em;
    margin-bottom: 4px;
    margin-top: 20px;
}

.selectFps {
    position: relative;
    bottom: 33%;
}

.selectFps select{
    bottom: -16px;
    font-size: 1.2em;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}



#letterboxChoose {
    display: none;
}
