@font-face {
    font-family: 'Marathon';
    src: url('Marathon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BayeuxRegular1';
    src: url('Bayeux-Regular1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BayeuxRegular2';
    src: url('Bayeux-Regular2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BayeuxRegular3';
    src: url('Bayeux-Regular3.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BayeuxRegular4';
    src: url('Bayeux-Regular4.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

div {
	margin: 0;
	padding: 0;
}

body {
	background: #ffffcc;
	background: -moz-linear-gradient(top, #ffffcc, #fff);
    background: -webkit-gradient(linear, left top, right top, from(#fff), to(#ffffcc));
    margin: 0;
    padding: 0;
    font: 13px helvetica,arial,clean,sans-serif;
}

header {
	display: block;
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	margin: 0 0 0 0;
	padding: 0;
	/*color: #2678ff;*/
	color: #3688ff;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.78);
	background: black;
	background: -moz-linear-gradient(top, #747474 0%, #575757 4%, #242424 41%, #000000 42%, #383838 91%, #383838 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#747474), color-stop(4%,#575757), color-stop(41%,#242424), color-stop(42%,#000000), color-stop(91%,#383838), color-stop(100%,#383838)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #747474 0%,#575757 4%,#242424 41%,#000000 42%,#383838 91%,#383838 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #747474 0%,#575757 4%,#242424 41%,#000000 42%,#383838 91%,#383838 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #747474 0%,#575757 4%,#242424 41%,#000000 42%,#383838 91%,#383838 100%); /* IE10+ */
	background: linear-gradient(top, #747474 0%,#575757 4%,#242424 41%,#000000 42%,#383838 91%,#383838 100%); /* W3C */
}

header:after {
    background-image: url("white-gears-22px.png");
    background-position: 6px 9px;
    background-repeat: no-repeat;
    border-left: 1px solid #444;
    color: white;
    content: "▾";
    display: block;
    float: right;
    width: 48px;
    height: 38px;
    line-height: 54px;
    margin: -38px 0 0;
    padding: 0;
    text-indent: 30px;
    vertical-align: bottom;
}


header h1{
	display: block;
	position: relative;
    top: -0.15em;
	left: auto;
	right: auto;
	width:  1120px;
	margin: 0.1em auto auto auto;
	font-weight: 300;
	font-size: 2em;
	letter-spacing:2px;
	text-indent: -5px;
	text-shadow: -1px -1px 1px #000000;
}

header h1 span {
	font-family: arial, helvetica, clean, sans-serif;
	clear: none;
	display: inline-block;
	text-decoration: underline;
	margin-left: -4px;
	font-weight: 900;
	font-size: 14px;
	letter-spacing: 0px;
	vertical-align: 0.9em;
	color: #666;
	-webkit-transform:rotate(-15deg);
	-moz-transform:rotate(-15deg);
	-o-transform:rotate(-15deg);
	-ms-transform:rotate(-15deg);
	transform: rotate(-15deg);
}

#maincontent {
	overflow: auto;
	/*height: 602px;*/
	position: relative;
	left: auto;
	right: auto;
	top: 0;
	margin: 2em auto 0 auto;
	padding: 3px;
	border: 1px solid #bbb;
	background: #efefef;
	max-width: 1130px;
}


#bayeux-region {
	width:  900px;
	height: 600px;
	background-image: url("background.jpg");
	border: 1px solid #a0a0a0;
	overflow: hidden;
	margin: 0;
	padding: 0;
	float: left; 
	clear: none;
}


#gallery {
	float: left;
	clear: none;
	margin-left: 6px;
	background: #dadada;
	border: 1px solid #bbb;
	max-height: 602px;
}

#gallery h2 {
	text-align: center;
	font-size: 90%;
	font-weight: 500;
	width: 210px;
	padding: 0 auto;
	margin: 3px auto;
}


#gallery a {
	float: left;
	clear: both;
}


#gallery a img {
	width: 200px;
	margin: 0 6px;
}

#description {
    background: none repeat scroll 0 0 white;
    border: 1px solid #BBBBBB;
    clear: both;
    float: left;
    margin-top: 8px;
    padding: 3px 12px;
    width: 902px;
}

#javascript-required {
	height: 600px;
	width: 600px;
	margin-left: 300px;
	color: red;
	padding-top: 200px;
}

.htck-panel {
	position: relative;
	top: 0;
	left: 0;
	display: none;
	margin: 0;
	padding: 0;
}

.toolsection {
	position: relative;
	top: 35px;
	left: 0;
	width: 225px;
	height: 600px;
}

.toolsection img {
	float: left;
	margin-top: 0;
	margin-left: 0;
}

.toolsection span {
	float: left;
	margin: 0;
	padding: 0;
}

#bayeux-footer {
	position: absolute;
	top: 569px;
	left: 229px;
	bottom: auto;
	right: auto;
}

#bayeux-start-eh-branding {
	display: none;
    left: 140px;
    position: relative;
    top: -406px;
}



#bayeux-canvas {
	position: absolute;
	top: 0px;
	left: 225px;
	margin: 0;
	padding: 0;
	font-size: 36px;
	text-transform: uppercase;
	overflow: hidden;
	width: 675px;
	height: 570px;
}

