/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

a {
    color: #00e;
}

a:visited {
    color: #551a8b;
}

a:hover {
    color: #06e;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}


input, button {
    -webkit-appearance: none;
    border-radius: 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


* {
	box-sizing:border-box;
}

p, h1, h2, h3 {
	margin:0 0 1em 0;
}

body {
	margin:0;
	background:#ededed;
	font-family:Tahoma, Geneva, sans-serif;
}

#footer {
	display:none;
}

#app {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	overflow:hidden;
	z-index: 1;
}

.screen-container {
	width:100%;
	height:100%;
}
#canvas-area {
	width:100%;
	height:100%;
	padding-top: 45px;
	padding-bottom:205px;
}
#canvas-wrapper {
	width:100%;
	height:100%;
	text-align:center;
	position:relative;
}
#canvas-wrapper .overlay {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;
	z-index:0;
}

#canvas {
	width:auto;
	height:100%;
	max-height:450px;
	display:inline-block;
}


/*--------------------------------*/
/* -------- LOADER SCREEN --------- */
/*--------------------------------*/

#loader {
	width:100%;
	height:100%;
	position:absolute;
	top:0;
	left:0;
	z-index:99;
	background: #ffe082;
}

#loaderImg {
	width: 76px;
	height: 79px;
	position: absolute;
	top: 50%;
	left: 50%;
	margin:  -36px 0 0 -38px;
}


/*--------------------------------*/
/* -------- MAIN SCREEN --------- */
/*--------------------------------*/

/* MAIN */
#main {
	width:100%;
	height:100%;
	position:absolute;
	top:0;
	left:0;
	z-index:10;
}

#main-header {
	position:relative;
}

#main-bg {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:url(../img/main-tile-b.png) repeat center center;
	background-size: 309px 309px;
	border-bottom:5px solid #000;

	-webkit-transition: all 0.5s ease-out 0s;
	-moz-transition: all 0.5s ease-out 0s;
	-o-transition: all 0.5s ease-out 0s;
	transition: all 0.5s ease-out 0s;
}

#title {
	text-align:center;
	background:#FFF url(../img/anime-mood.png) no-repeat center center;
	text-indent:100%;
	white-space:nowrap;
	overflow:hidden;
	height:70px;
	border-bottom:5px solid #000;
	margin:0;
	cursor:pointer;
}
#subtitle {
	background:#bdbdbd;
	border-bottom:5px solid #000;
	font-size:14px;
	text-align:center;
	padding:10px 20px 10px;
	margin:0;
}

#main-actions {
	position:absolute;
	width:100%;
	padding:0 15px;
	top:50%;
	margin-top: -50px;
	left:0;
	text-align: center;
}

#main-actions > canvas {
	margin: 0 5px;
	border: 4px solid #000;
}

#main-footer {
	position:absolute;
	left:0;
	bottom:0;
	width:100%;
}
#footer-links {
	font-size:13px;
	color:#fff;
	padding:12px 10px;
	background:#757575;
	display: none;
}
#footer-links a {
	color:#fff;
}
#footer-cr {
	font-size:12px;
	background:#bdbdbd;
	text-align:center;
	padding:10px 10px;
	border-top:5px solid #000;
	color:#222;
	height: 46px;
}

#footer-cr a {
	color:#222;
}

#credits {
	float: left;
}

#feedback-link {
	float: right;
	font-weight: bold;
}

#feedback-link > a {
	text-decoration: none;
}

#feedback-link > a > img {
	width: 17px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 3px;
}

#gplay-link {
	display: inline-block;
	position: relative;
	top: -9px;
}

.canvasBtn {
	width: 130px;
	height: 130px;
	border-radius: 4px;
}

/*--------------------------------*/
/* -------- OPTIONS SCREEN --------- */
/*--------------------------------*/
#save-options {
	width:100%;
	height:100%;
	background:#fff;
	position:absolute;
	top:0;
	left:0;
	z-index:10;	
}

#save-options canvas {
	width: 120px;
	border: 1px solid #fff;
	display: block;
}

