/** Resets **/
* {
	padding: 0;
	margin: 0;
}

html {
	width: 100%;
	height: 100%;
}

body {
	font-family: Arial;
}

/** Misc styles **/
h2 { font-size: 36px; }
h3 { font-size: 24px; }

.header {
	color: #222;
	font-family: 'BebasNeueRegular', Arial, sans-serif;
}

hr {
	display: block;
	border: 0;
	height: 1px;
	background: #f0f0f0;
	margin: 15px 0;
}


/** Overlay **/
#overlay {
	position: absolute;
	z-index: 50;
	width: 100%;
}

#overlay .fade{
	width: 100%;
	height: 100%;
	position: fixed;
	z-index: 50;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.9);
}

#overlay .box {
	width: 616px;
	position: relative;
	z-index: 55;
	overflow: auto;
	margin: 5% auto 5% auto;
}

#overlay .box .button {
	float: right;
	margin-top: 26px;
	width: 200px;
}

#overlay button.close {
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 18px;
	background-color: #dedede;
	position: absolute;
	right: 2px;
	top: 2px;
	cursor: pointer;
}

#overlay button.close:hover {
	background-color: #aaa;
}

#overlay .preview-wrapper {
	width: 616px;
	margin-top: 10px;
	overflow: auto;
}

#overlay .preview-wrapper .left {
	width: 360px;
	float: left;
	padding: 4px;
	overflow: hidden;
}

#overlay .preview-wrapper .right {
	width: 244px;
	float: right;
	overflow: auto;
}
#overlay ul {
    padding: 5px 25px;
}
#overlay ul a {
    color: blue;
    text-decoration: none;
}
#overlay input.share {
	margin-top: 15px;
	border-radius: 4px;
	border: 1px solid #d6d6d6;
	font: 24px/32px Times New Roman;
	width: 592px;
	padding: 8px;
}
#overlay form select#theme-select,
#overlay form select#size-select {
    margin-top: 10px;
    padding: 9px 10px;
    width: 400px;
    font-size: 18px
}
#overlay #theme-set,
#overlay #size-set {
    margin-top: 10px;
}
#overlay .upload-count {
	font-size: 22px;
	font-family: 'BebasNeueRegular', Arial, sans-serif;
}

#overlay .share-canvas {
	margin-top: 10px;
}

#overlay .share-canvas .twitter-share {
	float: left;
	position: relative;
	top: 2px;
}

/** Main design **/
#header {
	width: 512px;
	margin: 0 auto;
	color: #fff;
	padding: 10px 0 0 0;
	font-size: 46px;
	font-family: 'BebasNeueRegular', Arial, sans-serif;
}

#header .small {
	font-size: 28px;
}

#main.box {
	margin-top: 0;
}

#noscript {
	color: #fff;
	margin-bottom: 15px;
	background-color: #e44848;
	border: 1px solid #9e2e2e;
}

#canvas {
	width: 512px;
	height: 512px;
	position: relative;
	background-color: #eee;
	background-image: url('../../image.php?t=canvas');
}

#canvas .painting {
	position: absolute;
	background: red;
	cursor: pointer;
	background: none;
	
	-webkit-transition: background 100ms ease-in;
    -moz-transition: background 100ms ease-in;
    -o-transition: background 100ms ease-in;
    transition: background 100ms ease-in;
}

#canvas .painting:hover {
	background: rgba(255, 255, 255, 0.4);
}

#controls {
	width: 512px;
	overflow: auto;
}

#controls .button {
	width: 165px;
	margin-top: 10px;
	float: left;
}

#controls.share .button {
	width: 252px;
}

#footer {
	width: 532px;
	margin: 0 auto 20px;
	position: relative;
	font-size: 10px;
	text-align: center;
	overflow: auto;
	color: #ddd;
	text-transform: uppercase;
	padding: 15px 0 50px 0;
	background: url('../image/footer-bg.png') 130px bottom;

	background-repeat: no-repeat;
}

#footer a{
	color: #ddd;
	margin: 10px 5px 0 5px;
	text-decoration: none;
}
#footer .share-left {
	position: absolute;
	left: 4px;
	top: 10px;
}
#footer .share-right {
	position: absolute;
	right: 0;
	top: 10px;
}

