:root{
	--handleDivider: 12;
	--popupSize: 250px;
	--popupDist: calc(var(--popupSize) * -1);	
}

@media screen and (orientation:portrait){
	.tonguedesign_container{
		flex-direction: column-reverse;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0) calc(var(--contentHeight) / var(--handleDivider)), #8585bb 0%);
	}

	.tonguedesign_container > div:nth-child(1){
		border-top-left-radius: 15px;
		border-top-right-radius: 15px;
	}		
	
	.homeLogo{
		height: calc(var(--contentHeight) * 0.35);
	}	
	
	.socialLogo{
		height: calc(var(--contentHeight) * 0.12);
	}		
	
	.welcomeBox{
		flex-direction: column-reverse;
		width: 100%;
	}
	
	.welcomeBox > div{
		flex: 0 0;
	}		
}

@media screen and (orientation:landscape){
	.tonguedesign_container{
		flex-direction: row;
	}	

	.tonguedesign_container > div:nth-child(1){
		border-top-right-radius: 15px;
		border-bottom-right-radius: 15px;		
	}		

	.homeLogo{
		height: calc(var(--contentHeight) * 0.2);
	}
	
	.socialLogo{
		height: calc(var(--contentHeight) * 0.08);
	}		
	
	.welcomeBox{
		flex-direction: row;
		width: 100%;
	}
	
	.welcomeBox > div{
		flex: 1 0;
	}	
}

.welcomeBox_social_grid{
	display: grid;
	--column-count: 6;
	grid-template-columns: repeat(var(--column-count), calc(100% / var(--column-count)));
	width: 100%;
}

.welcomeBox_social_grid > img{
	width: 100%;
	aspect-ratio: 1/1;
	border: 1px solid red;
}

.welcomeBox{
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
}

.homeLogo{
	display: block;
	margin: auto;
}

.tonguedesign_container{
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 100%;
}

.tonguedesign_container > div{
	flex: 0 0 calc(var(--contentHeight) / var(--handleDivider));
}

.tonguedesign_container > div:nth-child(1){
	flex: 1 1;
	background: #333355;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	transform: translateZ(0);
}

table.ul_orders{
	width: 100%;
	border-collapse: collapse;
}

table.ul_orders td{
	vertical-align: middle;
	font-size: 16px;
	color: #333355;
}

table.ul_orders img{
	margin: 3px;
	display: block;
	border-radius: 5px;
}

table.ul_orders td:nth-child(1){
	width: 25%;
}

table.ul_orders td:nth-child(2){
	width: 50%;
}

div[data-backbutton2],
div[data-backbutton]{
	position: absolute;
	top: -8px;
	left: 0px;
	font-size: 30px;
	cursor: pointer;
	text-shadow: 2px 2px 2px #000000;
	color: #8585bb;
	padding: 3px 10px 3px 8px;
}

#orders_list > div > div[data-allorders] > div:nth-child(even){
	background: #EEEEEE;
}

#orders_list > div > div[data-allorders] > div:nth-child(odd){
	background: #FFFFFF;
}

.ordersUpload_container{
	box-sizing: border-box;
	background: #333355;
}

.ordersUpload_gallery_box{
	/*
	background: url('img/gallerybg.png') center no-repeat;
	background-size: contain;
	*/
	position: relative;
}

.ordersUpload_gallery_img{
	object-fit: cover;
	box-sizing: border-box;
	display: block;
	aspect-ratio: 1/1;
	--margin: 2px;
	margin: var(--margin);
	width: calc(100% - var(--margin) * 2);
	border: 1px solid #BBBBBB;
	border-radius: 2px;
}

.ordersUpload_gallery_item{
	position: relative;
}

.ordersUpload_gallery_img_x{
	position: absolute;
	top: 0px;
	right: 0px;
	--fa-primary-color: #333333;
	--fa-secondary-color: white;
	font-size: calc(var(--contentHeight) / 36);
	margin: 5px;
	cursor: pointer;
}

@media screen and (orientation:portrait){
	.ordersUpload_container{
		width: 100%;
		height: calc(100% - var(--contentHeight) / var(--handleDivider));
		margin-top: calc(var(--contentHeight) / var(--handleDivider));
		border-top-left-radius: 15px;		
		border-top-right-radius: 15px;
		padding: 0px 5px 5px 5px;
	}
}

@media screen and (orientation:landscape){
	.ordersUpload_container{
		width: calc(100% - var(--contentHeight) / var(--handleDivider));
		height: 100%;
		border-top-right-radius: 15px;
		border-bottom-right-radius: 15px;
		padding: 5px 10px 5px 5px;
	}	
}