#options-content {
	text-align: center;
	padding-top: 70px;
}

#save-options #canvas-original {
	width: 245px;
	display: block;
}

#canvas-head {
}

#canvas-head-blank {
}

#canvasWrap1 {
	width: 245px;
	display: inline-block;
	margin-bottom: 15px;
}
#canvasWrap2, #canvasWrap3 {
	display: inline-block;
}
#canvasWrap3 {

}

.canvasWrap {
	position: relative;
}

.canvasWrap:after {
	content: "";
	display: block;
	height: 34px;
	background: #fff;
}

.canvasWrap:before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	background: url(../img/seta.png) no-repeat;
	background-size: 18px auto;
	position: absolute;
  bottom: 9px;
  left: 50%;
  margin-left: -5px;

  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

/*--------------------------------*/
/* -------- SAVE SCREEN --------- */
/*--------------------------------*/

#capture {
	width:100%;
	height:100%;
	background:#fff;
	position:absolute;
	top:0;
	left:0;
	z-index:10;
}
#capture-inner {
}
.back-button {
	float:left;
	position: absolute;
	top: 15px;
	left: 15px;
}

.back-button > span {
	display: none;
}

#preview {
	text-align:center;
	clear: both;
	padding: 15px 0;
	position: relative;
	border-bottom: 3px solid #000;
}
#previewCanvas, #previewImg {
	width:60%;
	height: auto;
	margin:0 auto;
	background:#ddd;
	max-width:300px;
}

#previewCanvas {
	display: none;
}

#preview.direct-save:after {
	display: block;
	content: "";
	background-image: url(../img/seta.png);
  background-size: 32px 30px;
	width: 32px;
	height: 30px;
	position: absolute;
	bottom: -14px;
	left: 50%;
	margin-left: -16px;
}

#btn-download {
	display: block;
	width: 100%;
	height: 70px;
	border: none;
	border-bottom:1px solid #000;
	font-size: 14px;
	font-weight: bold;
	text-transform: uppercase;
	background: #fff;
}

#btn-download .interface-button {
	vertical-align: middle;
	margin-right: 5px;
	background-position: -352px 0;
}

.helper-text {
	padding: 10px;
	text-align: center;
}

.instructions {
	text-align: center;
	padding: 15px;
}
.instructions-pt {
	font-size: 12px;
	color: #666;
}

.success-text {
  background: #c5e1a5;
  margin: 15px;
  border-radius: 15px;
  padding: 5px 10px;
  color: #333;
  font-size: 13px;
  text-align: center;
}
.error-text {
  background: #ef9a9a;
  margin: 15px;
  border-radius: 15px;
  padding: 5px 10px;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

#rateBanner {
	text-align: center;
	margin-top: 40px;
}

#rateBtn {
	display: inline-block;
	border: 1px solid #9e9e9e;
	border-radius: 30px;
	font-weight: bold;
	color: #222;
	text-decoration: none;
  padding: 6px 15px 6px 33px;
  margin-top: 10px;
  background: url(../img/rate.png) no-repeat 9px center;
  background-size: 18px auto;
  font-size: 14px;
}

/*--------------------------------*/
/* --------- INTERFACE ---------- */
/*--------------------------------*/
#main, #app-screen, #capture, #save-options {
	-webkit-transition: all 0.3s ease-out 0s;
	-moz-transition: all 0.3s ease-out 0s;
	-o-transition: all 0.3s ease-out 0s;
	transition: all 0.3s ease-out 0s;
}


/* MAIN SCREEN */
.main-screen #main {
	left:0%;
	display:block;
}
.main-screen #app-screen {
	display:block;
	left:100%;
}
.main-screen #capture, .main-screen #save-options {
	display:none;
}

/* APP SCREEN */
#app-screen {
	position:absolute;
	left:0;
	top:0;
}
.app-screen #app-screen {
	left:0%;
}
.app-screen #app-screen, .app-screen #main {
	display:block;
}

.app-screen #save-options {
	left:100%;
}

.app-screen #main {
	left:-100%;
}

/* CAPTURE SCREEN */
#capture {
	left: 100%;
}

