/*
 * Fonts
 */


@font-face {
	font-family: 'WINMenu';
	font-style: normal;
	font-weight: 400;
	src: url('../woff/WINMenu.woff') format('woff');
}
@font-face {
	font-family: 'WINDialog';
	font-style: normal;
	font-weight: 400;
	src: url('../woff/WINDialog.woff') format('woff');
}

@font-face {
	font-family: 'PragmataFlash12';
	font-style: normal;
	font-weight: 400;
	src: url('../woff/PragmataFlash12.woff') format('woff');
}

@font-face {
	font-family: 'micross';
	font-style: normal;
	font-weight: 400;
	src: url('../woff/micross.woff') format('woff');
}

/*
 * General elements
 */

::selection {
	background: #0514A7 !important;
	color: #FFF;
}
::-moz-selection {
	background: #0514A7;
	color: #FFF;
}

* {
	-webkit-font-smoothing: none;
	image-rendering: optimizeSpeed;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: optimize-contrast;
	-ms-interpolation-mode: nearest-neighbor;
	-webkit-user-select: none;
	user-select: none;
	-moz-user-select: none;
	cursor: default;
	outline: none;
}

html {
	margin: 0;
	padding: 0;
}

body {
	background: #4BA0A0;
	margin: 0;
	padding: 0;
	font-family: 'micross' !important;
	overflow: hidden;
	position: fixed !important;
	z-index: 0;
	width: 100%;
	height: 100%;
}

textarea {
	font-family: 'micross' !important;
	-webkit-user-select: text;
	user-select: text;
	-moz-user-select: text;
	cursor: text;
}

li a {
	color: #000;
	text-decoration: none;
}

.full-width-hack {
	padding-right: 20px;
}

/*
 * Taskbar
 */

#taskBar {
	background: #C3C7CB;
	height: 20px;
	padding: 3px 0;
	border-top: 1px solid #FFF;
	box-shadow: 0 -1px #C3C7CB;
	width: 100%;
	position: fixed;
	bottom: 0;
	z-index: 1;
}

#taskBar #startButton {
	width: 52px;
	height: 19px;
	border-top: 1px solid #FFFFFF;
	border-left: 1px solid #FFFFFF;
	border-right: 1px solid #030303;
	border-bottom: 1px solid #030303;
	box-shadow: inset -1px -1px #777777;
	margin-left: 3px;
	float: left;
}

#taskBar #startButton[data-open=true] {
	background: #C3C7CB;
	border-top: 2px solid #000;
	border-left: 2px solid #000;
	border-right: 1px solid #FFF;
	border-bottom: 1px solid #FFF;
	box-shadow: none;
}

#taskBar #startButton img {
	width: 16px;
	height: auto;
	margin: 2px 0 0 2px;
	float: left;
}

#taskBar #startButton span.startButtonText {
	margin: 1px 0 0 2px;
	display: inline;
	float: left;
	font-size: 18px;
	font-family: 'WINDialog';
}

#taskBar #startButton span.startButtonDotted:active {
	border: 1px dotted #000;
	width: 52px;
	height: 10px;
}

#taskBar #taskBarItems {
	margin-left: 62px;
}

#taskBar .taskBarItem {
	width: 152px;
	height: 13px;
	padding: 2px 3px 3px 3px;
	background-color: #C3C7CB;
	border-top: 1px solid #FFF;
	border-left: 1px solid #FFF;
	border-right: 1px solid #000;
	border-bottom: 1px solid #000;
	box-shadow: inset -1px 0 #868A8E, inset 0 -1px #868A8E;
	margin-left: 3px;
	float: left;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

#taskBar .taskBarItem:active {
	border-top: 1px solid #000;
	border-left: 1px solid #000;
	border-right: 1px solid #FFF;
	border-bottom: 1px solid #FFF;
	box-shadow: inset 1px 0 #868A8E, inset 0 1px #868A8E, inset -1px 0 #C3C7CB, inset 0 -1px #C3C7CB;
}

#taskBar .taskBarItem[data-status=selected] {
	background-image: url('../img/ui/taskBarItem.png');
	border-top: 1px solid #000;
	border-left: 1px solid #000;
	border-right: 1px solid #FFF;
	border-bottom: 1px solid #FFF;
	box-shadow: inset 1px 0 #868A8E, inset 0 1px #868A8E, inset -1px 0 #C3C7CB, inset 0 -1px #C3C7CB;
}

#taskBar .taskBarItem img {
	width: 16px;
	height: 16px;
}

#taskBar .taskBarItem span {
	margin: 0 0 0 3px;
	position: relative;
	bottom: 4px;
	font-family: 'WINDialog';
	font-size: 18px;
}

