.footer, .header{
	
	background: #33aaCC;
}

.header{
	position: fixed;
	width: 100%;
	z-index:3;
	font-size: 14pt;
	padding: 10px;
	color: #fff;
}
.header h3{
	margin: auto;
	padding: 10px;
	color: #fafafa;
	
}
.footer{
	
	position: relative;
	margin-top: -32px;
	clear:both;
	height: 32px;
}
@media screen and (min-width:480px) and (max-width:800px){
	.main{
		/*height:100%;
		padding: 32px 0 ;*/
		padding-bottom: 10px;
		width: 100%;
		margin: auto;
		position: relative;
		padding-top: 15px;
		
		
		
	}
}

/*@media all{
	.main{
		/*height:100%;
		padding: 32px 0 ;
		padding-bottom: 60px;
		width: 800px;
		margin: auto;
		position: relative;
		padding-top: 45px;
		
		
		
	}
}
*/
.restart, #numbers-toggle, .size-change{
	cursor: pointer;
}
.moves-counter{
	cursor: auto;
}
body, html{
	height: 100%;
	margin: 0 !important;
	padding: 0;
	position: relative;
	/*font-family: Geneva, Arial, Helvetica, sans-serif;*/
	font-family: 'Source Sans Pro', Helvetica;
	font-size: 12pt;
	overflow: auto; 
	min-height: 100%;
	
	
}
body{
	min-height: 100%;
	/*overflow-y: scroll;*/
}
html{
	height: 100%;

}
.wrap{
	overflow: auto;
	position: relative;
	height: 100%;
	min-height: 100%;
}

h1{
	text-align: center;
}
.simple-button{
	z-index: 5;
	color: #fafafa;
	font-weight: bold;
	/*height: 30px;*/
	background: #33aacc;
	/*width: 50px;*/
	position: relative;
	float: left;
	padding: 5px;
	margin : 5px 10px 0px 0px;
	border-radius: 2px;
}

.no-padding{
	padding: 0;
}
.simple-button:hover{
	background: #2299cc;
}
.simple-button button{
	border: none;
	font-weight: bold;
	font-size: 12pt;
	background: transparent;
	top:0;
	left:0;
	width: 100%;
	height: 100%;
	color: #fafafa;
	margin: 0;
	padding: 0;
	cursor: pointer;
	padding: 5px;
}
.simple-button a{
	position:absolute;
	top:0;
	left:0;
	text-decoration:none;
	width: 100%;
	height: 100%;
}
.simple-button input[type=button]{
	border:none;
	background:transparent;
	color: #fafafa;
	font-weight: bold;
	
	
}
.simple-button input[type=button]:focus{
	outline: none;
}
.hidden{
	display: none;
}
.to-top{
	position: fixed !important;
	bottom: 50px;
	left: 100px;
	display: none;
}


/*field elements */
.container-wrap{
	/*display: inline-block;*/
	margin: auto;
	/*left: 50%;*/
}
.outer-center {
    float: right;
    right: 50%;
    position: relative;
}
.inner-center {
    float: right;
    right: -50%;
    position: relative;
}
.clear {
    clear: both;
}
.field-container{
	background-color: #F0F0F0;
	border-radius: 5px;
	position: relative;
	padding: 10px;
	
	margin: 50px auto 10px;
	
}
.field-overlay{
	position: absolute;
	top: -5px;
	left: -5px;
	width: 100%;
	height: 100%;
	z-index: 5;
	opacity: 0.9;
	background: #999;
	display: none;
	padding: 5px;
	border-radius: 3px;
}
.overlay-container{
	position: relative;
	height: 100%;
}
.line{
	 height: 72px;
	 position: relative;
	 
}
.center{
	top: 50%;
	margin: 0 20%;
	clear: both;
	float: none;
	text-align: center;
	
	opacity: 1;
	z-index: 20;
	line-height: 45px;
}

.block{
	height: 64px;
	width: 64px;
	float: left;
	position: relative;
	background-color: #F0EABF;
	border-radius: 3px;
	margin: 1px;
	line-height: 64px;
	text-align: center;
	font-size: 16pt;
	border: 3px solid #afafaf;
	cursor: pointer;
	transition: all  ease-out 0.5s;
}
.block:hover{
	/*background-color: #CEA493;
	border-color: #8E4423;*/
}
.free{
	background: transparent;
	border-color: transparent;
	cursor: auto;
}
.free:hover{
	background-color: #f1f1f1;
	border-color: transparent;
	
}
.in-correct-place{
	background-color: #adebad;
	border-color: #09b409;
	
}

.field-container, .img-preview{
	border: 2px dashed #a0a0a0;
}
.img-preview{
	width: 100%;
	margin: 20px auto;
	border-radius: 5px;
	position: relative;
	
	background-color: #F0F0F0;
	/*height: 100%;*/
}
.img-preview img{
	width: 94%;
	height: 94%;
	position: relative;
	margin: auto;
	display: block;
	margin-top: 10px;
	margin-bottom: 10px;
	

}
/*canvas*/
#image-preview{
	
	width: 400px;
	height: 400px;
}
.block-img{
/*	width: 64px;
	height: 64px;
	
*/
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
}
.canvas-preview{
	display: none;
}

.options-bar{
	overflow: auto;
}