/* Страница */
html, body {
  background: #fff;
  overflow: hidden;
  font-family:  Arial, Helvetica, sans-serif;
	font-size: 1.0em;
	width: 100%;
	height: 100%;
	text-align: center;
}

.hidden{
	visibility: hidden;
}

#showLoad {
	display: block;
	position: absolute;
	width: 99%; 
	height: 99%;
    background: url("aniload_00.gif") center center no-repeat fixed ;
	z-index: 100;
}



#outPict,
#all{
	display: inline-block;
	position: relative;
	top: 0px;
	width: 62.3em;
	height: 44.0em;
	margin: 0 auto;
	background: #fff;
	border: 3px solid #333;
	z-index: 10;
	overflow: hidden;
}
/* отладка - удалить */
#test {
	display: none;
}

#tt {
	display: none; 
/*	display: block; */
	position: absolute;
	top: 0.1em;
	left: 1.0em;
	text-align: right;
	font-size: 1.5em;
}

body>img {
	position: absolute;
	top: 0.1em;
	right: 0.3em;
	border: 3px solid #7f7;
}


#cTable,
#table,
#objectable,
#backtable,
#imagetable,
#texttable,
#accsstable {
  position: absolute;
  background-color: #fff ;
  padding: 0.0em;
  border: 2px solid #777;
}

/* Панель для коллажа       */
#cTable,
#table {
	display: block;
	top: 2.5em;
	right: 1.5em;
	width: 42em;
	height: 25em;
	padding: 0em;
	text-align: center;
	z-index: 55;
	overflow: hidden; 
/*	*/
}

/* canvas для результата */
#cTable {
	display: none;
	margin: 0 auto;
	z-index: 0;
}

/* рамочка для результата */
#outPict {
	display: none;
	position: relative;
	margin: 0 auto;
	width: 44em;
	padding: 1.2em;
	padding-top: 0.2em;
	min-height: 29em; 
	max-height: 90%; 
	z-index: 0;
	text-align: center;
}

/* рамочка для результата */
#outPict.showPict {
	display: block;
	z-index: 1;
}
#all.showPict{
	display: none;
}

#outPict img {
	border: 3px solid #999;
}


/* Элементы коллажа */
#table img {
	border: 0px solid #fff;
	position: absolute;
	cursor: pointer; 
	transform:	rotate( 0deg );
	max-width: 10em;
	max-height: 10em;
}

#table img.acs {
	max-width: 5em;
	max-height: 5em;
}

#table img.bkg {
	max-width: 40em;
	max-height: 20em;
}

/* Надпись на коллаже */
#table  .titltext{
	top: 30%;
	left: 10%;
	color: #777;
	border: 0px solid #fff;
	position: absolute;
	cursor: pointer; 
	font-size: 3em;
/*	line-height: 0.1em; */
	text-align: center;
	white-space: nowrap;
	max-width: 99%;
	padding: 0;
}


/* Панель для исходных */
#objectable {
	display: block;
	top: 2.5em;
	left: 1.5em;
	height: 25em;
	width: 15em;
	overflow: hidden;
	overflow-y: auto; 
	z-index: 15;
}

/*  Исходныe */
#objectable  img{
	display: inline;
	padding: 0.3em;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	max-width: 5.5em;
	max-height: 5.5em;
 }

#objectable  div{
	display: inline-block;
	margin: 0 auto;
	padding: 0.1em;
	text-align: center;
	width: 47%;
	height: 6.4em;
	border: 0px solid #333;
}

/* Панель для фонов */
#backtable {
	display: table-row ;
	top: 30em;
	left: 1.5em;
	width: 15em;
	height: 13em;
	overflow: hidden;
	overflow-x: auto; 
}

/*  Фоны */
#backtable  img{
	display: inline;
	padding: 0.3em;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	max-width: 10.5em;
	max-height: 10.5em;
 }

#backtable  div{
	display: table-cell;
	margin: 0 auto;
	padding: 0.1em;
	text-align: center;
	height: 88%;
	width: 11em;
	vertical-align: middle;
	border: 0px solid #333;
}

/* Панель для аксессуаров */
#accsstable {
	display: table-row ;
	top: 35em;
	right: 1.5em;
	width: 42em;
	height: 8em;
	overflow: hidden;
	overflow-x: auto; 
}

/*  аксессуары */
#accsstable  img{
	display: inline;
	padding: 0.3em;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	max-width: 5.5em;
	max-height: 5.5em;
 }

#accsstable  div{
	display: table-cell;
	margin: 0 auto;
	padding: 0.1em;
	text-align: center;
	height: 6.4em;
	vertical-align: middle;
	border: 0px solid #333;
}



