#card-constructor {
	margin: 0;
	padding: 0;
	color: #222;
	background: #ccc;
	font-family: Arial, serif;
	font-size: 12px;
	border: 1px solid #ccc;
}
#card-constructor * {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	
}
#card-constructor div {
	-webkt-user-select: none;
	-moz-user-select: none;
	user-select: none;
}
#card-constructor select,
#card-constructor input,
#card-constructor button {
	display: inline-block;
	vertical-align: middle;
	height: 26px;
	line-height: normal;
}
#card-constructor select,
#card-constructor input,
#card-constructor button,
#card-constructor textarea {
	max-width: 100%;
}
#card-constructor input:disabled + label,
#card-constructor button:disabled + label {
	color: #ccc;
}
#card-constructor a,
#card-constructor select,
#card-constructor input,
#card-constructor button,
#card-constructor textarea {
	font-size: 12px;
	/*font-family: inherit;*/
	color: #222;
}
#card-constructor .input-box {
	padding: 5px;
}
#card-constructor .input-box input,
#card-constructor .input-box textarea {
	display: block;
	width: 100%;
	margin: 0px 0px 5px;
	padding: 5px;
	height: 26px;
	line-height: normal;
}
#card-constructor .input-box textarea {
	resize: vertical;
	max-height: 30%;
}
#card-constructor input,
#card-constructor select,
#card-constructor textarea {
	/*padding: 2px;*/
}

#card-constructor a {
	color: #222;
	text-decoration: none;
}
#card-constructor ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#card-constructor img {
	max-width: 100%;
}
#card-constructor .clearfix:after {
	content: '';
	display: block;
	width: 100%;
	clear: both;
}

#top-space {
	/*background: #e4e4e4;*/
	background: #EEEEEE;
	/*border-bottom: 1px solid #ccc;*/
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #CCC;
	position: relative;
	
	padding: 5px;
}
#top-space .item {
	margin-right: 3px;
}
#top-space .indent {
	margin: 0 10px;
}
#top-space .control-bar select {
	width: 150px;
}
#top-space .control-bar input[type=number] {
	width: 40px;
}
#top-space .control-bar input[type=file],
#top-space .control-bar input[type=button],
#top-space .control-bar input[type=color] {
	/*display: none;*/ /* doesn't work in Opera and Chrome, work in Firefox*/
	position: absolute;
	left: -9999px;
}

#top-space .text.control-bar {
	/*display: none;*/
}
#top-space .text.control-bar .style {
	width: 16px;
	height: 16px;
	cursor: pointer;
	display: inline-block;
	vertical-align: middle;
	border-top: 1px solid #abadb3;
	border-right: 1px solid #dbdfe6;
	border-bottom: 1px solid #e3e9ef;
	border-left: 1px solid #e2e3ea;
	position: relative;
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

#top-space .text.control-bar .fill-style {
	background: #000;
}
#top-space .text.control-bar .stroke-style {
	background: #000;
}
#top-space .text.control-bar .stroke-style:after {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	/*background: #ccc;*/
	background: #EEEEEE;
	position: absolute;
	left: 3px;
	top: 3px;
}
#top-space input.checkbox {
	display: none;
}
#top-space input.checkbox + label {
	font-size: 14px;
	cursor: pointer;
}
#top-space .button {
	display: inline-block;
	vertical-align: middle;
	cursor: pointer;
	width: 22px;
	height: 22px;
	text-align: center;
	line-height: 20px;
	font-size: 14px;
	padding: 0;
	/*font-family: Times New Roman, serif;*/
	
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;

	background: #ffffff;
	background: -moz-linear-gradient(top, #ffffff 0%, #fafafa 40%, #dbdbdb 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(40%,#fafafa), color-stop(100%,#dbdbdb));
	background: -webkit-linear-gradient(top, #ffffff 0%,#fafafa 40%,#dbdbdb 100%);
	background: -o-linear-gradient(top, #ffffff 0%,#fafafa 40%,#dbdbdb 100%);
	background: -ms-linear-gradient(top, #ffffff 0%,#fafafa 40%,#dbdbdb 100%);
	background: linear-gradient(to bottom, #ffffff 0%,#fafafa 40%,#dbdbdb 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#dbdbdb',GradientType=0 );

	text-shadow: 1px 1px #fff;

	border: 1px solid #b5b8c8;
	
	-webkit-transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
	-moz-transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
	transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
}
#top-space .button:hover {
	border-color: rgba(82, 168, 236, 0.8);
	-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 3px rgba(82, 168, 236, 0.6);
	-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 3px rgba(82, 168, 236, 0.6);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 3px rgba(82, 168, 236, 0.6);
}
#top-space input.checkbox:checked + label.button {
	display: inline-block;
	background: #e0e0e0;
}
#top-space .text.control-bar input[type="text"] {
	width: 25%;
}

#top-space .hidden {
	display: none;
}
#top-space .popup {
	display: none;
	position: absolute;
	z-index: 1;
	padding: 10px;
	background: #fff;
	-webkit-box-shadow: 3px 3px 3px 0px rgba(0,0,0,0.5);
	-moz-box-shadow: 3px 3px 3px 0px rgba(0,0,0,0.5);
	box-shadow: 3px 3px 3px 0px rgba(0,0,0,0.5);
	border: 1px solid #A4B5C0;
}

