.app {
	width: 960px;
	margin-top: -15px;
}

.app_left {
	float: left;
	position: relative;
	width: 480px;
	margin-bottom: -260px;
}

.app_right {
	float: right;
	position: relative;
}

.app_pages_nav {
	margin-top: -10px;
	margin-bottom: 10px;
}

.app_page {
	position: relative;
	margin: 0 auto;
	padding: 30px;
	width: 309px;
	height: 417px;
	background: url('../../../../assets/main/images/app/page.png/index.html') no-repeat;
}

.app_page .photo {
	position: absolute;
	position: relative;
	width: 111px;
	float: left;
}

.app_page .photo a {
	position: absolute;
	background: url('../../../../assets/main/images/app/delete.png/index.html') no-repeat;
	width: 18px;
	height: 18px;
	right: 6px;
	top: 6px;
	text-indent: -10000px;
	display: none;
}

.app_controls {
	/*
	margin-top: 10px;
	*/

	position: absolute;
	top: 5px;
	left: 0px;
	width: 50px;
	text-align: center;
}

.app_tabs a {
	display: block;
	float: left;
	margin-left: 1px;
	padding-top: 5px;
	width: 109px;
	height: 28px;
	background: url('../../../../assets/main/images/app/tab.png/index.html') no-repeat;
	text-decoration: none;
	text-align: center;
	color: #ffffff;
	font-size: 16px;
}

.app_tabs a.app_selected {
	background: url('../../../../assets/main/images/app/tab_selected.png/index.html') no-repeat;
}

.app_tabs a.app_first {
	margin-left: 0px;
}

body.custom .app_tabs a:hover {
	text-decoration: none;
}


.app_box {
	width: 445px;
	height: 452px;
	background: url('../../../../assets/main/images/app/box.png/index.html') no-repeat;
	overflow-vertical: scroll;
}

.app_box_photos {
	/*
	display: none;
	*/

	padding: 12px;
}

.app_box_photos div {
	margin-left: 16px;
	margin-bottom: 23px;
	display: block;
	position: relative;
	float: left;

	cursor: pointer;
}

.app_box_photos div a {
	position: absolute;
	background: url('../../../../assets/main/images/app/add.png/index.html') no-repeat;
	width: 18px;
	height: 18px;
	right: 6px;
	top: 6px;
	text-indent: -10000px;
}

.app_box_photos img {
	border: 4px solid #ffffff;
}

.app_box_themes {
	display: none;
}

.app_box_themes div {
	margin-left: 16px;
	margin-bottom: 23px;
	display: block;
	position: relative;
	float: left;

	cursor: pointer;
}

.app_box_themes div a {
	position: absolute;
	background: url('../../../../assets/main/images/app/add.png/index.html') no-repeat;
	width: 18px;
	height: 18px;
	right: 16px;
	top: 26px;
	text-indent: -10000px;
}

.app_box_themes img {
	margin-top: 16px;
	margin-left: 16px;
	margin-bottom: 23px;
}

.app_box_headings {
	display: none;
	position: relative;
}

.app_box_headings .app_container {
	position: relative;
	top: 20px;
	background: #ffffff;
	width: 90%;
	margin: 0 auto;
	padding: 10px;
}

.app_box_headings .app_container p {
	margin: 0;
	font-size: 14px;
	margin-bottom: 20px;
}

.app_box_headings .app_container div {
	margin: 4px;
	font-size: 14px;
}

.app_box_headings .app_container div a {
	float: right;
	color: #336699;
	color: #003399;
}

.app_box_covers {
	display: none;
}

.app_box_covers img {
	margin-top: 16px;
	margin-left: 16px;
	margin-bottom: 23px;
}

.app_clear {
	clear: both;
}