/* Панель текста */
#imagetable,
#texttable {
	display: block;
	top: 30em;
	right: 1.5em;
	width: 42em;
	height: 3em;  
	text-align: left;
/*	overflow: hidden;*/
}
#imagetable,
#imagetable .param,
#texttable .param,
#texttable .btn_cls, 
#texttable #colorpicker,
#texttable #colorpicker #picker{
	display: none;
}


#imagetable.open,
#texttable.open {
	top: 30em;
	right: 1.5em;
	width: 59.2em;
	height: 13em;  
	text-align: left;
/*	overflow: hidden; */
}




form #font_fml.open ,
#imagetable.open, 
#imagetable.open .param,
#texttable.open, 
#texttable.open .btn_cls, 
#texttable.open .param,
#texttable.open #colorpicker,
#texttable.open #colorpicker #picker{
	display: block;
}

/* Панель ввода текста */
#texttable  #text {
	position: absolute;
	top: 0;
	right: 0.3em;
	font-size: 2.2em;
	border: 0px solid;
	border-bottom: 0.2em solid ;
	width: 18.5em; 
	size: 36em;
	margin-left: 1em;
	color: #777;
	text-align: center;
}

#texttable.open  #text {
	width: 15em; 
	right: 3.9em;
}



/* Кнопка закрытия родительской панели  */
.btn_cls {
	position: absolute;
	border: 0.2em solid #555;
	height: 1.3em;
	width: 1.3em;
	margin: 0.5em 1em;
	font-size: 2.2em;
	color: #555;
	background-color: #fff;
	text-align: center;
	cursor: pointer;
}

/* Кнопка закрытия родительской панели  */
.btn_cls.close{
	right: 0.0em;
	top: 0;
}
/* Кнопка добавления строки  */
#texttable  .btn_cls.add{
	right: 18.0em;
	top: 0;
}


/* Панель выбора цвета текста */
#colorpicker {
	position: absolute;
	display: none; 
	bottom: 0;
	left: 0;
	height: 13em;
	width: 15em;
	border: 0px solid #fff;
	z-index: 9339;
	background-color: #fff;
	text-align: center;
	opacity: 1.0;
}
#colorpicker  #picker{	display: none; }
#colorpicker .farbtastic{	
	margin: 0.3em auto; 
	overflow: hidden;
}

#color{	/* необходим для корректной работы colorpicker */
	position: absolute;
	display: none; 
	top: 0;
	left: 0;
	height: 0em;
	width: 0em;
	border: 0px solid #fff;
}


/* Панели параметров текста и картинок */
#imagetable  .param, 
#texttable  .param {
	position: absolute;
	right: 0.3em;
	bottom: 0.3em;
	width: 20em; 
	height: 3.6em;
	font-size: 2.1em;
	border: 0px solid #fff;
	color: #333;
}


/* Параметры текста */
#texttable.open #add_str, 
#texttable .param  #left, 
#texttable .param  #center, 
#texttable .param  #right, 
#texttable .param  #font, 
#texttable .param  #ital, 
#texttable .param  #bold, 
#texttable .param  #size {
	position: absolute;
	color: #333;
	background-color: #fff;
	text-align: center;
	cursor: pointer;
	border: 1px solid #777;
}
#texttable.open #add_str, 
#texttable .param  #ital, 
#texttable .param  #bold, 
#texttable .param  #size {
	font-size: inherit;
	font-weight: bold;
	height: 1.4em;
	width: 1.4em;
	border: 1px solid #fff;
	line-height: 1.4em;
}

#texttable .param  #bold, 
#texttable .param  #ital {
	top: 0em; 
	border: 2px solid #fff; 
} 

#texttable.open #add_str.sel, 
#texttable .param  #bold.sel, 
#texttable .param  #ital.sel {
	border: 2px solid #999;  
}
#texttable.open  #add_str {
	border: 2px solid #333;  
}
#texttable .param  #bold { left: 0.6em; }
#texttable .param  #ital { left: 2.4em; font-style: italic; }

#texttable.open #add_str { 
	display: block;
	top: 0.1em; 
	right: 2.01em; 
	font-size: 2.2em;
} 
#texttable #add_str{ 
	display: none;
}

#texttable .param  #size { 
	top: -0.8em; 
	left: 7.0em; 
	width: 18.5em; 
}

#texttable .param  #font  {
	bottom: 0; 
	right: 0;
	font-size: 1.0em;
	height: 1.4em;
	width: 20.0em;
}

/* Параметры картинок */
#imagetable  .param  {
	height: 4.4em;

} 