.capture-screen #capture {
	left: 0%;
	display:block;
}

.capture-screen #app-screen {
	left: -100%;
}

.capture-screen #save-options {
	left: -100%;
}

.capture-screen #main {
	display:none;
}

/* OPTIONS SCREEN */
#save-options {
	left: 100%;
}

.save-options-screen #save-options {
	left: 0%;
	display:block;
}

.save-options-screen #app-screen {
	left: -100%;
}

.save-options-screen #capture {
	left: 100%;
}

.save-options-screen #main {
	display:none;
}

/* BUTTONS */
button:focus {
	outline:none;
}

.interface-button {
	width:44px;
	height:44px;
	display: inline-block;
	border:none;
	z-index:3;
	background:transparent url(../img/sprites/sprites-btn.png) no-repeat 0 0;
}
#btn-capture {
	position:absolute;
	top:15px;
	right:15px;
	background-position:-44px 0;
}
#btn-rand {
	position:absolute;
	top:15px;
	right:75px;
	background-position:-88px 0;
}

.btn-label {
	position: absolute;
	bottom: -14px;
	width: 80px;
	margin-left: -40px;
	text-align: center;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
}

#btn-home {
	position:absolute;
	top:15px;
	left:15px;
	z-index:4;
}

.back-button {
	background-position: -264px 0;
}

.action-btn {
	border:5px solid #000;
	background:#ffe082;
	border-radius:6px;
	display:block;
	width:100%;
	padding:12px 10px;
	text-align:center;
	font-weight:bold;
	font-size:14px;
	text-transform: uppercase;
	cursor:pointer;
}

.scroll-left-btn, .scroll-right-btn {
	display:none;
}

/* MENUS */
#interface {
	position:absolute;
	left:0;
	bottom:0;
	z-index:9;
	width:100%;
}
#interface-wrap  {
	background:#9e9e9e;
}

#interface-menu-bar {
	position: relative;
	background:#fff;
	padding:8px 0;
	border-top:8px solid #212121;
}

.menu-closed #interface-menu-bar {
	border-top: none;
}

#interface-menu {
	width:100%;
	height:52px;
	overflow:hidden;
}

#interface-menu, #interface-options {
	position: relative;
}

.menu-btn {
	width:64px;
	height:52px;
	background-color:#bdbdbd;
	background-image:url(../img/sprites/sprites-menu-2.png);
	border:1px solid #fff;
	border-width:0 1px;
	float:left;
	text-indent:150%;
	white-space:nowrap;
	overflow:hidden;
	position:relative;
}
.menu-btn.disabled:before {
	content:'';
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background: rgba(158,158,158,0.8);
}
.menu-btn:first-child, .btn-option:first-child, .btn-cor:first-child {
	border-radius:6px 0 0 6px;
	margin-left:20px;
	border-left:0;
}
.menu-btn:last-child, .btn-option:last-child, .btn-cor:last-child {
	border-radius:0 6px 6px 0;
	margin-right:20px;
	border-right:0;
}

.menu-btn.selected {
	background-color:#757575;
	position:relative;
}
.menu-btn.selected:before, .btn-option.selected:before, .btn-cor.selected:before {
	content:'';
	display:block;
	position:absolute;
	left:50%;
	margin-left:-7px;
	top:0;
	width:0;
	height:0;
	border-left:7px solid transparent;
	border-right:7px solid transparent;
	border-top:7px solid #212121;
	z-index:1;
}

.menu-btn.selected:before {
	border-top-color: #fff;
}

#btn-skin {background-position:0 0;}
#btn-hair {background-position:-64px 0;}
#btn-outfit {background-position:-128px 0;}
#btn-glasses {background-position:-192px 0;}
#btn-accessoryTop {background-position:-256px 0;}
#btn-face {background-position:-320px 0;}
#btn-bubble {background-position:-384px 0;}
#btn-background {background-position:-448px 0;}

#interface.m #btn-hair {background-position:-576px 0;}
#interface.m #btn-accessoryTop {background-position:-704px 0;}
#interface.m #btn-outfit {background-position:-640px 0;}
#btn-beard {background-position:-512px 0;}

