/* Reset
----------------------------------------------*/

html, body, th, td, ul, ol, li, p, h1, h2, h3, h4, h5, h6 {
	padding:0;
	margin:0;
}

th {
	vertical-align:middle;
	text-align:center;
}

td {
	vertical-align:top;
	text-align:left;
}

/* Main
----------------------------------------------*/

html, body, #wrap {height: 100%;}
body > #wrap {height: auto; min-height: 100%;}
#main {padding-bottom: 53px;}  /* must be same height as the footer */

body {
	background:url("../img/background.jpg") #e6d5ae repeat top center;
	font-family:arial, sans-serif;
	font-size:12px;
	color:#7d3601;
}

.clear {
	font-size:1px;
	height:1px;
	clear:both;
}

a {
	text-decoration:underline;
	color:#7d3601;
}

a:hover {
	text-decoration:none;
}

.active {
	color:#898989;
}

.external {
	background:url("../img/external.gif") no-repeat right top;
	padding-right:12px;
}


h1, h2 {
	font-weight:bold;
	font-size:18px;
	margin:5px 0;
}

h3, h4, h5, h6 {
	font-weight:bold;
	font-size:12px;
	margin:0 0 5px 0;
}

h1 span, h2 span {
	font-weight:normal;
	font-size:13px;
}

h3 span {
	font-weight:normal;
	font-size:12px;
}

ul, ol {
	list-style:none;
}

img {
	border:0;
}

#container {
	margin:0 auto;
	width:1000px;


}

.environment {
	background:url("../img/environment-bg.jpg") no-repeat center 200px;
}

.environment h1, .environment #content {
	color:#096202;
}

.error-message {
	color:#f00;
}

/* Header
----------------------------------------------*/

#header {
	background:url("../img/header.png") no-repeat top center;
	position:relative;
	height:180px;
}

#home {
	position:absolute;
	display:block;
	height:130px;
	width:225px;
	left:100px;
	top:20px;
}

/* Topmenu
----------------------------------------------*/

#topmenu {
	margin-left:320px;
	line-height:45px;
	overflow:hidden;
	height:41px;
}

#topmenu a {
	padding-left:90px;
	color:#fff;
}

#topmenu .active {
	color:#b7b7b7;
}

#topmenu a span {
	color:#ffe04f;
}

/* Mainmenu
----------------------------------------------*/

#mainmenu {
	text-align:center;
	margin-left:380px;
	line-height:45px;
	height:100px;
}

#mainmenu a {
	background-position:bottom center;
	background-repeat:no-repeat;

	font-weight:bold;
	font-size:14px;
	display:block;
	height:25px;
	float:left;
	line-height:100%;
	padding-top:75px;
}

#mainmenu .active {
	text-decoration:none;
}



/* Sidemenu
----------------------------------------------*/

#sidemenu {
	background:url("../img/moto.lv.jpg") no-repeat left top;
	padding-top:30px;
	width:250px;
	float:left;
}

.l-ru #sidemenu {
	background-image:url("../img/moto.ru.jpg");
}

.l-en #sidemenu {
	background-image:url("../img/moto.en.jpg");
}

/* Leftmenu
----------------------------------------------*/

#leftmenu {
	line-height:200%;
	font-weight:bold;
	text-align:right;
	margin-top:15px;
}

#leftmenu li {
	background-position:190px center ;
	background-repeat:no-repeat;
	padding-right:70px;
}

/* Languages
----------------------------------------------*/

#languages {
	background:url("../img/lang.gif") no-repeat 95px 0;
	text-transform:uppercase;
	text-align:right;
	line-height:23px;
	height:23px;
	width:180px;
}

.l-ru #languages {
	background-position:70px 0;
}

.l-lv #languages {
	background-position:97px 0;
}


.l-en #languages {
	background-position:123px 0;
}

.l-de #languages {
	background-position:149px 0;
}

/*
.l-lv #languages {
	background-position:95px 0;
}

.l-en #languages {
	background-position:122px 0;
}

.l-ru #languages {
	background-position:149px 0;
}
*/

#languages li {
	display:inline;
}

#languages a {
	text-transform:uppercase;
	text-decoration:none;
	padding:0 5px;
}

#languages .active {
	color:#fff;
}

/* Content
----------------------------------------------*/

#content {
	margin-right:10px;
	line-height:150%;
	font-size:14px;
	width:550px;
	float:left;
}

#content ol {
	margin-left:20px;
	list-style:decimal;
}

#content ul {
	margin-left:20px;
	list-style:disc;
}

.back {
	margin-bottom:5px;
	text-align:right;
}

/* News */
.article {
	margin-bottom: 2em;	
}

/* diff links */
.rbox a, .ibox a, .more {
	color:#e60004;
}


/* Gallery
----------------------------------------------*/

#gallery-container {
	position:relative;
	left:-30px;
}

#gallery {
	border:7px solid #fff;
	position:relative;
	left:30px;
}

