		@font-face { font-family: MyDefaultFont; src: url(fonts/DejaVuSansCondensed.ttf); }
		@font-face { font-family: MyDefaultFontBold; src: url(fonts/DejaVuSansCondensed-Bold.ttf); }
	
		body { padding:0; margin:0; font-family: MyDefaultFont; }
		header { position:fixed; top: 0; left: 0; right: 0; background-color:white;  font-size: 14px; background-color: #eee; 
			border-bottom: 1px solid rgba(0,0,32,0.4); background: linear-gradient(to bottom, #cccccc 0%,#bbbbbb 100%); }
		div.titlebar { padding: 0; margin: 0; text-align: center;  background-color: rgb(0,0,50); color: white; overflow: hidden; }
		div.titlebar h1 { font-size: 15px; font-family: MyDefaultFontBold; padding: 4px; margin: 0; }
		div.titlebar div.titlebtn { float: right; display: inline-block; position: fixed; top: 0; right: 0; padding: 5px 12px; background-color: rgba(0,0,128,1); cursor: default; }
		div.titlebar div.titlebtn:hover { background-color: rgba(0,0, 255, 1); }
		
		div.toolbar { display: inline-block; float: left; padding: 0 8px; border-left: 1px solid #999; border-right: 1px solid #999; margin-left: -1px; }
		div.area { position: fixed; left: 0; right:300px; bottom: 0; }
		div.sidebar { position: fixed; width: 300px; top: 110px; right: 0; bottom: 0; background-color: #eee; box-shadow: 0 0 2px #222; }
		
		
		div.button { display:inline-block; height: 22px; padding: 7px 7px; padding-bottom: 0; min-width: 15px;
			color: navy; border: 1px solid rgba(0,0,32,0.5); margin: 7px 2px 7px 0; font-size: 13px; float: left; text-align: center; border-radius: 2px; 
			background-color: white; background-repeat: no-repeat; background-position: center; }
		div.button-sel { cursor:default; background-color: #fe8; }
		div.button:hover { cursor:default; box-shadow: 0 0 0 1px rgba(0,0,64,1); }
		div.button:active { cursor:default; box-shadow: 0 0 0 1px rgba(0,0,64,1); }
		
		
		div.label { display:inline-block; height: 22px; padding: 7px 4px 0 5px; padding-bottom: 0; font-size:13px; float: left; margin: 7px 3px 0 0; }
		div.colorbutton { font-family: MyDefaultFontBold; margin-right: 4px; padding: 5px 4px 0 4px; height: 23px;  color: white; background: none; min-width: 20px; font-size: 15px;
			text-shadow: -1px 0 rgba(0,0,0,0.5), 0 1px rgba(0,0,0,0.5), 1px 0 rgba(0,0,0,0.5), 0 -1px rgba(0,0,0,0.5);
			box-shadow:inset 0px 0px 0px 1px rgba(255,255,255,0.1); }

		div.needlebutton_sel { box-shadow: 0 0 0 2px white, 0 0 0 3px black,; } 	
		div.needlebutton_sel:hover { box-shadow: 0 0 0 2px white; } 
		div.needlebutton_mod { box-shadow: 0 0 0 2px black, 0 0 0 3px black; } 	
		div.needlebutton_mod:hover { box-shadow: 0 0 0 2px black, 0 0 0 3px black; } 
			
		div.segment { font-size: 13px; padding: 4px; border-bottom: cursor: default; background-color: white; cursor: default; border-bottom: 1px solid #ddd;}
		div.segment:hover { background-color: #ccf; } 
		div.segment_selected { background-color: black; color: white; }
		div.segment_selected:hover { background-color: navy; color: white; }
		span.segment_no { display: inline-block; width: 30px; text-align: right; }
		span.segment_stitch { display: inline-block; width: 75px; text-align: right; }
		span.segment_length { display: inline-block; width: 75px; text-align: right; }
		span.segment_color { display: inline-block; width: 60px; text-align: right; }
		span.segment_swatch { display: inline-block; width: 80%; background-color: silver; color: black; margin-left: 10px; box-shadow: 0 0 0 1px silver; text-align: center; font-size: 14px; font-weight: bold; text-shadow: -1px 0 rgba(255,255,255,0.5), 0 1px rgba(255,255,255,0.5), 1px 0 rgba(255,255,255,0.5), 0 -1px rgba(255,255,255,0.5); }
		span.segment_stop { display: inline-block; width: 80%; margin-left: 10px; box-shadow: 0 0 0 1px silver; text-align: center; font-weight: bold; font-size: 14px; }
	
	
		div.window h1 { background: none; color: black; font-size: 24px; }
		div.window { position: fixed; top: 100px; width: 450px; background-color: white; padding: 20px; box-shadow: 0 0 0 4px rgba(0,0,64,0.7); border-radius: 5px; }
		div.window input.button, button.button { padding: 8px 16px; font-size: 16px; }
		button.download_button { padding: 4px; font-size: 18px; color: blue; width: 100px; margin: 4px 0;  }
		button.download_button big { font-weight: bold; font-size: 22px; }
		
		div.menu { position: fixed; background-color: white; padding: 0; box-shadow: 1px 1px 5px black; }
		div.menuitem { display: block; text-decoration: none; padding: 4px 10px; margin: 0; color: navy; cursor: default; }
		div.menuitem:hover { background-color: #ccf; }
		
		
		.selectionbar { position: absolute; right: 0; left: 0; padding: 4px; text-align: center; background-color: rgba(32,0,0, 0.8); border: 0; font-size: 14px; color: white; }
		.infobar { background-color: rgba(0,0,32, 0.8); color: white; text-align: center; display: block; right: 0; left: 0; bottom: 0; position: absolute; font-size: 13px; text-shadow: 1px 1px 2px black; }
		.infobar-item { display: inline-block; padding: 6px 12px; border-right: 1px solid rgba(255,255,255, 0.2); color: rgba(255,255,255,0.6); }
		.infobar-value { color: white; }
		
		
		.noselect { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
		
		.colorbox { border: 4px solid black; background-color: white; min-width: 390px; box-shadow: 0; }