#taskBar .taskBarItem[data-status=selected] span {
	position: relative;
	bottom: 3px;
}

#taskBar #clock {
	width: 61px;
	height: 19px;
	border-top: 1px solid #777777;
	border-left: 1px solid #777777;
	border-right: 1px solid #FFFFFF;
	border-bottom: 1px solid #FFFFFF;
	float: right;
	text-align: center;
	margin-right: 3px;
}

#taskBar #clock span {
	font-family: 'PragmataFlash12';
	font-size: 11px;
}

/*
 * Start menu
 */

#startMenu {
	width: 160px;
	height: 235px;
	background: #C3C7CB;
	box-shadow: 2px 2px 1px #362B2B;
	border-top: 2px solid #F9F9F9;
	border-left: 2px solid #F9F9F9;
	position: absolute;
	left: 2px;
	bottom: 26px;
	z-index: 6;
	display: none;
}

#startMenu #startMenuLeft {
	background: #808080;
	width: 21px;
	height: 100%;
	background-image: url('../img/ui/startMenuLeft.png');
	background-repeat: no-repeat;
	background-position: left bottom;
	float: left;
	display: inline;
}

#startMenu #startMenuRight {
	float: left;
	display: inline;
	list-style: none;
	width: 137px;
	padding: 0;
	margin: 0;
}

#startMenu #startMenuRight li {
	height: 24px;
	padding: 2px 0 6px 5px;
	font-size: 11px;
	margin: 0;
}

#startMenu #startMenuRight li:hover {
	background: #0514A7;
	color: #FFF !important;
}

#startMenu #startMenuRight li img {
	width: 32px;
}

#startMenu #startMenuRight li a {
	vertical-align: 13px;
	margin-left: 5px;
	display: inline-block;
}

#startMenu #startMenuRight li .startMenuArrow {
	font-size: 8px;
	text-align: right;
	float: right;
	margin: 7px 4px 0 0;
}

#startMenu #startMenuRight hr {
	margin: 4px 0 3px 0;
}

/*
 * Desktop
 */

#desktopIcons {
	position: absolute;
	top: 0;
	left: 0;
}

#desktopIcons .icon {
	float: none;
}

#desktopIcons .icon span {
	color: #FFF;
}

.icon {
	width: 80px;
	height: 60px;
	padding: 10px;
	z-index: 1;
	float: left;
}

.icon img {
	margin: 0 auto;
	display: block;
	padding: 0 0 5px 0;
	width: 32px;
	height: 32px;
}

.icon span {
	display: block;
	border: 1px solid transparent;
	text-align: center;
	font-size: 11px;
	margin: 0 auto;
	text-overflow: ellipsis;
	overflow: hidden;
}

.icon textarea {
	width: 75px;
	height: 1em;
	text-align: center;
	font-size: 11px;
	display: none;
	margin: 0 auto;
	resize: none;
	min-height: 1em;
	color: #000;
	border: 1px solid #000;
	padding: 1px 2px;
	outline: none;
	overflow: hidden;
	background: #FFF;
}

.icon[data-status=selected] img {
}

.icon[data-status=selected] span {
	background: #0514A7;
	border: 1px dotted #FFFF03;
	color: #FFF;
}

.icon[data-status=dragging] img {
	opacity: 0.5;
}

.icon[data-status=dragging] span {
	color: #000;
}

/*
 * Window elements
 */

.window {
	width: 300px;
	height: 200px;
	background: #C3C7CB;
	margin: 10px;
	border-top: 1px solid #FFF;
	border-left: 1px solid #FFF;
	border-right: 1px solid #7B7F83;
	border-bottom: 1px solid #7B7F83;
	box-shadow: 1px 0 #000000, 0 1px #000000, 0 -1px #C3C7CB, -1px 0 #C3C7CB;
	padding: 2px 3px;
	position: absolute;
	z-index: 4;
	left: 90px;
	top: 50px;
	min-width: 200px;
	min-height: 60px;
}

.window[data-status=selected] {
	z-index: 5;
}

.windowTitleBar {
	background: #7B7F83;
	width: 100%;
	height: 16px;
	padding: 1px 0;
	margin: 0;
	text-align: left;
}

*[data-status=selected] .windowTitleBar {
	background: #0514A7;
}

.windowTitleBar img {
	margin-left: 3px;
	width: 16px;
	height: auto;
	float: left;
}