.menu-bar {
	overflow:hidden;
}

#interface.f #interface-menu .inner-wrap {
	width:552px;
	height: 52px;
}

#interface.m #interface-menu .inner-wrap {
	width:616px;
	height: 52px;
}

#interface.f #interface-menu #btn-beard {
	display: none;
}

/* Options bar */
#interface-options {
	height:72px;
	background:#212121;
	border-top:8px solid #212121;
	display: none;
}

.option-menu {
	width:100%;
	overflow:hidden;
}

.option-menu .inner-wrap {
	background:#212121;
}

.btn-option {
	height:64px;
	width:64px;
	background-color:#fff;
	background-repeat:no-repeat;
	text-indent:-9999px;
	border:1px solid #212121;
	border-width:0 1px;
	margin:0;
	position:relative;

	-webkit-transition: all 0.1s ease-out 0s;
	-moz-transition: all 0.1s ease-out 0s;
	-o-transition: all 0.1s ease-out 0s;
	transition: all 0.1s ease-out 0s;
}

.btn-option[data-premium]:after {
	content:'';
	position:absolute;
	width:100%;
	height:100%;
	bottom:0;
	right:0;
	background:rgba(255,255,255,0.7) url(../img/btn-locked.png) no-repeat right bottom;
}


#options-outfit .btn-option {
	background-image:url(../img/sprites/sprites-outfit.png);
}
#interface.m #options-outfit .btn-option {
	background-image:url(../img/sprites/sprites-outfit-m-170217.png);
}

#interface.m #options-hair .btn-option {
	background-image:url(../img/sprites/sprites-hair-m-170217.png);
}
#options-hair .btn-option {
	background-image:url(../img/sprites/sprites-hair.png);
}

#options-glasses .btn-option {
	background-image:url(../img/sprites/sprites-glasses-170219.png);
}
#options-accessoryTop .btn-option {
	background-image:url(../img/sprites/sprites-accessory.png);
}

#options-face .btn-option {
	background-image:url(../img/sprites/sprites-faces.png);
}
#interface.m #options-face .btn-option {
	background-image:url(../img/sprites/sprites-faces-m.png);
}

#options-bubble .btn-option {
	background-image:url(../img/sprites/sprites-icons-1.png);
}
#options-bubble .btn-option:nth-child(n+31) {
	background-image:url(../img/sprites/sprites-icons-2.png);
}


#options-background .btn-option {
	background-image:url(../img/sprites/sprites-background.png);
}

#options-beard .btn-option {
	background-image:url(../img/sprites/sprites-beard-170217.png);
}

/* Color bar */
#interface-colors {
	width:100%;
	height:48px;
	background:#212121;
	border-top:8px solid #212121;
	position: relative;
	display: none;
}
.color-menu {
	display:none;
	height:100%;
	width:100%;
	overflow:hidden;

	-webkit-transition: all 0.3s ease-out 0s;
	-moz-transition: all 0.3s ease-out 0s;
	-o-transition: all 0.3s ease-out 0s;
	transition: all 0.3s ease-out 0s;
}
.color-menu .inner-wrap {
	width:600px;
	height:100%;
	background:#212121;
}

.btn-cor {
	width:40px;
	height:40px;
	margin:0;
	border:1px solid #212121;
	border-width:0 1px;
	float:left;
	position:relative;
	
	-webkit-transition: all 0.1s ease-out 0s;
	-moz-transition: all 0.1s ease-out 0s;
	-o-transition: all 0.1s ease-out 0s;
	transition: all 0.1s ease-out 0s;
}


/* BTN */

#btn-prev, #btn-next {
	display:none;
	position:absolute;
	top:0;
	width:50%;
	height:100%;
	border:0;
	background:none;
	padding:0;
	z-index:2;

	text-indent:150%;
	overflow:hidden;
	white-space:nowrap;
}
#btn-prev {
	left:0;
}
#btn-next {
	right:0;
}
#btn-prev:active, #btn-next:active, #btn-prev:focus, #btn-next:focus {
	outline:none;
}





