/** Bootstrap 2 custom **/

.modal label, 
.modal input, 
.modal button, 
.modal select, 
.modal textarea {
	font-size: 13px;
	font-weight: normal;
	line-height: 18px;
}

.modal-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 200000;
	background-color: #000000;
	opacity: 0.8;
	filter: alpha(opacity=80);
}

.modal {
	position: fixed;
	top: 56%;
	left: 50%;
	z-index: 200010;
	max-height: 500px;
	overflow: visible;
	width: 590px;
	margin: -250px 0 0 -280px;
	background-color: #FFEFC7;
	border: 1px solid #BFB395;
	border: 1px solid rgba(0, 0, 0, 0.3);
	*border: 1px solid #BFB395;
	/* IE6-7 */

	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
	-webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
	-moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
	box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
	-webkit-background-clip: padding-box;
	-moz-background-clip: padding-box;
	background-clip: padding-box;
}

.modal:focus  {
	outline: 0;
}

.modal-header {
	padding: 4px 19px;
	border-bottom: 1px solid #E6D3A7;
	background-color: #FCE8B9;
	color: #333;
	height: 25px;
	
	-webkit-border-top-left-radius: 3px;
	-webkit-border-top-right-radius: 3px;
	-moz-border-radius-topleft: 3px;
	-moz-border-radius-topright: 3px;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
}

.modal-body {
	padding: 15px;
	margin: 0 20px;
	font-size: 12px;
}

.modal-footer {
	padding: 14px 35px 25px;
	margin-bottom: 0;
	background-color: #FCE8B9;
	border-top: 1px solid #E6D3A7;
	-webkit-border-bottom-left-radius: 3px;
	-webkit-border-bottom-right-radius: 3px;
	-moz-border-radius-bottomleft: 3px;
	-moz-border-radius-bottomright: 3px;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
	*zoom: 1;
	text-align: center;
}
.modal-footer:before, .modal-footer:after {
	display: table;
	content: "";
}

.modal-footer:after {
	clear: both;
}

.modal-footer .btn, .modal-footer .tbutton {
  margin-left: 5px;
  margin-bottom: 0;
}

/** Tentlan **/

.modal > .windowTitleBar,
.modal > .dialogBorder,
.modal > .dialogCorner {
	cursor: initial;
}

.windowTitleBar  {
	position: absolute;
	top: -6px;
	left: -7px;
	
	width: 979px;
	height: 37px;
	background-image: url(../../img/titlebar_back.png);
	background-repeat: no-repeat;
	cursor: move;
}

.windowTitleBar.tutorial {
	background-image: url(../../img/titlebartutorial_back.png);
	height: 40px;
	width: 634px;
}

.windowTitleBar.tutorial.modalmode {
	width: 595px;
}

.titleBarNameContainer {
	position: absolute;
	left: 215px;
	top: 6px;
	height: 22px;
	width: 515px;
	color: white;
	text-align: center;
	overflow: hidden;
	font-size: 11px;
	font-weight: bold;
	text-shadow: 0px 1px 0px black;
}

.tutorial > .titleBarNameContainer {
	left: 137px;
	width: 315px;
}

.titleBarControlsContainer {
	position: absolute;
	left: 885px;
	top: -1px;
	height: 22px;
	width: 60px;
	z-index: 10;
}

.titleBarControlsContainer.modalmode {
	left: 524px;
	width: 40px;
}

.titleBarControlsContainer.modalmode > .windowCloseButton {
	width: 40px;
}

.titleBarControlsContainer.modalmode .titleBarControl.wclose {
	margin-left: 10px;
}

.titleBarControlContainer:hover > .titleBarControl.wclose {
	background-position: -0px -12px;
}

.titleBarControlContainer {
	float: left;
	cursor: pointer;
	width: 30px;
	height: 20px;
	overflow: hidden;
}

.titleBarControl {
	background-image: url(../../img/titlebar_controls.png);
	background-repeat: no-repeat;
}

.titleBarControl.wclose {
	margin-top: 6px;
	margin-left: 2px;
	width: 10px;
	height: 9px;
	background-position: -0px -0px;
}

.windowTitleBarPadding {
	position: relative;
	height: 9px;
}

.dialogBorder.top { background:url(../../img/dborder_h.png) repeat; height: 15px; position: absolute; width: 100%; top: -5px; left: 0px; }
.dialogBorder.bottom { background:url(../../img/dborder_h.png) repeat; height: 15px; position: absolute; width: 100%; bottom: -5px; left: 0px; }
.dialogBorder.left { background:url(../../img/dborder_v.png) repeat; width: 15px; position: absolute; height: 100%; left: -5px; top: 0px; }
.dialogBorder.right { background:url(../../img/dborder_v.png) repeat; width: 15px; position: absolute; height: 100%; right: -5px; top: 0px; }