#imagetable  .param  #rotate, 
#imagetable  .param  #scale, 
#imagetable  .param  #up, 
#imagetable  .param  #down {
	position: absolute;
	color: #555;
	background-color: #fff;
	text-align: center;
	cursor: pointer;
	border: 2px solid #fff;
}
#imagetable  .param  #up, 
#imagetable  .param  #down {
	font-size: inherit;
	font-weight: bold;
	height: 1.4em;
	width: 5.5em;
	top: 0.7em; 
	right: 1.1em;
	border: 2px solid #fff;  
	text-align: right;
}
#imagetable  .param  #up.sel, 
#imagetable  .param  #down.sel {
	border: 2px solid #999;  
}
#imagetable  .param  #down {
	top: 2.9em; 
} 

/*#imagetable  .param  #up, 
#imagetable  .param  #down { */
#imagetable  .param  span {
	font-size: 0.8em;
}

#texttable  .param  #size,
#imagetable  .param  #rotate, 
#imagetable  .param  #scale{
	font-size: 0.7em;
	font-weight: bold;
	color: #555;
	height: 1.8em;
	border-bottom: 0.2em solid #111;  
	text-align: right;
	padding: 0 0.7em;
}

#imagetable  .param  #rotate, 
#imagetable  .param  #scale{
	width: 16.0em;
	top: 0.2em; 
	left: 0.5em;
}

#imagetable  .param  #rotate{
	top: 3.5em; 
}  


 #imagetable   #image {
	position: absolute;
    border: 2px solid #fff;
	left:	0.2em;
    bottom: 0.2em;
	height: 12em;
	width: 12em;
    text-align: center;
    vertical-align: middle;
}
 #imagetable   #image img {
    display: inline;
	position: absolute;
	max-height: 12em;
	max-width: 12em;
	margin: 0;
	padding: 0;
    vertical-align: middle;
	z-index: 111;
}

 #imagetable   #del_image {
	position: absolute;
    border: 0.2em solid #555;
	background-color: #fff;
	font-size: 1.5em;
	font-weight: bold;
	right:	0.1em;
    top: 0.1em;
	height: 1.2em;
	width: 1.2em;
    text-align: center;
    vertical-align: middle;
	cursor: pointer;
	z-index: 222;
}



.ui-slider {
    position: relative;
    text-align: left;
}
.ui-slider .ui-slider-handle {
    cursor: e-resize ;
    height: 1.2em;
    position: absolute;
    width: 1.2em;
    z-index: 2;
}
.ui-slider .ui-slider-range {
    background-position: 0 0;
    border: 0 none;
    display: block;
    font-size: 0.7em;
    position: absolute;
    z-index: 1;
}
.ui-slider.ui-state-disabled .ui-slider-handle, .ui-slider.ui-state-disabled .ui-slider-range {
    filter: inherit;
}
.ui-slider-horizontal {
    height: 0.8em;
}
.ui-slider-horizontal .ui-slider-handle {
    margin-left: -0.6em;
    top: 1.2em;
}
.ui-slider-horizontal .ui-slider-range {
    height: 100%;
    top: 0;
}
.ui-slider-horizontal .ui-slider-range-min {
    left: 0;
}
.ui-slider-horizontal .ui-slider-range-max {
    right: 0;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    background-color: #E6E6E6;
    border: 1px solid #D3D3D3;
    color: #333;
    font-weight: normal;
}
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited {
    color: #333;
    text-decoration: none;
}
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus {
    background-color: #DADADA;
    border: 1px solid #999999;
    color: #111;
    font-weight: normal;
}
.ui-state-hover a, .ui-state-hover a:hover, .ui-state-hover a:link, .ui-state-hover a:visited {
    color: #111;
    text-decoration: none;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active {
    background-color: #FFFFFF;
    border: 1px solid #AAAAAA;
    color: #111;
    font-weight: normal;
}
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
    color: #111;
    text-decoration: none;
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
    background-color: #FBF9EE;
    border: 1px solid #FCEFA1;
    color: #363636;
}
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a, .ui-widget-header .ui-state-highlight a {
    color: #363636;
}
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {
    background-color: #FEF1EC;
    border: 1px solid #CD0A0A;
    color: #CD0A0A;
}
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a {
    color: #CD0A0A;
}
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text {
    color: #CD0A0A;
}


/* Описание сверху страницы */
#description {
  padding: 0.0em;
  background: #fff;
  color: #777;
  width: 45em;
  margin: 0em auto ;
  text-align: center;
}

#description h1 {
  font-size: 1.8em;
  line-height: 0.1em;
}

#description a {
  color: #bbb;
}

.close,
#help{
	display: block;
	position: absolute;
	top: 0.3em;
	right: 1.2em;
	width: 1.2em;
	height: 1.1em;
	line-height: 1.1em;
	font-size: 1.3em;
	font-weight: bold;
	border: 0.1em solid #333;
	text-align: center;
	cursor: pointer;
}