#ordersUpload_productDesc{
	font-size: calc(var(--contentHeight) / 50);
	color: white;
}

#ordersUpload_uploadBtns{
	color: white;
}

#ordersUpload_uploadBtns > i{
	font-size: calc(var(--contentHeight) / 10);
}

#ordersUpload_uploadBtns > p{
	font-size: calc(var(--contentHeight) / 54);
}

.ordersUpload_wrapper{
	display: grid;
	--column-count: 3;
	grid-template-columns: repeat(var(--column-count), calc(100% / var(--column-count)));
	grid-auto-flow: row;
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
}

.ordersUpload_wrapper > div{
	aspect-ratio: 1/1;
}

@media screen and (orientation:portrait){
	.simpleHandle{
		width: 60px;
		height: 6px;
	}
	
	.simpleHandlePosition{
		text-align: center;
		vertical-align: bottom;
	}
	
	.simpleHandleBox{
		position: absolute;
		top: 0px;
		left: 0px;
		width: 100%;
		height: calc(var(--contentHeight) / var(--handleDivider));
	}
	
	.paddingSet{
		padding: 12px 5px 5px 5px;
	}	
	
	.ordersUpload_content{
		flex-direction: column;
	}	
}

@media screen and (orientation:landscape){
	.simpleHandle{
		width: 8px;
		height: 60px;
		margin-left: 7px;
	}	
	
	.simpleHandlePosition{
		text-align: left;
		vertical-align: middle;
	}	
	
	.simpleHandleBox{
		position: absolute;
		top: 0px;
		right: 0px;
		width: calc(var(--contentHeight) / var(--handleDivider));
		height: 100%;
	}	
	
	.paddingSet{
		padding: 5px 12px 5px 5px;
	}
	
	.ordersUpload_content{
		flex-direction: row;
	}		
}

.simpleHandle{
	border: 1px solid #232345;
	background: #333355;
	border-radius: 5px;
	display: inline-block;
}

.tonguedesign_list{
	display: flex;
	align-items: stretch;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
}

.tonguedesign_title{
	flex: 0 0;
	font-size: 18px;
	text-align: center;
	color: white;
	padding-bottom: 9px;
	position: relative;
}

.tonguedesign_content{
	flex: 1 1;
}

.ordersUpload_main{
	display: flex;
	align-items: stretch;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
}

.ordersUpload_title{
	flex: 0 0;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	color: white;
	padding-bottom: 9px;
}

.ordersUpload_content{
	display: flex;
	align-items: stretch;
}

.ordersUpload_content > div[data-part=buttons]{
	flex: 0 0 40%;
}

.ordersUpload_content > div[data-part=gallery]{
	flex-grow: 1;
	overflow-y: scroll;
}

.sepline{
	border: 1px solid #555588;
	width: 90%;
}

#ordersUpload_uploadProgress{
	color: white;
}

#editor_target{
	position: absolute;
	top: 0px;
	right: 0px;
	transition-timing-function: linear;
	transition-duration: 0.25s;
	box-sizing: border-box;
}

#popupMenu_target{
	position: absolute;
	transition-timing-function: linear;
	transition-duration: 0.25s;
	overflow: hidden;
	border: 5px solid #333355;
	box-sizing: border-box;
	background: #333355;
}

@media screen and (orientation:portrait){
	#editor_target{
		width: 100%;
		height: calc(100% - var(--popupSize) - var(--popupDist));
		transition-property: height;
	}
	
	#popupMenu_target{
		transition-property: bottom;
		bottom: var(--popupDist);
		left: 0px;
		border-bottom: 0px !important;
		width: 100%;
		height: var(--popupSize);
		border-top-left-radius: 12px;
		border-top-right-radius: 12px;
	}
	
	.editor_arrowPos{
		left: 0px !important;
	}
}

@media screen and (orientation:landscape){
	#editor_target{
		width: calc(100% - var(--popupSize) - var(--popupDist));
		height: 100%;
		transition-property: width;
	}
	
	#popupMenu_target{
		transition-property: left;
		bottom: 0px;
		left: var(--popupDist);
		border-left: 0px !important;
		width: var(--popupSize);
		height: 100%;	
		border-top-right-radius: 12px;	
		border-bottom-right-radius: 12px;		
	}
	
	.editor_arrowPos{
		left: calc(var(--popupSize) - var(--popupDist) * -1) !important;
		transition-property: left;
		transition-timing-function: linear;
		transition-duration: 0.25s;
	}	
}

#appFw_tongue_orders_editor{
	background: #8585bb;
}

#help_target{
	overflow: hidden;
	position: relative;
}