#bayeux-canvas img.canvas-img {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	bottom: auto;
}

.bayeux-button {
	cursor:pointer;
}

#lightbox {
	display: none;
	background-color: rgba(0, 0, 0, 0.8);
	background-image: url('loader-animation.gif');
	background-repeat: no-repeat;
	background-position: center;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	margin: 0;
	overflow: hidden;
	width: auto;
	height: auto;
}

#lightbox .lightbox-frame {
	box-shadow: 0 0 25px 2px rgba(0, 0, 0, 0.86);
    height: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -300px;
    position: relative;
    top: 50%;
    width: 685px;
}

#lightbox .lightbox-frame:hover {
	box-shadow: 0 0 25px 2px rgba(0, 0, 0, 0.86), 0px 0px 15px 2px rgba(200, 200, 50, 0.5);
}


#lightbox .lightbox-frame img.result {
	border-radius: 7px;
}

.lightbox-frame .innershadow {
	border-radius: 7px;
    box-shadow: 0 0 30px 5px rgba(30, 10, 0, 0.6) inset;
    height: 600px;
    position: relative;
    top: -603px;
    width: 685px;
}

.close-lightbox {
	left: 663px;
    position: absolute;
    top: -20px;
}

div.submit:before {
	content:url("start/horiz_div_toolstop.png");
	position: relative;
    top: -30px;
}

div.submit {
    background: rgba(120, 0, 0, 0.2);
    bottom: auto;
    bottom: 0;
    font-family: 'BayeuxRegular2';
    font-size: 30px;
    height: 53px;
    margin: 0;
    padding: 8px 0 0;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: 544px;
    width: 220px;
    cursor: pointer;
}

div.submit span {
	position: relative;
    top: -35px;
}

div.submit span:nth-child(1) {
    color: #69403E;
}

div.submit span:nth-child(2) {
    color: rgba(80, 0, 0, 0.5);
}

div.submit span:nth-child(3) {
    color: #111;
}

div.submit span:nth-child(4) {
    color: #492028;
    opacity: 0.8;
}

div.submit span:nth-child(5) {
    color: #000;
}

div.submit span:nth-child(6) {
    color: #222;
}

/*################### intro panel ###############*/

#bayeux-intro {
	display: block;
}

#intro-region {
	display: none;
}

#intro-lions {
	position: absolute;
	top: -130px;
	left: 15px;
	width: 626px;
	height: 147px;
	background-image: url("intro/lions-sprite.png");
	/*background: #102000;*/
	opacity: 0.2;
	-webkit-transition: top 1.5s;
	-moz-transition: top 1.5s;
}

#intro-lions.finalpos {
	top: 600px;
}

#intro-sitting_king {
	position: absolute;
	top: 530px;
	left: 203px;
	width: 237px;
	height: 516px;
	background-image: url("intro/king-sprite.png");
	/*background: #646010;**/
	opacity: 0.23;
	-webkit-transition: top 1.5s;
	-moz-transition: top 1.5s;
}