.dialogCorner.topleft {
	width: 43px; height: 51px; background:url(../../img/dcorners.png) no-repeat -0px -0px;
	position: absolute; top: -12px; left: -11px;
}

.dialogCorner.topright {
	width: 51px; height: 43px; background:url(../../img/dcorners.png) no-repeat -0px -51px;
	position: absolute; top: -12px; right: -11px;
}

.dialogCorner.bottomleft {
	width: 50px; height: 43px; background:url(../../img/dcorners.png) no-repeat -0px -94px;
	position: absolute; bottom: -12px; left: -11px;
}

.dialogCorner.bottomright {
	width: 44px; height: 51px; background:url(../../img/dcorners.png) no-repeat -0px -137px;
	position: absolute; bottom: -12px; right: -11px;
}

.tbutton {
	cursor: pointer;
}

.tbutton.primary {
	-moz-box-shadow:inset 0px 1px 0px 0px #c76d52;
	-webkit-box-shadow:inset 0px 1px 0px 0px #c76d52;
	box-shadow:inset 0px 1px 0px 0px #c76d52;
	background-color: #B65D42;
	border:1px solid #7a4231;
	display:inline-block;
	color:#ffffff;
	padding: 4px 13px;
	text-decoration:none;
	font-size: 12px;
	-webkit-box-shadow: inset rgba(255, 254, 255, 0.3) 0 0.1em .4em, inset rgba(0, 0, 0, 0.15) 0 -0.1em .1em, /* inner shadow */ 
						rgba(0, 0, 0, 0.4) 0 1px 0px, rgba(0, 0, 0, 0.4) 0 .1px 0px; /* color border */ 
						
		-moz-box-shadow: inset rgba(255,254,255,0.3) 0 0.1em .4em, inset rgba(0,0,0,0.15) 0 -0.1em .1em,  /* inner shadow */ 
						 rgba(0, 0, 0, 0.4) 0 1px 0px, rgba(0, 0, 0, 0.4) 0 .1px 0px; /* color border */ 
			
			box-shadow: inset rgba(255, 254, 255, 0.2) 0 0.1em .4em, inset rgba(0, 0, 0, 0.15) 0 -0.1em .1em, /* inner shadow */ 
						rgba(0, 0, 0, 0.4) 0 1px 0px, rgba(0, 0, 0, 0.4) 0 .1px 0px; /* color border */
}

.tbutton.primary:hover,
.tbutton.primary.hover {
	background-color: #964E39;
	color:#ffffff;
	text-decoration:none;
}

.tbutton.primary:active {
	position:relative;
	top:1px;
	color:#ffffff;
	text-decoration:none;
}

.tbutton.primary.disabled {
	-moz-box-shadow: inset 0px 1px 0px 0px #CA9383;
	-webkit-box-shadow: inset 0px 1px 0px 0px #CA9383;
	box-shadow: inset 0px 1px 0px 0px #CC9382;
	background-color: #B98778;
	border: 1px solid #775449;
	color: #DADADA;
}

.tbutton.standard {
	-moz-box-shadow:inset 0px 1px 0px 0px #c76d52;
	-webkit-box-shadow: inset 0px 1px 0px 0px #F3EDDF;
	box-shadow: inset 0px 1px 0px 0px #F3EDDF;
	background-color: #F5E2B2;
	border: 1px solid #CABB96;
	display:inline-block;
	color: black;
	padding: 4px 13px;
	text-decoration:none;
	font-size: 12px;
	-webkit-box-shadow: inset rgba(255, 254, 255, 0.3) 0 0.1em .4em, inset rgba(0, 0, 0, 0.15) 0 -0.1em .1em, /* inner shadow */ 
						rgba(0, 0, 0, 0.4) 0 1px 0px, rgba(0, 0, 0, 0.4) 0 .1px 0px; /* color border */ 
						
		-moz-box-shadow: inset rgba(255,254,255,0.3) 0 0.1em .4em, inset rgba(0,0,0,0.15) 0 -0.1em .1em,  /* inner shadow */ 
						 rgba(0, 0, 0, 0.4) 0 1px 0px, rgba(0, 0, 0, 0.4) 0 .1px 0px; /* color border */ 
			
			box-shadow: inset rgba(255, 254, 255, 0.2) 0 0.1em .4em, inset rgba(0, 0, 0, 0.15) 0 -0.1em .1em, /* inner shadow */ 
						rgba(0, 0, 0, 0.4) 0 1px 0px, rgba(0, 0, 0, 0.4) 0 .1px 0px; /* color border */
}

.tbutton.standard:hover,
.tbutton.standard.hover {
	background-color: #DFCDA1;
	color: black;
	text-decoration:none;
}

.tbutton.standard:active {
	position: relative;
	top: 1px;
	text-decoration: none;
}

.tbutton.standard.disabled {
	background-color: #F5E2B2;
}