@font-face {
  font-family: "Source Sans";
  src: url("js/extra/SourceSansPro-Regular.otf") format("opentype")
}

@font-face {
  font-family: "Source Code";
  src: url("js/extra/SourceCodePro-Regular.otf") format("opentype")
}

@font-face {
  font-family: "Metro";
  src: url("js/extra/segoerg.otf") format("opentype")
}

@font-face {
  font-family: "Metro Light";
  src: url("js/extra/segoel.otf") format("opentype")
}


html,body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	background-color: #333;
	color: #EEE;
	font: 14px Tahoma;
}

h1 {
	font-family: "Metro Light";
	color: #DDD;
	font-size: 28px;
	padding-left: 10px;
	/*text-shadow: 0 1px 1px #333, 0 -1px 1px #777;*/
	margin: 0;
	font-weight: normal;
	display: inline-block;
	padding-right: 20px;
}

h1 span {
	font-family: "Arial";
	font-size: 0.5em;
	font-weight: normal;
	color: #AAA;
}

h2 {
	padding: 5px;
	margin-left: 10px;
}

#main {
	width: 1000px;
	min-height: 580px;
	margin: auto;
	background-color: #222;
	/*border-radius: 10px;*/
}

#main.fullscreen {
	width: 100%;
	height: 100%;
}

#header, #footer {
	position: relative;
	height: 40px;
	background-color: #333;
	/*border-radius: 10px 10px 0 0;*/
}


#header button {
	height: 32px;
	vertical-align: top;
}

#footer button {
	/*font-size: 16px;*/
}

.tools {
	position: absolute;
	top: 2px;
	vertical-align: top;
	margin: 2px 5px 0 0px;
}

.tools-inline {
	position: initial;
	top: auto;
	max-width: 50%;
}

.tools-left {
	right: auto;
	left: 4px;
}

.tools-right {
	left: auto;
	right: 4px;
}


#footer {
	height: 40px;
	position: relative;
	/*border-radius: 0 0 10px 10px;*/
}

#status {
	position: absolute;
	top: 10px;
	right: 10px;
	color: #FAA;
	font-size: 18px;
	padding: 5px;
	/*border-radius: 5px;*/
	width: -moz-calc( 50% - 30px);
	min-height: 30px;
	overflow: hidden;
	background-color: #644;
}

#help-message {
	padding: 2px;
	font-size: 0.8em;
	background-color: #464;
	/*border-radius: 2px;*/
}

#content {
	position: relative;
	min-height: 500px;
	overflow: hidden;
}

.fullscreen #content {
	min-height: -moz-calc(100% - 80px);
	min-height: -webkit-calc(100% - 80px);
	min-height: calc(100% - 80px);
}

#code, #tutorials, #network, #help, #download, #gallery, #share, #connect {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background-color: black;
}

#code, #tutorials, #network, #gallery, #share, #download, #connect {
	width: 500px;
	/*border-right: 1px solid #aaa;*/
}

#help, #tutorials, #gallery, #share, #download, #connect {
	z-index: 10;
}

#result {
	width: 100%;
	overflow: auto;
}

#help, .info-section {
	width: 100%; 
	overflow: auto;
}

.link {
	padding-left: 30px;
}

#link-to-creation, .link {
	color: #EEF;
	font-size: 2em;
}

.info-section .header {
	height: 30px;
	background-color: #222;
	overflow: hidden;
}

.info-section .header span {
	display: inline-block;
	font-size: 1.2em;
	padding-top: 6px;
	padding-left: 6px;
}

.info-section p {
	padding-left: 20px;
	margin: 2px;
}

.info-section strong {
	color: #FEA;
}

.info-section .content {
	height: calc( 100% - 30px );
	overflow: auto;
}


#visual {
	position: absolute;
	top: 0;
	left: 0;
	background-color: black;
	width: 100%;
	height: 100%;
}

button {
	/*font-family: "Metro Light";*/
	color: #CCC;
	font-size: 20px;
	min-width: 30px;
	/*border-radius: 0.3em;*/
	border: 0 solid #666;
	background-color: #3F3F3F;
	/*box-shadow: 0 0 3px black;*/
	padding: 4px 10px;
	line-height: 20px;
	cursor: pointer;
	transition: all 1s;
	-moz-transition: all 1s;
	-webkit-transition: all 0.4s;
}