#alignment-box {
	display: inline-block;
	/*position: relative;*/
}
#alignment-box .items {
	position: absolute;
	z-index: 1;
	margin-top: 10px;
	background: #eee;
	padding: 10px;
	border: 1px solid #ccc;
}


#workspace {
	height: 100%;
	height: calc(100% - 37px);
	background: #F0F2F4 url(../img/upload.png) center center no-repeat;
}

#workspace .canvas-container {
	margin: auto;
	max-width: 100%;

}
#workspace canvas#canvas {
	background: transparent;
}

#content {
	height: 100%;
	position: relative;
}
#right-space {
	width: 25%;
	height: 100%;
	position: relative;
	background: #EEEEEE;
	border-left: 1px solid #ccc;
}

#card-templates {
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	background: #fff;
	display: none;
	width: auto;
	height: auto;
	/*width: 70%;
	height: 70%;*/
	overflow-y: auto;
	overflow-x: hidden;
	padding: 10px;

	-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
	-moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);

	border: 1px solid #A4B5C0;
}
#card-templates ul {
	margin: 0;
	padding: 0,
	list-style: none;
}
#card-templates ul li {
	width: 200px;
	height: auto;
	text-align: center;
	border: 1px solid #fff;
	visibility: visible;
	background: #fff;
	margin: 10px 10px 10px 10px;
	display: inline-block;
	border: 1px solid #C7C7C7;
	position: relative;
}

#card-templates ul li span {
	/*cursor: pointer;
	font-size: 18px;
	position: absolute;
	top: 0px;
	right: 0px;
	line-height: 0.5;
	font-weight: bold;
	display: none;
	border-width: 1px;
	border-style: solid;
	border-color: inherit;
	border-radius: 50%;
	padding: 3px;*/
	cursor: pointer;
	font-size: 18px;
	position: absolute;
	top: -11px;
	right: -11px;
	line-height: 1;
	font-weight: bold;
	display: none;
	border-width: 1px;
	border-style: solid;
	border-color: inherit;
	border-radius: 50%;
	height: 20px;
	width: 20px;
	text-align: center;
	background: #fff;
}
#card-templates ul li span:hover {
	color: #d00;
}
#card-templates ul li:hover span {
	display: block;
	border-color: #C7C7C7;
}
#card-templates ul li img {
	max-width: 100%;
	vertical-align: middle;
}
#card-templates ul li canvas {
	display: none;
}
#card-templates ul li.current, #card-templates ul li.current:hover {
	-webkit-box-shadow: 0px 0px 5px #1684E7;
	-moz-box-shadow: 0px 0px 5px #1684E7;
	box-shadow: 0px 0px 5px #1684E7;
	border: 1px solid #1684E7;
	cursor: default;
}
#card-templates ul li:hover {
	-webkit-box-shadow: 0px 0px 5px #1684E7;
	-moz-box-shadow: 0px 0px 5px #1684E7;
	box-shadow: 0px 0px 5px #1684E7;
	cursor: pointer;
}