/* ==========================================================================
   Helper classes
   ========================================================================== */

/* Prevent callout */

.nocallout {
    -webkit-touch-callout: none;
}

.pressed {
    background-color: rgba(0, 0, 0, 0.7);
}

/* A hack for HTML5 contenteditable attribute on mobile */

textarea[contenteditable] {
    -webkit-appearance: none;
}

/* A workaround for S60 3.x and 5.0 devices which do not animated gif images if
   they have been set as display: none */

.gifhidden {
    position: absolute;
    left: -100%;
}

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    background-repeat: no-repeat;
    border: 0;
    direction: ltr;
    display: block;
    overflow: hidden;
    text-align: left;
    text-indent: -999em;
}

.ir br {
    display: none;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}



/* Portrait */
@media screen and (orientation:portrait) {

	/* SCROLL SHADOW */
	#interface-menu-bar:before, #interface-menu-bar:after,
	#interface-options:before, #interface-options:after,
	#interface-colors:before, #interface-colors:after {
		content: "";
		display: block;
		width: 20px;
		height: 100%;
		position: absolute;
		top: 0;
		z-index: 1;
		pointer-events: none;
	}

	#interface-menu-bar:before {
		left: 0;
		/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&amp;1+0,0+100;White+to+Transparent */
		background: -moz-linear-gradient(left,  rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(left,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to right,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=1 ); /* IE6-9 */
	}

	#interface-menu-bar:after {
		right: 0;
		/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&amp;0+0,1+100 */
		background: -moz-linear-gradient(left,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to right,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */
	}

	#interface-options:before, #interface-colors:before {
		left: 0;
			/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#212121+0,212121+100&amp;1+0,0+100 */
		background: -moz-linear-gradient(left,  rgba(33,33,33,1) 0%, rgba(33,33,33,0) 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(left,  rgba(33,33,33,1) 0%,rgba(33,33,33,0) 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to right,  rgba(33,33,33,1) 0%,rgba(33,33,33,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#212121', endColorstr='#00212121',GradientType=1 ); /* IE6-9 */
	}

	#interface-options:after, #interface-colors:after {
		right: 0;
		/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#212121+0,212121+100&amp;0+0,1+100 */
		background: -moz-linear-gradient(left,  rgba(33,33,33,0) 0%, rgba(33,33,33,1) 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(left,  rgba(33,33,33,0) 0%,rgba(33,33,33,1) 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to right,  rgba(33,33,33,0) 0%,rgba(33,33,33,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00212121', endColorstr='#212121',GradientType=1 ); /* IE6-9 */
	}

}

/* Portrait tall */
@media screen and (max-aspect-ratio: 9/15) and (orientation:portrait) and (max-width: 700px) {

	#canvas-area {
		display:table;
	} 
	#canvas-wrapper {
		display:table-cell;
		vertical-align:middle;
	}
	
	#canvas {
		width:100%;
		height:auto;
	}

}

/* Portrait short */
@media screen and (min-aspect-ratio: 9/15) and (orientation:portrait) and (max-width: 700px) { 
 #canvas {
    width: auto;
    height: 100%;
 }
}

