
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
/*
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
*/

/* HTML5 display-role reset for older browsers */
/*
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
*/

body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

.table{
	width:100%;
	cursor:pointer;
}

.table th{
	cursor:pointer;
	/*text-align:center;*/
	/*color:#eee;*/
	padding:4px;
}

.table td{
	padding:4px;
	white-space: nowrap;
  	overflow: hidden;         /* <- this does seem to be required */
  	text-overflow: ellipsis;
}


/* override bootstrap ?
.table-hover>tbody>tr:hover {
    background-color: #444;
}
*/

tr.selected{
	background-color: #eeeeee;
    color:#000;
}

tr.opened{
	background-color: #999999;
    color:#000;
}

a{
	color:#ccc;
	text-decoration: none;
}
a:hover{color:#fff;}

@font-face {
	font-family: 'C64ProMonoRegular';
	src: url('/dist/fonts/c64_pro_mono_v1.0-style-webfont.eot');
	src: url('/dist/fonts/c64_pro_mono_v1.0-style-webfont.eot?#iefix') format('embedded-opentype'),
		url('/dist/fonts/c64_pro_mono_v1.0-style-webfont.woff') format('woff'),
		url('/dist/fonts/c64_pro_mono_v1.0-style-webfont.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

.hide{display: none !important;}

body {
	position: relative;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
#petscii-editor {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	/*overflow: hidden;*/
}

div#toolbar {
	position: fixed;
	z-index: 150;
	top: 0px;
	left: 0px;
	border-right: 1px solid #222;
	padding: 5px 10px;
	width: 280px;
	height: 100%;
	font-family: 'C64ProMonoRegular';
	font-size: 8px;
	color: #aaa;
	background-color: #222;
    /*overflow-y: auto;		*/
}

.center{text-align: center;}

#editor {
	position: fixed;
	z-index: 100;
	top: 0px;
	left: 0px;
	padding-left:0px;/* Change this */
	width: 100%;
	height: 100%;
	background: black;
}


#screen {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -100px;
	margin-left: -160px;
	/*background: #352879;*/
	outline: none;
	transform-origin: 0 0;
	-webkit-transform-origin: 0 0;
	transform: scale(2);
	-webkit-transform: scale(2);
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	-ms-interpolation-mode: nearest-neighbor;
	-webkit-font-smoothing: none;
}
#screen:focus {
	outline: none;
}

#topbar {
	position: fixed;
	z-index: 100;
	top: 0px;
	right: 0px;
	border-left: 1px solid #222;
	border-bottom: 1px solid #222;
	padding: 4px 0px 4px 8px;
	width: 100%;
/*	height: 38px;*/
	font-family: Arial;
	font-size: 11px;
	line-height: 12px;
	color: #666;
	text-align: left;
	background-color: #222;
}

#bottombar {
	position: fixed;
	z-index: 100;
	bottom: 0px;
	right: 0px;
	
	padding: 4px 0px 4px 8px;
	width: 100%;
	height: 48px;
	font-family: Arial;
	font-size: 11px;
	line-height: 12px;
	color: #666;
	text-align: left;
	background-color: #222;
}

#topbar div > span {
	display: inline-block;
	width: 30px;
}
/*
h1 {
	display: block;
	padding-top: 14px;
	font-family: 'C64ProMonoRegular';
	font-size: 16px;
	text-align: center;
}
*/
.sep {
	border-top: 1px solid #666;
	border-bottom: 1px solid #111;
	margin: 10px auto;
	height: 0px;
}

#toolbar label {
	display: block;
}

#toolbar label span {
	display: inline-block;
	padding-right: 10px;
	width: 100px;
	text-align: right;
	vertical-align: middle;
}

#toolbar button, #topbar button, #bottombar button {
	box-sizing: content-box;
	-moz-box-sizing: content-box;
	display: inline-block;
	border: 1px solid #222;
	padding: 1px;
	min-width: 32px;
	height: 32px;
	font-size: 2rem;
	color: #aaa;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	background: #444; /* Old browsers */
	border-radius: 0px;
}

/*
.btn{
	box-sizing: content-box;
	-moz-box-sizing: content-box;
	display: inline-block;
	border: 1px solid #222;
	padding: 1px;
	width: 25px;
	height: 25px;
	font-size: 16px;
	color: #aaa;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	background: #444;
}
*/

#toolbar button.active,
#toolbar button:hover, #topbar button:hover, a.button:hover {
	color:#fff;
	background: #333; /* Old browsers */
}
#toolbar button.active {
	color: #fff;
}
#toolbar button:focus {
	outline: none;
}
#toolbar button.small {
	padding: 2px;
	width: 30px;
}

/*
a.button{
	box-sizing: content-box;
	-moz-box-sizing: content-box;
	display: inline-block;
	border: 1px solid #222;
	padding: 1px;
	width: 25px;
	height: 25px;
	font-family: 'C64ProMonoRegular';
	font-size: 16px;
	color: #aaa;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	background: #444;
	border-radius: 0px;
}
*/

.colr{
	padding: 0px!important;
	border: 0px #222 solid;
	border-radius: 0px;
}

@media (max-width: 960px) {
  .colr {
    width:16px!important;
  }
}

@media (max-width: 780px) {
  .colr {
    width:10px!important;
  }
}

.colorpicker{
	height:24px;
	padding: 0px !important;
	margin-top: 2px;
}