.helpFlexBox{
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	flex-direction: column;
}

.helpDesc_title{
	flex: 0 0;
	text-align: center;
	color: white;
	font-size: 16px;
	padding-bottom: 4px;
}

.helpDesc_description{
	flex: 1 1;
	position: relative;
	color: white;
	font-size: 12px;	
}

#helpDesc_description{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
}

.editor_arrowPos{
	top: 0px !important;
	z-index: 5;
	padding: 19px 9px 9px 23px !important;
}

div[data-prevbtn]{
	padding-right: 30px;
}

div[data-nextbtn]{
	padding-left: 30px;
}

#hintBox{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	background: rgba(0, 0, 0, 0.6);
	transition: opacity 0.35s linear;
}

#hintBox_c{
	position: absolute;
	top: 50%;
	left: 50%;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 30px;
	box-sizing: border-box;
	background: #8585bb;
	border: 3px solid #555588;
	border-radius: 5px;
	box-shadow: 5px 5px 5px 1px rgba(0,0,0,0.5);
	display: inline-block;
	font-size: 16px;
	color: white;
	text-align: justify;
}

@media screen and (orientation:portrait){
	#hintBox_c{
		width: 85%;
		max-height: 70%;
		transform: translate(-50%, calc(-50% - var(--appFw-menu-size) / 2));
	}
}

@media screen and (orientation:landscape){
	#hintBox_c{
		width: 60%;
		max-height: 85%;
		transform: translate(calc(-50% + var(--appFw-menu-size) / 2), -50%);
	}
}

.dialog_buttonSpace{
	display: inline-block;
	width: 8px;
}

.dialog_button{
	background: #555588;
	border: 1px solid #333355;
	display: inline-block;
	margin: auto;
	padding: 5px 22px 5px 22px;
	font-size: 20px;
	cursor: pointer;
}

.dialog_button:hover{
	background: #333355;
}

.quantityDialog_container{
	text-align: center;
	display: flex;
	align-items: stretch;
	flex-direction: row;
	width: 200%;
	margin-left: 0%;
	transition: margin-left 0.25s linear;
	
}

.quantityDialog_container > div{
	flex: 1 1;
}

.quantityDialog_title{
	font-size: 20px;
	padding-bottom: 4px;
}

.quantityDialog_available{
	font-size: 18px;
	padding-bottom: 4px;
}

.quantityDialog_quantity{
	display: inline-flex;
	align-items: stretch;
	flex-direction: row;
	padding: 10px 10px 14px 10px;
}

.quantityDialog_inc{
	flex: 0 0;
	font-size: 26px;
	line-height: 40px;
	cursor: pointer;
}

.quantityDialog_counter{
	flex: 1 1;
	font-size: 34px;
	line-height: 40px;
	padding: 0 15px 0 15px;
}

.quantityDialog_dec{
	flex: 0 0;
	font-size: 26px;
	line-height: 40px;
	cursor: pointer;
}

.quantityDialog_note_container{
	padding-bottom: 14px;
}

.quantityDialog_note{
	font-size: 18px;
	border: 1px solid #333355;
	color: #333355;
	border-radius: 3px;
	width: 60%;
}

.quantityDialog_textarea{
	font-size: 18px;
	border: 1px solid #333355;
	color: #333355;
	border-radius: 3px;
	box-sizing: border-box;
	width: 80%;
}

.wrapper{
	overflow: hidden;
	position: relative;
}

.dialogBlocker{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.flex-c-1-0{
	display: flex;
	align-items: stretch;
	flex-direction: column;
}

.flex-c-1-0 > div:nth-child(1){
	flex: 1 1;
}

.flex-c-1-0 > div:nth-child(2){
	flex: 0 0;
}

.orders_postcode{
	padding: 8px 0 3px 0;
	color: #333355;
	font-size: 16px;
	text-align: center;
	background: rgba(255, 255, 255, 0.95);
}

.readyOrderPic{
	aspect-ratio: 1/1;
	object-fit: contain;
}

.orderOptionButton{
	cursor: pointer;
}

@media screen and (orientation:portrait){
	.orderPic{
		height: 10vh;
	}
	
	.orderOptionButton{
		font-size: 3vh; padding: 1vh;
	}	
}

@media screen and (orientation:landscape){
	.orderPic{
		height: 20vh;
	}
	
	.orderOptionButton{
		font-size: 6vh; padding: 2vh;
	}		
}

.seperatorLine{
	background: #555588;
	height: 1px;
	width: 100%;
	margin: 10px 0 10px 0;
}

.dialog_warnText{
	font-size: 20px;
}

#deleteDialog_img{
	margin-top: 10px;
}