.windowTitleBar span {
	color: #FFF;
	font-family: 'WINDialog';
	font-size: 17px;
	position: relative;
	bottom: 0px;
	left: 4px;
	width: 60%;
	float: left;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.windowTitleBarButtons {
	float: right;
	margin: 0 3px 0 0;
	position: relative;
	bottom: 1px;
}

.windowTitleBarButtons div {
	width: 13px;
	height: 11px;
	border-top: 1px solid #FFF;
	border-left: 1px solid #FFF;
	border-right: 1px solid #7B7F83;
	border-bottom: 1px solid #7B7F83;
	box-shadow: 1px 1px #000;
	display: inline-block;
	background-color: #C3C7CB;
	background-repeat: no-repeat;
}

.windowTitleBarButtons div[data-status=enabled]:active {
	box-shadow: inset 1px 0 #7B7F83, inset 0 1px #7B7F83;
	border-top: 1px solid #000;
	border-left: 1px solid #000;
	border-right: 1px solid #FFF;
	border-bottom: 1px solid #FFF;
	background-position: 1px 1px;
}

.windowTitleBarMinimize {
	background-image: url('../img/ui/minimize.png');
}

.windowTitleBarMaximize {
	background-image: url('../img/ui/maximize.png');
	margin-left: 1px;
}

.windowTitleBarClose {
	background-image: url('../img/ui/close.png');
	margin-left: 2px;
}

.windowTitleBarClose[data-status=disabled] {
	background-image: url('../img/ui/closeDisabled.png');
}

.windowMenuBar {
	width: 100%;
	padding: 0;
	margin: 0;
}

.windowMenuBar li {
	list-style: none;
	font-size: 11px;
	display: inline-block;
	padding: 2px 3px;
}

.windowMenuBar li[data-open=true] {
	background: #0514A7;
}

.windowMenuBar li[data-open=true] a {
	color: #FFF !important;
}


/*
 * Explorer
 */

.explorer .explorerContents {
	background: #FFF;
	box-shadow: inset 1px 0 #000, inset 0 1px #000, 1px 0 #FFF, 0 1px #FFF;
	border-top: 1px solid #7B7F83;
	border-left: 1px solid #7B7F83;
	border-right: 1px solid #C3C7CB;
	border-bottom: 1px solid #C3C7CB;
	overflow: hidden;
}

.explorer .explorerStatusBar {
	height: 13px;
	padding: 3px 0 1px 0;
	width: 100%;
	font-size: 11px;
}

.explorer .explorerStatusBar span {
	display:block;
	margin: 2px 0 0 3px;
}

.explorer .explorerStatusBarLeft {
	width: 142px;
	height: 15px;
	background: #C3C7CB;
	border-top: 1px solid #7B7F83;
	border-left: 1px solid #7B7F83;
	border-right: 1px solid #FFF;
	border-bottom: 1px solid #FFF;
	float: left;
}

.explorer .explorerStatusBarRight {
	width: 200px;
	float: left;
	margin-left: 2px;
	height: 15px;
	background: #C3C7CB;
	border-top: 1px solid #7B7F83;
	border-left: 1px solid #7B7F83;
	border-right: 1px solid #FFF;
	border-bottom: 1px solid #FFF;
}

/*
 * Dialog box
 */

.dialogBox {
	text-align: center;
}

.dialogBox .dialogBoxContents {
	min-height: 60px;
}

.dialogBox .dialogBoxContents img {
	margin: 12px 0 12px 12px;
	float: left;
}

.dialogBox .dialogBoxContents span {
	font-size: 11px;
	margin: 21px 9px 0 9px;
	display: block;
	text-align: center;
	float: left;
}

.dialogBox .dialogBoxButtons {
	display: inline-block;
	margin: 0 auto;
}

.dialogBox .dialogBoxButtons div {
	width: 69px;
	height: 18px;
	font-size: 11px;
	background: #C3C7CB;
	box-shadow: inset -1px 0 #757575, 0 0 0 1px #000, 1px 0 #000;
	border-top: 1px solid #FFF;
	border-left: 1px solid #FFF;
	border-right: 1px solid #000;
	border-bottom: 1px solid #000;
	text-align: center;
	display: inline-block;
	margin-right: 8px;
}

.dialogBox .dialogBoxButtons div:active {
	box-shadow: 0 0 0 1px #000;
	border: 1px solid #7B7F83;
	position: relative;
	top: 2px;
}

.dialogBox .dialogBoxButtons div span {
	/*border: 1px dotted #000;*/
	width: 90%;
	display: block;
	margin: 2px auto 0 auto;
}

.dialogBox .dialogBoxButtons div:active span {
	border: 1px dotted #000;
	margin: 3px auto 0 auto;
	position: relative;
	left: 1px;
}