#gallery ul, #gallery li{
	list-style:none;
	padding:0;
	margin:0;
}

#gallery li{
	overflow:hidden;
	height:290px;
	width:440px;
}

#prevBtn, #nextBtn, #prevBtn a, #nextBtn a{
	display:block;
	height:28px;
	width:24px;
}

#prevBtn a {
	background:url("../img/prev.gif") no-repeat 0 0;
	position:absolute;
	top:150px;
	left:0;
}

#nextBtn a {
	background:url("../img/next.gif") no-repeat 0 0;
	position:absolute;
	left:494px;
	top:150px;
}

/* Rounded box
----------------------------------------------*/

.rbox {
	background-color:#efe1c3;
	padding:15px 25px;
	-webkit-border-radius:20px;
	-moz-border-radius:20px;
	border-radius:20px;
}

.ibox {
	padding:25px;
}

/* Banners
----------------------------------------------*/

#banners {
	width:190px;
	float:left;
}

#banners img {
	float:left;
}

/* Admin tools
----------------------------------------------*/

#admtools {
	padding:5px 10px 5px 3px;
	border:1px solid #aaa;
	background-color:#e6d5ae;
	margin:0 0 15px 0;
	font-size:11px;
}

#admtools img {
	vertical-align:middle;
}

#admtools a {
	text-decoration:none;
}

#admtools a.logout {
	float:right;
}

/* Footer
----------------------------------------------*/

#footer {
	background:url("../img/footer.gif") no-repeat top center;
	text-align:center;
	line-height:80px;
	overflow:hidden;
	height:53px;
	color:#fff;

	position: relative;
	margin-top: -53px; /* negative value of footer height */
	clear:both;
}

#footer a {
	color:#ffde5c;
}

/* Employee
----------------------------------------------*/

.employee {
	border-collapse:collapse;
	width:100%;
}

.employee .profile {
	padding-right:20px;
	width:140px;
}

.employee-full {
	text-align:center;
	line-height:130%;
	margin-bottom:0;
	font-size:12px;
	height:290px;
	width:110px;
	float:left;
}

.employee .language-flags {
	margin-left:0px !important;
	list-style:none !important;
}
.employee .language-flag {
	float:left;
	margin-right:10px;
}

/* Flash message
----------------------------------------------*/

#flash-message {
	background-position:-6px -6px;
	background-repeat:no-repeat;
	margin-bottom:20px;
	padding-left:35px;
	font-weight:bold;
	line-height:32px;
}

div.flash-message-failure {
	background-image:url("../img/msg-bg-err.gif");
	border-bottom:2px solid #e50d2e;
	border-top:2px solid #e50d2e;
}

div.flash-message-success {
	background-image:url("../img/msg-bg-ok.gif");
	border-bottom:2px solid #51683b;
	border-top:2px solid #51683b;
}

div.flash-message-unknown {
	background-image:url("../img/msg-bg.gif");
	border-bottom:2px solid #999;
	border-top:2px solid #999;
}

/* Retailer chooser
----------------------------------------------*/

#retailers {
	height:50px;
}

#retailers a {
	background-position:center;
	background-repeat:no-repeat;
	line-height:50px;
	padding:0 17px;
	display:block;
	height:50px;
	width:85px;
	float:left;
}

#retailers .active {
	border:1px solid #ffa200;
	height:48px;
	width:83px;
}


#retailers .vhr {
	background-color:#823e0a;
	overflow:hidden;
	margin:0 7px;
	height:50px;
	width:1px;
	float:left;
}

/* Products
----------------------------------------------*/

.products {
	border-collapse:collapse;
	width:100%;
}

.products th, .products td {
	vertical-align:middle;
	font-weight:normal;
	text-align:center;
	width:25%;
}

.products th {
	line-height:100%;
}

.products h2 {
	font-weight:normal;
	font-size:30px;
}

.product {
	font-size:12px;
	width:100%;
}

.product td {
	vertical-align:top;
}

/* Start
----------------------------------------------*/

#intros {
	border-collapse:collapse;
	width:550px;
}

#intros td {
	vertical-align:middle;
	line-height:100%;
	text-align:center;
	font-size:12px;
	height:500px;
}

#intros .tdl, #intros .tdr {
	width:100px;
}

#intros .tdl a, #intros .tdr a{
	display:block;
	width:100px;
	height:50px;
}

#intros .tdl {
	background:url("../img/tdl.jpg") no-repeat center;
}

#intros .tdr {
	background:url("../img/tdr.jpg") no-repeat center;
}

#intros .tdc {
	width:350px;
}

#intros .tdc p {
	font-size:14px;
	line-height:130%;
	height:60px;
}

.c-start h1 {
	text-align:center;
}

.c-start #description {
	text-align:center;
	margin:0 auto;
	width:370px;
}



/* CLEAR FIX*/
.clearfix:after {content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;}
.clearfix {display: inline-block;}
/* Hides from IE-mac \*/
* html .clearfix { height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