/* Landscape mobile */
@media screen and (orientation:landscape) and (min-height: 450px) and (max-height: 700px) {
	#canvas-area {
		display:table;
	} 
	#canvas-wrapper {
		display:table-cell;
		vertical-align:middle;
	}
}
@media screen and (orientation:landscape) and (max-height: 700px) {
	
	#canvas-area {
		padding:0 205px 0 0;
	}
	
	#interface {
		width:auto;
		height:100%;
		left:auto;
		right:0;
	}
	
	#interface-wrap {
		height:100%;
	}
	
	/* BTS */
	#btn-capture {
		right:220px;
	}
	#btn-rand {
		right:280px;
	}
	
	/* MENUS */
	
	#interface-colors, #interface-options, #interface-menu {
		float:left;
	}
	
	#interface-colors, #interface-options {
		border-top:none;	
		border-left: 8px solid #212121;
	}
	
	.inner-wrap {
		width:auto !important;
	}
	#interface-colors {
		height:100%;
		width:45px;
	}
	#interface-options {
		height:100%;
		width:70px;
	}
	#interface-menu {
		height:100%;
		width:64px;
	}

	#interface-menu-bar {
		height: 100%;
		padding: 0 8px;
		border-top: none;
		border-left: 8px solid #212121;
	}

	.menu-closed #interface-menu-bar {
		border-left: none;
	}

	.menu-btn {
		float: none;
	}
	
	.option-menu {
		height:100%;
	}
	
	.btn-option, .btn-cor, .menu-btn {
		border-width:1px 0;
	}
	.btn-option:first-child, .btn-cor:first-child, .menu-btn:first-child {
		border-radius: 4px 4px 0 0;
		margin-left: 0;
		margin-top:5px;
	}
	.btn-option:last-child, .btn-cor:last-child, .menu-btn:last-child {
		border-radius: 0 0 4px 4px;
		margin-right: 0;
		margin-bottom:5px;
	}
	
	.btn-option.selected:before, .btn-cor.selected:before, .menu-btn.selected:before {
		left: -5px;
		margin-left: 0;
		top: 50%;
		margin-top:-12px;

		border-top: 12px solid transparent;
		border-bottom: 12px solid transparent;
		border-right: 12px solid transparent;
		border-left: 12px solid #000;
	}

	#interface-menu .menu-btn.selected:before {
		border-left-color: #fff;
	}

	.color-menu .inner-wrap {
		height:auto;
		padding:5px 0;
		overflow:hidden;
	}
	.btn-cor:first-child, .btn-cor:last-child {
		margin:0;
	}
}

/* desktop */
@media only screen and (min-width: 768px) and (min-height: 700px) {
		#app {
		}
		
		#canvas-area {
			padding-top: 0;
		}

		.screen-container, 
		.app-screen #app-screen, 
		.main-screen #app-screen, 
		.main-screen #app-screen, 
		.capture-screen  #app-screen,
		.save-options-screen #app-screen {
			width:592px;
			height:500px;
			position:absolute;
			top:50%;
			left:50%;
			margin:-250px 0 0 -296px;
		}

    #interface-wrap {
			border-radius:6px;
			overflow:hidden;
			margin:0 auto;
		}

		#interface.f {
			width: 528px;
			margin-left: 35px;
		}

		#interface-menu .inner-wrap {
			width: 528px;
		}
		#interface-menu-bar:before, #interface-menu-bar:after, #interface-options:after, #interface-colors:after {
			display: none;
		}
		
		#interface-options, #interface-colors {
			padding:0 40px;
			position:relative;
		}

		.menu-btn:first-child, .btn-option:first-child, .btn-cor:first-child {
			margin-left: 8px;
		}
		.menu-btn:last-child, .btn-option:last-child, .btn-cor:last-child {
			margin-right: 8px;
		}
		
		.scroll-left-btn, .scroll-right-btn {
			display:block;
			position:absolute;
			z-index:1;
			top:0;
			width:40px;
			height:100%;
			background:#9e9e9e;
			border:none;
			padding:0;
			overflow: hidden;

			-webkit-transition: all 0.1s ease-out 0s;
			-moz-transition: all 0.1s ease-out 0s;
			-o-transition: all 0.1s ease-out 0s;
			transition: all 0.1s ease-out 0s;
		}
		
		.scroll-left-btn {
			left:5px;
			border-radius:4px 0 0 4px;
			border-right:5px solid #212121;
		}
		.scroll-right-btn {
			right:5px;
			border-radius:0 4px 4px 0;
			border-left:5px solid #212121;
		}
		.scroll-left-btn:before, .scroll-right-btn:before {
			content:'';
			display:inline-block;
			width:40px;
			height:40px;
			background-image: url(../img/sprites/sprites-btn.png);
			background-repeat:no-repeat;
			background-color:#fff;

			-webkit-transition: all 0.05s ease-out 0s;
			-moz-transition: all 0.05s ease-out 0s;
			-o-transition: all 0.05s ease-out 0s;
			transition: all 0.05s ease-out 0s;
		}
		.scroll-left-btn:before {
			background-position:-132px center;
		}
		.scroll-right-btn:before {
			background-position:-178px center;
		}
		
		.scroll-left-btn.disabled, .scroll-right-btn.disabled {
			opacity: 0.5;
		}

		.scroll-left-btn.disabled:before, .scroll-right-btn.disabled:before {
			background-color:#9e9e9e;
		}
		
		#main, #capture {
			border-radius:6px;
		}

		#options-content {
			padding-top: 16px;
		}
		
		/* HEADER / INTERFACE */

		.app-screen #app-screen {
			display:block;
		}
		.app-screen #main, 
		.capture-screen #main,
		.save-options-screen #main {
			display:block;
			height:auto;
		}
		.app-screen #main-actions, 
		.capture-screen #main-actions,
		.save-options-screen #main-actions {
			display:none;
		}
		
		.app-screen #main {
			left:auto;
		}
		
		.app-screen #main-bg, 
		.capture-screen #main-bg,
		.save-options-screen #main-bg {
			height:0%;
		}

		#main {
			position:static;
		}
		
		#main-bg {
			z-index:98;
			background-position:top center;
		}
		
		#main-header {
			position:absolute;
			top:0;
			left:0;
			width:100%;
			z-index:99
		}

		#main-actions {
			bottom:150px;
			padding:0 25%;
			z-index:99
		}
		

		
		/* FOOTER */
		#main-footer {
			display:block;
			position:absolute;
			bottom:0;
			left:0;
			width:100%;
			background:#757575;
			z-index:99
		}
		#main-footer .container {
			margin:0 auto;
			max-width:900px;
		}

}