#tems_menu{ 
}

#tems_menu.close{
	display: none; 
}
	
#tems_menu{
	display: block; 
	position: absolute;
	top: 3em;
	height: 9em;
	left: 1.5em;
	width: 9em;
	border: 0.1em solid #333;
	background-color: #fff;
	padding: 1.5em;
	z-index: 9999;
	font-size: 1.3em;
	line-height: 2.42em;
	overflow: hidden;
	overflow-y: auto;
}

#tems_menu .tema.btn:hover{
	font-weight: bold;
}

#helpdesk{
	display: none; 
	position: absolute;
	top: 3em;
	bottom: 3em;
	left: 1.5em;
	right: 1.5em;
	border: 0.1em solid #333;
	background-color: #fff;
	padding: 1.5em;
	z-index: 9999;
	font-size: 1.3em;
	line-height: 1.8em;
	overflow: hidden;
	overflow-y: auto;
}

#helpdesk p  {
	text-align: left;
}

#helpdesk.open{
	display: block; 
}

#helpdesk.open p i {
	display: block;
	padding-left: 4em; 
}

#tems{
	display: block;
	position: absolute;
	top: 0.3em;
	left: 1.2em;
	width: 12.6em;
	height: 1.31em;
	font-size: 1.2em;
	font-weight: bold;
	line-height: 1.4em;
	border: 0.1em solid #333;
	color: #777;
	text-align: center;
	cursor: pointer;
}


#save{
	display: block;
	position: absolute;
	top: 0.3em;
	right: 3.2em;
	width: 13.1em;
	height: 1.31em;
	font-size: 1.2em;
	font-weight: bold;
	line-height: 1.4em;
	border: 0.1em solid #333;
	color: #777;
	text-align: center;
	cursor: pointer;
}

#savepict{
	display: none; 
	position: absolute;
	top: 3em;
	bottom: 3em;
	left: 1.5em;
	right: 1.5em;
	border: 0.1em solid #333;
	background-color: #fff;
	padding: 1.5em;
	z-index: 9999;
	font-size: 1.3em;
	line-height: 1.8em;
	overflow: hidden;
}

.btn{
	cursor: pointer;
	background-color: #fff;
}

span, div,
.unselect{
	-moz-user-select: -moz-none;
	-webkit-user-select: none;
}
/*	-o-user-select: none;
	-khtml-user-select: none;
	user-select: none; */


#scale a, #rotate a, #size a, #tems_menu,
.btn, 
.rds_em15{
	-webkit-border-radius: 1.5em;
	-khtml-border-radius: 1.5em;
	border-radius: 1.5em;
}

#all, #texttable, #imagetable, #table, 
#objectable, #backtable, #accsstable, #outPict,
.sour, .close, 
#helpdesk, #savepict, 
.rds_04 {
	-webkit-border-radius: 8px;
	-khtml-border-radius: 8px;
	border-radius: 8px;
}
/*
	-moz-border-radius: 4px;
*/


form #font_fml_sel,
form #font_fml {
	display: none;
	position: absolute;
	bottom: 0em;
	text-align: center;
	border: 0.1em solid #555;
	background: #fff;
	z-index: 99;
}

form #font_fml_sel{
	display: block;
	cursor: pointer;
	right: 1em;
	width: 18.0em; 
	height: 1.2em; 
	font-size: 1.02em;
	line-height: 1.2em; 
	overflow: hidden;
}

form #font_fml_sel .sqr{
	display: block;
	position: absolute;
	bottom: -0.6em;
	right: 0;
	height: 1.7em; 
	width: 1.2em; 
	font-size: 1.1em;
	line-height: 1.2em;
	vertical-align: middle ;
	background: #555;
	color: #fff;
}
form #font_fml_sel span{
	font-size: 0.92em;
	line-height: 0.92em; 
}


form #font_fml {
	width: 17.3em; 
	right: 2.4em;
	padding: 0;
	list-style-type: none;
	cursor: pointer;
	overflow-y: auto;
}


form #font_fml li{
	list-style-type: none;
	margin: 0.05em 1em;
	padding: 0.05em 0.2em;
	cursor: pointer;
	font-size: 0.81em;
	border: 0.1em solid #fff;
}

form #font_fml li:hover{
	border: 0.1em solid #005;
}

form #font_fml li.selected{
	background: #005;
	color: #fff;
}



#tst {
	display: none ; /* */
	position: absolute;
	left: 1em;
	bottom: 1.5em;
	padding: 0.5em 0.9em;
	border: 0.2em solid #000;
	background: #efe;
	line-height: 1.4em;
	text-align: left;
}