button:hover {
	background-color: #999;
	color: #FFF;
	transition: all 1s;
	-moz-transition: all 1s;
	-webkit-transition: all 0.4s;
}

button:active {
	background-color: white;
}

button.fixed {
	position: absolute;
	right: 5px;
	font-size: 1.1em;
}

button img {
	margin: -4px;
	vertical-align: top;
}

#connect_button.connected {
	background-color: #AFA;
	color: #333;
}

#play_button {
	background-color: #446;
	margin-right: 30px;
}

#play_button:hover {
	background-color: #AAF;
}

.item-list .item {
	margin: 5px;
	padding: 5px;
	font-size: 1.2em;

	background-color: transparent;
	color: #999;
	padding-left: 5px;
	transition: background-color 300ms, color 300ms, padding-left 300ms;
	-moz-transition: background-color 300ms, color 300ms, padding-left 300ms;
	-webkit-transition: background-color 300ms, color 300ms, padding-left 300ms;
}

.item-list .item:hover {
	background-color: #33A;
	/*border-radius: 4px;*/
	color: white;
	padding-left: 15px;
	transition: background-color 300ms, color 300ms, padding-left 300ms;
	-moz-transition: background-color 300ms, color 300ms, padding-left 300ms;
	-webkit-transition: background-color 300ms, color 300ms, padding-left 300ms;
	cursor: pointer;
}

#gallery .item-list .item:hover {
	background-color: #A83;
}

.item-list .item strong {
	display: inline-block;
	width: 200px;
}

.form label {
	font-size: 1.2em;
	width: 200px;
	display: inline-block;
	text-align: right;
}

label {
	font-weight: bold;
	color: #AAF;
}

input,textarea { 
	color: #EEE;
	background-color: #555;
	font-size: 1.2em;
	border: 1px solid black;
	/*border-radius: 4px;*/
	padding: 2px;
	/*box-shadow: inset 0 0 3px #333; */
	font-family: Verdana;
	width: 250px;
}

textarea {
	vertical-align: top;
}

#visual canvas {
	cursor: crosshair;
}

.CodeMirror {
	/*font-family: Source Code !important;*/
	font-size: 15px;
	height: 100% !important;
}

.CodeMirror-scroll {
	height: 100%;
	background-color: transparent;
}

.CodeMirror-gutter {
	background-color: #444 !important;
	z-index: 0;
}

.CodeMirror-hints {
	background-color: black;
	color: #AAA;
	border-radius: 0;
	border: 0;
}

span.CodeMirror-matchhighlight { background: rgba(50,50,80,0.5); border-radius: 2px; outline: 1px solid #889; }


.cm-s-blackboard .cm-keyword {
    color: #6666FF !important;
}

.cm-s-blackboard .cm-string {
    color: #FF88FF !important;
}


.cm-s-blackboard .cm-def {
    color: #AAFFAA  !important;
}

.cm-s-blackboard .cm-variable {
    color: #AAAAFF !important;
}

.cm-s-blackboard .cm-property {
    color: #AAAAAA !important;
}

.cm-s-blackboard .cm-variable-2 {
    color: #B99 !important;
}


.form button {
	font-size: 1em;
}



#block-app {
	width:100%;
	height:100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.5);
	text-align: center;
	z-index: 100;
}

#block-app span {
	display: block;
	font-size: 30px;
	margin: auto;
	margin-top: 300px;
}

#block-app span a {
	display: inline-block;
	/*border-radius: 4px;*/
	text-decoration: none;
	color: black;
	background-color: red;
	padding: 0 4px 0 4px;
}

::-webkit-scrollbar {
    height: 12px;
	width: 6px;
	background: #222;
}
::-webkit-scrollbar-thumb {
    background: rgba(200,200,200,0.4);
}
::-webkit-scrollbar-corner {
    background: #766;
}

.user_cursor {
	background-color: #FFA;
	color: black;
}

.end_cursor {
	background-color: green;
	color: black;
}