/*
.jscolor{
	font-family: 'C64ProMonoRegular';
	font-size: 8px;
	height:24px;
	cursor:pointer;
	border:0;
	border-radius: 0px;
}
*/

/*
.colrhex{
	font-family: 'C64ProMonoRegular';
	font-size: 8px;
	height:20px!important;
	width:120px;
	cursor:pointer;
}
*/
/*
.colrspan{
	font-size: 8px!important;
	height:12px!important;
	width:60px!important;
	background:#000;
}
*/

select.selector{
	box-sizing: border-box;
	-moz-box-sizing: border-box;

	border: 0;
	padding: 7px;
	width: 140px;
	font-size: 16px;
	color: #ccc;
	background: #111;
	vertical-align: middle;
}

/*
#toolbar textarea,
#toolbar select,
#toolbar input[type=password],	
#toolbar input[type=file],
#toolbar input[type=email],
#toolbar input[type=number],
#toolbar input[type=text] {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	margin: 1px;
	border: 1px solid #222;
	padding: 5px 5px;
	width: 140px;
	font-family: 'C64ProMonoRegular';
	font-size: 8px;
	color: #ccc;
	background: #111;
	vertical-align: middle;
}
#toolbar input[type=checkbox]:focus,
#toolbar select:focus,
#toolbar input[type=file],
#toolbar input[type=text]:focus {
	outline: none;
}
#toolbar input[type=text].color {
	width: 118px;
}
#toolbar input[type=file] {
	width: 260px;
	margin-top: 5px;
}

#toolbar input[type=checkbox] {
	-webkit-appearance: none;
	border: 1px solid #222;
	width: 16px;
	height: 16px;
	margin: 1px;
	vertical-align: middle;
	color: white;
	background: #666;
	cursor: pointer;
}

#toolbar input[type=checkbox]:checked {
	background: white;
}

*/

#toolbar label div.color {
	display: inline-block;
	border: 1px solid #222;
	width: 16px;
	height: 16px;
	background: #666;
	vertical-align: middle;
}


#chars {
	overflow: hidden;
	margin: 10px auto;
}
#chars .char {
	float: left;
	padding: 0px;
	padding-top:0px!important;
	margin-top:0px;
	margin-bottom:0px;
	border-bottom: 0px;
	width: 17px;
	height: 18px;
	line-height: 16px;
	border: 1px solid #444;
	/*border-left:0px;*/
	font-family: 'C64ProMonoRegular';
	font-size: 16px;
	color: white;
	background: #666;
	cursor: pointer;
}
#chars .char.active {
	border-color: white;
	color: white;
}
#chars .char:hover {
	border-color: #999;
}
#chars .char.active:hover {
	border-color: white;
}

#chars .charcolor {
	float: left;
	line-height: 16px;
	cursor: pointer;
	width:16px;
	height:16px;
	border:0px;
}

#chars .br {
	clear: both;
	height: 3px;
}
#chars .space {
	float: left;
	display: inline-block;
	width: 20px;
	height: 18px;
}

#toolbar label#scaleButtons span {
	width: initial;
	padding-left: 5px;
}
#toolbar label#scaleButtons button#buttonGrid {
	width: 65px;
}

#colorInput {
	position: absolute;
	top: 0px;
	left: 0px;
	border: 1px solid black;
	padding: 1px;
	width: 60px;
	height: 288px;
	overflow: hidden;
	background: #666;
	box-shadow: 3px 3px 6px #222;
}
#colorInput .item {
	padding: 1px;
	height: 16px;
	overflow: hidden;
	cursor: pointer;
}
#colorInput .item:hover {
	background: #444;
}
#colorInput .item .color {
	display: inline-block;
	border: 1px solid #222;
	width: 13px;
	height: 13px;
	background: #666;
	vertical-align: middle;
}
#colorInput .item .name {
	display: inline-block;
	margin-left: 5px;
	width: 60px;
	font-size: 10px;
	color: white;
	vertical-align: middle;
}
#colorInput.hide {
	display: none;
}


/* TABS */

.tabs li {
	list-style:none;
	display:inline;
}

.tabs a {
	padding:5px 5px;
	display:inline-block;
	/*background:#666;*/
	color:#999!important;
	text-decoration:none!important;
	font-family: 'C64ProMonoRegular';
	font-size: 16px;
}

.tabs a:hover {
	background:#333;
	color:#fff!important;
}

.tabs a.active {
	background:#333!important;
	color:white!important;
}

.btnlarge>i{
	font-size: 16px!important;
}
.btnlarge{
	width:80px!important;
	font-size: 8px!important;
	text-align: left!important;
	padding-left:4px!important;
}

#topbar select, #topbar input{
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	margin: 1px;
	border: 1px solid #222;
	padding: 7px;
	/*width: 140px;*/
	font-family: 'C64ProMonoRegular';
	font-size: 8px;
	color: #ccc;
	background: #111;
	vertical-align: middle;
}

/* font awesome icons */
svg{fill:#999;}


/* Style The Dropdown Button */
.dropbtn {
    background-color: #222!important;
    padding: 0px;
    font-size: 16px;
    border: none 0px!important;
    cursor: pointer;
    width: 16px!important;
	height: 16px!important;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #ccc;
    padding: 4px 4px;
    text-decoration: none;
    display: block;
}

.dropdown-content i {
    font-size:16px;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
	background-color: #444
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}


/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: #000;
    padding:0px;
}