/** Classes **/
.box {
	width: 512px;
	margin: 15px auto 0;
	padding: 10px;
	background: #fff;
	border-radius: 3px;
	border: 1px solid #d9d9d9;
	box-shadow: 0px 0px 10px #333;
}

.button {
	margin: 4px;
	border-radius: 3px;
	padding: 2px;
	text-align: center;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	font-size: 28px;
	font-family: 'BebasNeueRegular', Arial, sans-serif;
}

.button.first {
	margin-left: 0px;
}

.button.last {
	margin-right: 0px;
}

/** Fonts **/
@font-face {
    font-family: "BebasNeueRegular";
    src: url('../font/BebasNeue-webfont.eot');
    src: url('../font/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
         url('../font/BebasNeue-webfont.woff') format('woff'),
         url('../font/BebasNeue-webfont.ttf') format('truetype'),
         url('../font/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}

/** File uploader **/
#overlay .file-loading,
#overlay .wrapper-loading {
	display: none;
	margin-top: 30px;
	text-align: center;
	font-size: 26px;
	font-family: 'BebasNeueRegular', Arial, sans-serif;
}

#overlay .file-loading img,
#overlay .wrapper-loading img {
	vertical-align: middle;
	margin-right: 5px;
}

#overlay .qq-upload-button {
	float: right;
}

#overlay 

#overlay .qq-upload-file,
#overlay .qq-upload-spinner,
#overlay .qq-upload-size,
#overlay .qq-upload-cancel,
#overlay .qq-upload-failed-text,
#overlay .qq-upload-list,
#overlay .qq-upload-success {
	display: none;
}

/** Jcrop **/
.jcrop-holder{direction:ltr;text-align:left;}
.jcrop-vline,.jcrop-hline{background:#FFF url(../image/Jcrop.gif) top left repeat;font-size:0;position:absolute;}
.jcrop-vline{height:100%;width:1px!important;}
.jcrop-hline{height:1px!important;width:100%;}
.jcrop-vline.right{right:0;}
.jcrop-hline.bottom{bottom:0;}
.jcrop-handle{background-color:#333;border:1px #eee solid;font-size:1px;}
.jcrop-tracker{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;height:100%;width:100%;}
.jcrop-handle.ord-n{left:50%;margin-left:-4px;margin-top:-4px;top:0;}
.jcrop-handle.ord-s{bottom:0;left:50%;margin-bottom:-4px;margin-left:-4px;}
.jcrop-handle.ord-e{margin-right:-4px;margin-top:-4px;right:0;top:50%;}
.jcrop-handle.ord-w{left:0;margin-left:-4px;margin-top:-4px;top:50%;}
.jcrop-handle.ord-nw{left:0;margin-left:-4px;margin-top:-4px;top:0;}
.jcrop-handle.ord-ne{margin-right:-4px;margin-top:-4px;right:0;top:0;}
.jcrop-handle.ord-se{bottom:0;margin-bottom:-4px;margin-right:-4px;right:0;}
.jcrop-handle.ord-sw{bottom:0;left:0;margin-bottom:-4px;margin-left:-4px;}
.jcrop-dragbar.ord-n,.jcrop-dragbar.ord-s{height:7px;width:100%;}
.jcrop-dragbar.ord-e,.jcrop-dragbar.ord-w{height:100%;width:7px;}
.jcrop-dragbar.ord-n{margin-top:-4px;}
.jcrop-dragbar.ord-s{bottom:0;margin-bottom:-4px;}
.jcrop-dragbar.ord-e{margin-right:-4px;right:0;}
.jcrop-dragbar.ord-w{margin-left:-4px;}
.jcrop-light .jcrop-vline,.jcrop-light .jcrop-hline{background:#FFF;filter:Alpha(opacity=70)!important;opacity:.70!important;}
.jcrop-light .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#000;border-color:#FFF;border-radius:3px;}
.jcrop-dark .jcrop-vline,.jcrop-dark .jcrop-hline{background:#000;filter:Alpha(opacity=70)!important;opacity:.7!important;}
.jcrop-dark .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#FFF;border-color:#000;border-radius:3px;}
.jcrop-holder img,img.jcrop-preview{max-width:none;}

/** Twitter **/
.twitter-share-button {
	width: 82px !important;
}





