/* BUTTONS/LINKS */
.app_left_arrow {
	float: left;
	display: block;

	margin-top: 10px;

	width: 40px;
	height: 36px;
	background: url('../../../../assets/main/images/app/left_arrow.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_page_cover {
	float: left;
	display: block;

	margin-top: 10px;

	margin-left: 6px;
	width: 25px;
	height: 31px;
	background: url('../../../../assets/main/images/app/page_title.png/index.html') no-repeat;
	text-indent: -10000px;
}

a.app_page_odd_selected {
	float: left;
	display: block;

	margin-top: 10px;

	margin-left: 3px;
	padding-top: 7px;
	width: 25px;
	height: 24px;
	background: url('../../../../assets/main/images/app/page_odd_selected.png/index.html') no-repeat;
	text-decoration: none;
	font-weight: bold;
	text-align: center;
}

a.app_page_even_selected {
	float: left;
	display: block;

	margin-top: 10px;

	margin-left: 7px;
	padding-top: 7px;
	width: 25px;
	height: 24px;
	background: url('../../../../assets/main/images/app/page_even_selected.png/index.html') no-repeat;
	text-decoration: none;
	font-weight: bold;
	text-align: center;
}

body.custom a.app_page_odd_selected:hover {
	text-decoration: none;
}

a.app_page_even {
	float: left;
	display: block;

	margin-top: 10px;

	margin-left: 7px;
	padding-top: 7px;
	width: 25px;
	height: 24px;
	background: url('../../../../assets/main/images/app/page_even.png/index.html') no-repeat;
	text-decoration: none;
	font-weight: bold;
	text-align: center;
}

body.custom a.app_page_even:hover {
	text-decoration: none;
}

a.app_page_odd {
	float: left;
	display: block;

	margin-top: 10px;

	margin-left: 3px;
	padding-top: 7px;
	width: 25px;
	height: 24px;
	background: url('../../../../assets/main/images/app/page_odd.png/index.html') no-repeat;
	text-decoration: none;
	font-weight: bold;
	text-align: center;
}

body.custom a.app_page_odd:hover {
	text-decoration: none;
}

.app_right_arrow {
	float: left;
	display: block;

	margin-top: 10px;

	margin-left: 10px;
	width: 40px;
	height: 36px;
	background: url('../../../../assets/main/images/app/right_arrow.png/index.html') no-repeat;
	text-indent: -10000px;
}

/* CONTROLS */

.app_controls_add_page {
	display: block;
	margin: 8px 4px;
	width: 36px;
	height: 35px;
	background: url('../../../../assets/main/images/app/add_page.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_delete_page {
	display: block;
	margin: 8px 4px;
	width: 37px;
	height: 35px;
	background: url('../../../../assets/main/images/app/delete_page.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_arrange_pages {
	display: block;
	margin: 8px 4px;
	width: 29px;
	height: 35px;
	background: url('../../../../assets/main/images/app/question_pages.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_add_comment {
	display: block;
	margin: 8px 4px;
	margin-left: 0px;
	width: 50px;
	height: 35px;
	background: url('../../../../assets/main/images/app/add_comment.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_delete_image {
	display: block;
	margin: 8px 4px;
	width: 48px;
	height: 35px;
	background: url('../../../../assets/main/images/app/delete_image.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_delete_text {
	display: block;
	margin: 14px 4px;
	margin-left: 10px;
	width: 40px;
	height: 35px;
	background: url('../../../../assets/main/images/app/delete_text.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_crop {
	display: block;
	margin: 8px 4px;
	width: 43px;
	height: 39px;
	background: url('../../../../assets/main/images/app/crop.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_rotate_cw {
	display: block;
	margin: 8px -5px;
	width: 52px;
	height: 35px;
	background: url('../../../../assets/main/images/app/rotate_cw.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_rotate_ccw {
	display: block;
	margin: 8px 4px;
	width: 52px;
	height: 35px;
	background: url('../../../../assets/main/images/app/rotate_ccw.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_edit_text {
	display: block;
	margin: 10px 4px;
	margin-left: 10px;
	width: 40px;
	height: 35px;
	background: url('../../../../assets/main/images/app/edit_text.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_add_image {
	float: left;
	display: block;
	margin-left: 18px;
	width: 47px;
	height: 35px;
	background: url('../../../../assets/main/images/app/add_image.png/index.html') no-repeat;
	text-indent: -10000px;
}


.theme {
	position: absolute;
	top: 10px;
	left: 0px;

	user-select: none; 
	-o-user-select: none; 
	-moz-user-select: none; 
	-khtml-user-select: none; 
	-webkit-user-select: none; 
}

.paper {
	position: absolute;
	top: 30px;
	left: 30px;
}

.paper div {
	line-height: 1em;
	font-family: arial;
	font-size: 12px;

	position: absolute;
	cursor: default;
	text-align: center;
	/*
	cursor: move;
	*/

	/*
	 * http://stackoverflow.com/questions/4309870/how-can-i-make-certain-parts-of-my-html-not-selectable/4309944#4309944
	 */
	user-select: none; 
	-o-user-select: none; 
	-moz-user-select: none; 
	-khtml-user-select: none; 
	-webkit-user-select: none; 
}

.paper img {
	margin: 0;
	padding: 0;
	border: 0px;

	position: absolute;
	cursor: default;
	/*
	cursor: move;
	*/

	/*
	 * http://stackoverflow.com/questions/4309870/how-can-i-make-certain-parts-of-my-html-not-selectable/4309944#4309944
	 */
	user-select: none; 
	-o-user-select: none; 
	-moz-user-select: none; 
	-khtml-user-select: none; 
	-webkit-user-select: none; 
}

.selector {
	cursor: move;

	display: none;
	position: absolute;
	width: 300px;
	height: 200px;
	border: 3px solid #61b7ff;

	margin-left: -3px;
	margin-top: -3px;

	z-index: 100;
}

.tl, .tr, .br, .bl {
	position: absolute;
	width: 40px;
	height: 40px;
	background: #61b7ff;

	border-radius: 99px;
	-webkit-border-radius: 99px;
	-moz-border-radius: 99px;

	/* http://stackoverflow.com/questions/806000/css-semi-transparent-background-but-not-text/3241421#3241421
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
       filter: alpha(opacity=50);
       opacity:.5;
       */
	
}

.tl {
	display: none;
	left: -20px;
	top: -20px;
}

.tr {
	display: none;
	left: 280px;
	top: -20px;
}

.br {
	cursor: SE-resize;
	left: 280px;
	top: 180px;

	background: #61b7ff url('../../../../assets/main/images/app/resize.png/index.html') no-repeat;
}

.bl {
	display: none;
	left: -20px;
	top: 180px;
}

.back {
	position: absolute;
	/*
	background: red;
	*/
	width: 250px;
	height: 350px;
}

.app_area {
	position: relative;
	height: 675px;
}

.app_item_controls {
	position: absolute;
	top: -600px;
	top: 5px;
	left: 410px;
	width: 50px;
	text-align: center;
}

/*
.app_controls_add_comment {
	display: block;
	margin: 5px auto;
	margin-left: -6px;
	color: #61b7ff;
	text-decoration: none;
	font-weight: bold;
}
	*/

hr {
	border: 0;
	color: #61b7ff;
	background-color: #61b7ff;
	height: 1px;
}

.app_item_controls .app_controls_delete_text,
.app_item_controls .app_controls_delete_image,
.app_item_controls .app_controls_crop,
.app_item_controls .app_controls_rotate_cw,
.app_item_controls .app_controls_rotate_ccw,
.app_item_controls .app_controls_edit_text { display: none; }


.hide {
	display: none;
}
.app_text_editor {
	padding: 20px;
	width: 560px;
	height: 340px;
	background: #EBF5FE;
}

.app_text_editor h1 {
	font-size: 22px;
	color: #FF6666;
	font-style: italic;
	font-weight: bold;
}

.app_text_editor textarea {
	padding: 5px;
	width: 100%;
	height: 140px;
}

.app_controls_text_left {
	float: left;
	display: block;
	margin: 5px 12px 0 0;
	width: 28px;
	height: 35px;
	background: url('../../../../assets/main/images/app/text_left.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_text_center {
	float: left;
	display: block;
	margin: 5px 12px 0 0;
	width: 28px;
	height: 35px;
	background: url('../../../../assets/main/images/app/text_center.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_text_right {
	float: left;
	display: block;
	margin: 5px 12px 0 0;
	width: 28px;
	height: 35px;
	background: url('../../../../assets/main/images/app/text_right.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_text_bold {
	float: left;
	display: block;
	margin: 5px 12px 0 0;
	width: 28px;
	height: 35px;
	background: url('../../../../assets/main/images/app/text_bold.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_controls_text_italic {
	float: left;
	display: block;
	margin: 5px 12px 0 0;
	width: 28px;
	height: 35px;
	background: url('../../../../assets/main/images/app/text_italic.png/index.html') no-repeat;
	text-indent: -10000px;
}

.app_text_editor .fonts {
	width: 130px;
}

.app_text_editor .size {
	margin-top: 18px;
	margin-left: 40px;
	margin-bottom: 18px;
	width: 50px;
}

.app_text_colors {
	position: absolute;
	left: 300px;
	top: 218px;
}

.app_text_editor table {
	margin: 0;
	padding: 0;
	/*
	width: 253px;
	height: 145px;
	*/
}

.app_text_editor table tr {
	margin: 0;
	padding: 0;
}

.app_text_editor table td {
	margin: 0;
	padding: 0;
	border: 1px solid #000000;
	background: red;
}

.app_text_editor table td a {
	display: block;
	width: 10px;
	height: 10px;
	margin: 0;
	padding: 0;
}

.app_overlay {
	position: absolute;
	left: 544px;
	top: 120px;
	z-index: 1000;
	/*
	background: url("../../../../assets/main/images/app/overlay.png/index.html") no-repeat;
	*/
}

.app_overlay_one {
	position: absolute;
	left: 283px;
	top: 0px;
	width: 103px;
	height: 103px;
	z-index: 1000;
	background: url("../../../../assets/main/images/app/overlay_one.png/index.html") no-repeat;
}

.app_overlay_two {
	position: absolute;
	left: 62px;
	top: 44px;
	width: 87px;
	height: 88px;
	z-index: 1000;
	background: url("../../../../assets/main/images/app/overlay_two.png/index.html") no-repeat;
}

.app_overlay_three {
	position: absolute;
	left: 0px;
	top: 196px;
	width: 98px;
	height: 98px;
	z-index: 1000;
	background: url("../../../../assets/main/images/app/overlay_three.png/index.html") no-repeat;
}

.pagination {
	position: absolute;
	left: 214px;
	top: -10px;
}

div.pagination a {
	position: relative;
	background: transparent;
	width: auto;
	height: auto;
	right: 0px;
	top: 0px;
	text-indent: 0;
	text-decoration: none;
	font-weight: bold;
	font-size: 14px;
	color: #666666;
}

div.pagination a.box {
	background: #336699;
	color: #CCCCFF;
	font-weight: normal;
	padding: 1px 4px;
}

a.btn_upload_photos {
	display: block;
	position: absolute;
	left: 28px;
	top: 448px;
	width: 150px;
	height: 16px;
	background: red;
	padding-top: 8px;
	background: -moz-linear-gradient(#95B8DC, #3C7AB7) repeat scroll 0 0 transparent;
	border: 2px solid #3C7AB7;
	border-radius: 15px 15px 15px 15px;
	box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
	color: #FFFFFF;
	display: block;
	font-size: 14px;
	font-weight: bold;
	line-height: 0.5;
	text-align: center;
	text-decoration: none;
	text-shadow: 2px 2px 0 #3C7AB7;
}

a.btn_upload_photos {
	text-decoration:none;
	
	border:2px solid #3C7AB7;
	background: #95B8DC;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#95B8DC), to(#3C7AB7));
	background: -webkit-linear-gradient(#95B8DC, #3C7AB7);
	background: -moz-linear-gradient(#95B8DC, #3C7AB7);
	background: -ms-linear-gradient(#95B8DC, #3C7AB7);
	background: -o-linear-gradient(#95B8DC, #3C7AB7);
	background: linear-gradient(#95B8DC, #3C7AB7);
	-pie-background: linear-gradient(#95B8DC, #3C7AB7);	
	border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px;
	box-shadow: 4px 4px 0 rgba(0,0,0,0.2); -webkit-box-shadow: 4px 4px 0 rgba(0,0,0,0.2); -moz-box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
	behavior: url("../../../PIE/PIE.htc/index.html");
}

a:hover.btn_upload_photos {
	text-decoration:none;	
	left: 29px; top: 449px;

	background: #3C7AB7;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#3C7AB7), to(#95B8DC));
	background: -webkit-linear-gradient(#3C7AB7, #95B8DC);
	background: -moz-linear-gradient(#3C7AB7, #95B8DC);
	background: -ms-linear-gradient(#3C7AB7, #95B8DC);
	background: -o-linear-gradient(#3C7AB7, #95B8DC);
	background: linear-gradient(#3C7AB7, #95B8DC);
	-pie-background: linear-gradient(#3C7AB7, #95B8DC);
	box-shadow: 3px 3px 0 rgba(0,0,0,0.2); -webkit-box-shadow: 3px 3px 0 rgba(0,0,0,0.2); -moz-box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
	behavior: url("../../../PIE/PIE.htc/index.html"); 
}