#intro-sitting_king.finalpos {
	top: -550px;
}


#first-knight {
	position: absolute;
	top: 52px;
	left: 680px;
	width: 510px;
	height: 468px;
	background-image: url("intro/first_knight.png");
	/*background: #646010;**/
	opacity: 0.2;
	-webkit-transition: left 1s;
	-moz-transition: left 1s;
}

#first-knight.finalpos {
	left: -500px;
}

#final-knights {
	position: absolute;
	top: 76px;
	left: -560px;
	width: 560px;
	height: 399px;
	background-image: url("intro/final_knights.png");
	/*background: #646010;**/
	opacity: 0.9;
	-webkit-transition: left 1s;
	-moz-transition: left 1s;
}

#final-knights.finalpos {
	left: 60px;
}


#borduere-oben {
	position: absolute;
	top: -45px;
	left: 0px;
	width: 675px;
	height: 49px;
	background-image: url("intro/borduere_oben.png");
	/*background: #c47a19;*/
	opacity: 0.26;
	-webkit-transition: top 500ms;
	-moz-transition: top 500ms;
}

#borduere-oben.finalpos {
	top: 7px;
}


#borduere-unten {
	position: absolute;
	top: 565px;
	left: 0px;
	width: 673px;
	height: 53px;
	background-image: url("intro/borduere_unten.png");
	opacity: 0.26;
	-webkit-transition: top 500ms;
	-moz-transition: top 500ms;
}

#borduere-unten.finalpos {
	top: 518px;
}


#slogan-top {
	position: absolute;
	top: -65px;
	left: 69px;
	width: 541px;
	height: 63px;
	background-image: url("intro/slogan_top.png");
	-webkit-transition: top 500ms;
	-moz-transition: top 500ms;
}

#slogan-top.finalpos {
	top: 197px;
}

#slogan-bottom {
	position: absolute;
	top: 605px;
	left: 82px;
	width: 541px;
	height: 63px;
	background-image: url("intro/slogan_bottom.png");
	-webkit-transition: top 500ms;
	-moz-transition: top 500ms;
}

#slogan-bottom.finalpos {
	top: 270px;
}





/*################### start panel ###############*/

#introtext {
	height: 250px;
}



#bayeux-start-tooltip img {
	position: absolute;
	top: 0;
	left: 225px;
	right: auto;
	bottom: auto;
	z-index: 100;
}

.bayeux-start-button {
	position: absolute;
	top: 452px;
	left: 0;
	background-image: url("start/startbutton_yellow.png");
	margin: 0;
	padding: 0;
}

.toolsection h2 {
 	font-family: 'BayeuxRegular1';
	text-align: center;
 	font-size: 26px;
	text-transform: uppercase;
	font-weight: 100;
	color: #444;
	margin-top: 0.8em;
	margin-bottom: 0.2em;
}

.htck-text {
 	font-family: 'Marathon';
 	font-size: 20px;
	text-align: center;
	letter-spacing: 0.7px;
	line-height: 90%;
	margin: auto 0.7em auto 0.7em;
	color: #333;
}

.htck-text b {
	/*color: #712b32;*/
	color: #6d222a;
	opacity: 0.9;
}


/*################### image mode panel ###############*/

#htcc-header {
	position: absolute;
	top: -35px;
	margin: 0;
	padding: 0;
}

#bayeux-imagemode-tabs {
	width: 100%;
	height: 30px;
	margin: 0;
	padding: 0;
}

#bayeux-imagemode-tabs img {
	margin: 0;
	padding: 0;
}

#bayeux-imagemode-tabs>span {
	float: left;
	clear: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

#bayeux-imagemode-tabs>span>img {
	float: left;
	top: 0;
	left: 0;
}

#bayeux-imagemode-tabbody {
	width: 225px;
	height: 355px;
	margin: 0;
	padding: 0 0 0 0px;
	/*background-image: url("imagemode/tabbody.png");*/
}

#bayeux-imagemode-tabbody img {
	margin: 3px 1px 0px 1px;
	/*border: 1px solid red;*/
}

