/*
** modal
*/

.baApp__modalWrapper{
	display:flex;
	flex-direction:column;
	position:fixed;
	left:0;
	top:0;
	width:100vw;
	height:100vh;
	background-color:RGBA(0,0,0,0.95);
	z-index:31999;	
	justify-content: center;
  	align-items: center;
}

.baApp__modalWrapper.hidden{
	display:none;
}

.baApp__modalBlock{
	display:flex;
	flex-direction:column;
	position:fixed;
	left:1rem;
	top:1rem;
	width:calc(100vw - 2rem);
	height:calc(100vh - 2rem);
	background-color:RGBA(255,255,255,0.95);
	border-radius:1rem;
	z-index:32000;
}

.baApp__modalWrapper.autosize .baApp__modalBlock{
	width:auto;
	height:auto;
}


.baApp__modalBlock.hidden{
	display:none;
}


.baApp__modalBlockClose{
	display:block;
	position:absolute;
	right:2rem;
	top:2rem;
	width: 3.6rem;
  	height: 3.6rem;
	background-color:RGBA(255,255,255,0.8);
	z-index:2048;
	cursor:pointer;
	padding:0.6rem;
	border-radius:50%; 
}

.baApp__modalContent{
	display:flex;
	flex-direction:column;
	justify-content:flex-start;
	height: 100%;
	width:100%;		
}


/* modal 
#baApp__QRmodalBlockClose{
	background-color: #ffffff;
	padding:0.5rem;
	border-radius:1rem;
}
*/

.baApp__topLine{
	display:block;
	position:relative;
	width:100%;
	height:8rem;
	background-image:url('/assets/images/QR-modal-back.jpg');
	background-position:center;
	background-repeat:no-repeat;
	background-size: cover;
	border-radius:2rem 2rem 0 0; 
}


.baApp__videoContainer{
	display:block;
	position:relative;
	width: calc(100vw - 2rem);
	height: calc( (100vw - 2rem));
	background-color:RGBA(30,30,30,1);
	overflow:hidden;
	object-fit: cover;
}

.baApp__modalQRContent{
	display:block;
	position:relative;
	width: calc(100vw - 2rem);
	height: calc( (100vw - 2rem));
	background-color:transparent;
	object-fit: cover;
}


.baApp__bottomLine{
	display:block;
	margin:3rem 0 0 0;
	padding: 0 2rem ;
	font-size:1.7rem;
	line-height:145%;
	font-weight:300;
}