/* hi res */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dppx) {

		#main-bg {
			background-image: url(../img/main-tile-b-2x.png);
		}

		#title {
			background-image:url(../img/anime-mood-2x.png);
			background-size:176px 54px;
		}

		.menu-btn {
				background-image:url(../img/sprites/sprites-menu-2x-2.png);
				background-size:auto 52px;
		}
		
		.interface-button, .scroll-left-btn:before, .scroll-right-btn:before, #btn-home {
			background-image:url(../img/sprites/sprites-btn-2x.png);
			background-size:auto 44px;
		}

		.interface-button, #btn-home {
			background-size:auto 44px;
		}
		
		.btn-option {
				background-size:auto 64px;
		}
		
		.btn-option[data-premium]:after {
			background:rgba(255,255,255,0.7) url(../img/btn-locked-2x.png) no-repeat right bottom;
			background-size: 32px 32px;
		}

		#options-outfit .btn-option {
			background-image:url(../img/sprites/sprites-outfit-2x.png);
		}
		#interface.m #options-outfit .btn-option {
			background-image:url(../img/sprites/sprites-outfit-m-2x-170217.png);
		}

		#options-hair .btn-option {
			background-image:url(../img/sprites/sprites-hair-2x.png);
		}
		#interface.m #options-hair .btn-option {
			background-image:url(../img/sprites/sprites-hair-m-2x-170217.png);
		}

		#options-glasses .btn-option {
			background-image:url(../img/sprites/sprites-glasses-2x-170219.png);
		}
		#options-accessoryTop .btn-option {
			background-image:url(../img/sprites/sprites-accessory-2x.png);
		}

		#options-face .btn-option {
			background-image:url(../img/sprites/sprites-faces-2x.png);
		}
		#interface.m #options-face .btn-option {
			background-image:url(../img/sprites/sprites-faces-m-2x.png);
		}

		#options-bubble .btn-option {
			background-image:url(../img/sprites/sprites-icons-1-2x.png);
		}

		#options-bubble .btn-option:nth-child(n+31) {
			background-image:url(../img/sprites/sprites-icons-2-2x.png);
		}

		#options-background .btn-option {
			background-image:url(../img/sprites/sprites-background-2x.png);
		}

		#options-beard .btn-option {
			background-image:url(../img/sprites/sprites-beard-2x-170217.png);
		}
}