.bayeux-imagemode-tab-base {
	cursor:pointer;
}

#bayeux-imagecontrolpanel {
	position: absolute;
	top: 100px;
	left: 400px;
	width: 188px;
	height: 27px;
	display: none;
	z-index: 1001;
}

#bayeux-imagecontrolpanel div {
	float: left;
	cursor:pointer;
}

#bayeux-imagelarger {
	width:  20px;
	height: 27px;
	background: transparent url("bayeuxsprite.png")
		0 0 no-repeat;
}

#bayeux-imagesmaller {
	width:  18px;
	height: 27px;
	background: transparent url("bayeuxsprite.png")
    	-20px 0 no-repeat;
}

#bayeux-imageright {
	width:  15px;
	height: 27px;
	background: transparent url("bayeuxsprite.png")
    	-38px 0 no-repeat;
}

#bayeux-imageleft {
	width:  13px;
	height: 27px;
	background: transparent url("bayeuxsprite.png")
    	-53px 0 no-repeat;
}


#bayeux-imageflip {
	width:  62px;
	height: 27px;
	background: transparent url("bayeuxsprite.png")
    	-66px 0 no-repeat;
}


#bayeux-imageclear {
	width:  60px;
	height: 27px;
	background: transparent url("bayeuxsprite.png")
    	-128px 0 no-repeat;
}



/*################### text mode panel ###############*/



.bayeux-text {
 	font-family: 'BayeuxRegular1';
	/*background: white;*/
	opacity: 0.8;
	margin: 0;
	min-width: 10px;
	min-height: 1em;
}

.bayeux-text span {
	margin-right: 4px;
}

.bfsp_2 {
 	font-family: 'BayeuxRegular2';
}

.bfsp_3 {
 	font-family: 'BayeuxRegular3';
}

.bfsp_4 {
 	font-family: 'BayeuxRegular4';
}

.size_1 {
	font-size: 19px;
}

.size_2 {
	font-size: 27px;
}

.size_3  {
	font-size: 36px;
}

.size_4  {
	font-size: 50px;
}

.size_5  {
	font-size: 57px;
}

.color_1 {
	color: rgba(135, 2, 2, 0.9)
}

.color_2 {
	color: rgba(0, 0, 87, 0.9)
}

.color_3 {
	color: rgba(51, 102, 0, 0.9)
}

.color_4 {
	color: rgba(193, 139, 2, 0.8)
}

.color_5 {
	color: rgba(0, 0, 0, 0.9)
}

.bayeux-text-wrap {
	display: block; 
	position: absolute; 
	margin: 0;
	padding: 0;
}


.ui-draggable.noclick {
	background: orange;
}

#bayeux-textcontrolpanel {
	position: absolute;
	top: 100px;
	left: 400px;
	width: 66px;
	height: 85px;
	z-index: 1001;
	/*background: transparent url("textmode/textcontrolpanel.png")
		0 0 no-repeat;*/
	background: transparent url("bayeuxsprite.png") 0 -28px no-repeat;
	display: none;
}

#bayeux-textcontrolpanel div {
	float: left;
	cursor:pointer;
	width:  55px;
	height: 17px;
	margin: 0;
	padding: 0;
}

#bayeux-textcontrolpanel #bayeux-textlarger {
	width:  28px;
	height: 19px;
	margin-left: 5px;
	margin-top: 3px;
}

#bayeux-textcontrolpanel #bayeux-textsmaller {
	width:  27px;
	height: 19px;
	margin-top: 3px;
}

#bayeux-textcontrolpanel #bayeux-textred {
	width:  16px;
	margin-left: 5px;
}

#bayeux-textcontrolpanel #bayeux-textblue {
	width:  12px;
}

#bayeux-textcontrolpanel #bayeux-textgreen {
	width:  13px;
}

#bayeux-textcontrolpanel #bayeux-textyellow {
	width:  14px;
}

#bayeux-textcontrolpanel #bayeux-textblack {
	height: 19px;
	margin-left: 5px;
}

#bayeux-textcontrolpanel #bayeux-textclear {
	height: 20px;
	margin-left: 5px;
}
 