.baApp__modalInfoline{
	display:block;
	position:absolute;
	left:0;
	top:-30rem;
	width:100%;
	height:auto;
	line-height:120%;
	padding:1rem 1.5rem;
	background: linear-gradient(45deg, #daf229 0%,#8edb29 100%);
	
	animation-duration: 5s;
  	animation-name: slidein;
	z-index:32767;
}

.baApp__modalInfoline_win{
	position:fixed;
	padding:1.5rem;
}

.baApp__modalInfoline_warning{
	background: linear-gradient(45deg, #f2c959 0%, #ff6d05 100%); 
}

.baApp__modalInfoline_danger,
.baApp__modalInfoline_error{
    background: linear-gradient(45deg, #cc0000 0%, #bf0000 100%); 
	color:#ffffff;
	animation-duration: 6s;
}



.baApp__modalMain{
	display:flex;
	flex-direction:column;
	justify-content:flex-start;
	align-content:flex-start;
	align-items:flex-start;
	padding:2rem;
	font-size:1.6rem;
	font-weight:300;
	line-height:135%;
	overflow-y: scroll;
	scrollbar-width: thin;
	height:100%;
}

.baApp__modalMain::-webkit-scrollbar {
	  width: 8px;   // for vertical scroll bar
	  height: 8px;  // for horizontal scroll bar
	}




.baApp__QRfullScreenLock{
	display:flex;
	flex-direction:column;
	justify-content:space-between;
	height:100%;
}


.baApp__modalRow{
	display:flex;
	width:100%;
	justify-content:flex-start;
	align-items:flex-start;
	padding: 0 0 2rem 0; 
}

.baApp__modalRow_centered{
	justify-content:center;
	align-items:center;
}

.baApp__modalTitle{
	display:block;
	font-size:2.2rem;
	margin-bottom:2rem;
	line-height:
}


.baApp__QRWrapper{
	display:flex;
	position:relative;
	flex-direction:column;
	justify-content:flex-start;
	height:100%;
	overflow:hidden;
}


.baApp__QRMediaAlreadyOpened{
	display:block;
	background-color:#F3550E;
	padding:1rem;
	font-size:1.1rem;
	line-height:100%;
	text-transform:uppercase;
	font-weight:700;
	color:#ffffff;
	text-align:center;
	border-radius:2rem 2rem 0 0
}

.baApp__QRMedia{
	display:flex;
	flex-direction:column;
	align-content:flex-start;
	justify-content:flex-start;
	align-items:flex-start;
	position:relative;
	width:100%;
	height:23rem;
	background-color:#f0f0f0;
	background-position:center;
	background-repeat:no-repeat;
	background-size:cover;
	border-radius:2rem 2rem 0 0;
}


.baApp__QRMedia_small{
	height:6rem;
	min-height:6rem;
	max-height:6rem;
	flex-grow:0;
}

.baApp__QRMediaAlreadyOpened + .baApp__QRMedia,
.baApp__QRMediaAlreadyOpened + .baApp__QRMedia > .baApp__QRMediaInset {
	border-radius:0 0;
}



.baApp__QRMain{
	display:flex;
	flex-direction:column;
	justify-content:flex-start;
	overflow-y: scroll;
}


.baApp__QRcontent{
	display:flex;
	flex-direction:column;
	flex-grow:1;
}

.baApp__QRfullScreenLock .baApp__QRcontent{
	overflow-y:scroll;
	height: -moz-available; 
	height: -webkit-fill-available; 
	height: stretch; 
	position:relative;
}

.baApp__QRTitile{
	font-size:2.2rem;
	line-height:120%;
	margin:1rem 2rem;
	display:block;
	position:relative;
}

.baApp__modalBlock_admin .baApp__QRTitile{
	font-size:1.7rem;
}


.baApp__QRSynopsis{
	font-size:1.5rem;
	line-height:135%;
	margin:1rem 2rem;
	display:block;
	position:relative;
	font-weight:300;
}





.baApp__modalBlock_admin .baApp__QRSynopsis{
	font-size:1.2rem;
}



.baApp__QRFormTitle{
	font-size:1.3rem;
	line-height:120%;
	margin:1rem 2rem 0rem 2rem;;
	display:block;
	position:relative;
}


.baApp__modalBlock_admin .baApp__QRFormTitle{
	font-size:1.3rem;
}



.baApp__QRForm{
	display:flex;
	flex-direction:column;	
	font-size:1.3rem;
	line-height:120%;
	margin:0 2rem 1rem 2rem;
	position:relative;
}


.baApp__QRfullScreenLock .baApp__QRformWrapper{
	background-color:#f0f0f0;
	border-radius:0 0 2rem 2rem;
	flex-grow:0;
	position:relative;
	/*min-height:14rem;*/
}


.baApp__QRfullScreenLock .baApp__QRformWrapper:after{
	display:block;
	position:absolute;
	left:0;
	top: -4rem;
	width:100%;
	height:4rem;
	/**/
	background: linear-gradient(to bottom, rgba(240,240,240,0) 0%,rgba(240,240,240,1) 100%);
	content:"";
	z-index:2;
}


.baApp__QRForm_finished{
	font-size:1.5rem;
	color:#4C1111;
	font-weight:300;
	line-height:135%;
	margin:0.5rem 2rem 0 2rem;
}


.baApp__QRfullScreenLock .baApp__QRForm_finished{
	margin:0rem 2rem 2rem 2rem;
}

.baApp__QRFormTitle.hidden,
.baApp__QRForm.hidden{
	display:none;
}


#baApp__QRTextarea{
	resize: none;
	display: block;
	position: relative;
	height: 10rem;
	width:100%;
	border: #e0e0e0 solid 1px;
	border-radius: 0.5rem;
}


.baApp__QRbtnWrapper{
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
	align-content:center;
	margin:1rem 0 0 0;
}

.baApp__QRSubmit{
	display:inline-block;
	margin:0;
	padding:1rem 2.5rem;;
	line-height:100%;
	color:#ffffff;
	background-color:#F98109;
	text-transform:uppercase;
	border:0 none;
	border-radius:1.5rem;
	
}


.baApp__QRMediaInset{
	display:block;
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	border-radius:2rem 2rem 0 0;
	background-position:center;
	background-repeat:no-repeat;
	background-size:cover;
	object-fit: cover;
}




.baApp__modalBlock_admin .baApp__QRMedia{
	width:100%;
	height:17rem;
	background-image:url('/assets/images/emptyImage.png');
}


.baApp__modalBlock_admin .baApp__QRTitile,
.baApp__modalBlock_admin .baApp__QRSynopsis,
.baApp__modalBlock_admin .baApp__QRFormTitle{
	margin:0.25rem 1rem;
	padding:0.5rem;
	border:#808080 dotted 1px;
	border-radius:5px;
}

.baApp__modalBlock_admin .baApp__QRFormTitle{
	margin-bottom:0;
	padding-bottom:0;;
}

.baApp__modalBlock_admin .baApp__QRForm{
	margin:0 1rem 0.25rem 1rem;
	padding:0.2rem 0.5rem 0.5rem 0.5rem;
}


#baApp__QRTextarea{
}



.baApp__QRFormCloseButton2{
	
}


.baApp__QRSynopsis ul{ 
	padding-left: 1.5rem;
}

.baApp__QRSynopsis h2{
	line-height:115%;
}




.formFiles__elementWrapper{
	display:flex;
	padding:0;
	margin:0;
	color:#303030;
	width:100%;
	cursor:pointer;
	user-select: none;
}

.formFiles__elementWrapper:hover{
	background-color:#f0f0f0;
}

.formFiles__elementName{
	display:flex;
	flex-direction:column;
	width:65%;
	min-width:65%;
	max-width:65%;
	height:29px;
	overflow:hidden;
	color:#00174F;
	padding: 3px 4px;
	line-height: 23px;
}


.formFiles__elementExt{
	display:flex;
	position:relative;
	flex-direction:column;
	width:10%;
	min-width:10%;
	max-width:10%;
	height:29px;
	overflow:hidden;
	color:#00174F;
	border-right:#d8d8d8 solid 1px;
	padding: 3px 16px 3px 1px;
	text-align:right;
	line-height: 23px;
}

.formFiles__elementId{
	display:flex;
	position:relative;
	flex-direction:column;
	width:10%;
	min-width:10%;
	max-width:10%;
	height:29px;
	overflow:hidden;
	color:#c0c0c0;
	border-right:#d8d8d8 solid 1px;
	padding: 3px 16px 3px 1px;
	text-align:right;
	line-height: 23px;
}


.formFiles__elementFolder{
	color:#6B8B15;
	font-weight:700;
}

.formFiles__elementFolderExt{
	color:#e0e0e0;
}

.formFiles__elementSize{
	color: #3070a0;
	padding: 3px 8px 3px 1px;
	height:29px;
	width:15%;
	min-width:15%;
	max-width:15%;
	text-align:right;
	border-right:#e8e8e8 solid 1px;
}






/* file input */
.baApp__fileWrapper{
	display: flex;
	flex-direction: column;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background-color: RGBA(0,0,0,0.95);
	z-index: 31999;
	justify-content: center;
	align-items: center;
}

.baApp__fileBlock{
	display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 900px;
    height: 580px;
    position: relative;
    left: auto;
    top: auto;
    overflow: hidden;
	background-color:#ffffff;
	border-radius: 1rem;
}


.baApp__fileBlockClose{
	display:block;
	position:absolute;
	right:2rem;
	top:2rem;
	width: 3.6rem;
  	height: 3.6rem;
	background-color:RGBA(255,255,255,0.8);
	z-index:2048;
	cursor:pointer;
	padding:0.6rem;
	border-radius:50%; 
}




.filesPanel__wrapper{
	display:none;
	flex-direction:row;
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	background-color:#f8f8f8;
	z-index:4096;
	justify-content:space-between
}

.filesPanel__wrapper.visible{
	display:flex;
}


.filesPanel__left{
	display:flex;
	position:relative;
	flex-direction:column;
	margin:10px;
	width:calc(100% - 260px);
	min-width:calc(100% - 260px);
	max-width:calc(100% - 260px);
	height:calc(100% - 20px);
	overflow-y:scroll;
	scrollbar-width: thin;
	background-color:#ffffff;
	border:#f0f0f0 solid 1px;
	border-radius:5px;
	font-family: "IBM Plex Mono";
	font-size:1.4rem;
	line-height:100%;
}

.filesPanel__right{
	display:flex;
	position:relative;
	flex-direction:column;
	width:240px;
	min-width:240px;
	max-width:240px;
	max-height:calc(100% - 20px);
	padding: 10px 10px 10px 0;
}


.filesPanel__preview{
	display:block;
	position:relative;
	width:calc(100% - 10px);
	height:auto;
	object-fit:cover;
}





.baApp__fileWrapper .baApp__fileContent{
	max-height: calc(100% - 80px);
  	min-height: calc(100% - 80px);
	overflow:hidden;
	display:flex;
	flex-direction:column;
}



.baApp__fileWrapper .filesPanel__left{
	width:100%; 
	min-width:calc(100% - 2rem);
	max-width:calc(100% - 2rem);
}


.baApp__fileWrapper .filesPanel__left{
	flex-grow:1;
	min-height:calc(100% - 10rem);
	max-height:calc(100% - 10rem);
	margin-top:0;
}



.baApp__fileWrapper .filesPanel__bottom{
	flex-grow:0;
	height: 8rem;
  	min-height: 8rem;
  	max-height: 8rem;
}

.baApp__fileWrapper  .filesPanel__preview{
	display:block;
	height:100%;
	width:auto;
	padding:0 0 0 1rem;
	object-fit:cover;
}

.baApp__chengeMediaTypes{
	display:flex;
	flex-direction:row;
	justify-content:flex-start;
	align-items:center;
	align-content:stretch;
	padding: 0 0 0 1rem;
}

.baApp__mediaType{
	display:block;
	line-height:100%;
	font-size:1.2rem;
	text-transform:uppercase;
	font-weight:300;
	padding:0.5rem 1rem;
	cursor:pointer;
}


.baApp__mediaType.active{
	background-color:#303030;
	color:#ffffff;
}


.baApp__sibmitPanel{
	display:block;
	padding:1rem;
}


.baApp__mediaType.hidden,
.baApp__fileWrapper.hidden,
.baApp__addFileButton.hidden{
	display:none;
}


div[data-db_exists="0"]{
	opacity:0.3; 
}


.baApp__fileWrapper.upLevel{
	background-color: RGBA(0,0,0,0.2);
}

.baApp__fileWrapper.upLevel > .baApp__fileBlock{
 	margin: 20px 0 0 20px;
	box-shadow:0 0 30px RGBA(0,0,0,0.7);
}








.content__wrapper .baApp__modalMain{
	overflow:visible;
	padding:0;
}


.content__wrapper .baApp__modalTitle{
	margin-top:2rem;
}








/*
** desktop modificator
*/
@media (min-width:850px){
	
	.baApp__modalBlock{
		display:flex;
		flex-direction:column;
		justify-content:flex-start;
		width: 900px;
		height: 580px;
		position:relative;
		left:auto;
		top:auto;
		overflow: hidden;		
	}
	
	.baApp__modalContent{
		display:flex;
		flex-direction:column;
		justify-content:flex-start;	
	}
	
	

}




@keyframes slidein {
	from {
		top: -30rem;
		z-index:-1;
		opacity:0;
	}
	
	10%{
		top: 0;
		z-index:10;
		opacity:1;
	}

	90%{
		top: 0;
		z-index:10;
		opacity:1;		
	}
	
	to {
		top: -30rem;
		z-index:-1;
		opacity:0;	
	}
}













