/* Start of CMSMS style sheet 'Layout: Top menu + 2 columns' */
/*****************
browsers interpret margin and padding a little differently, 
we'll remove all default padding and margins and
set them later on
******************/
* {
margin:0;
padding:0;
}

/*
Set initial font styles
*/

body {
   font-family: Arial, sans-serif; /* "Franklin Gothic Medium" */
}

#body-en_US,
#body-ru_RU,
#body-de_DE {
  text-align: left;
  font-size: 80.01%;
  line-height: 1em;
  
  background-image: url(/www/images/www/fading_bg_01.gif);
  background-repeat: repeat-x;
  background-position: center top;
  
  color: #333;
  margin:1em; /* gives some air for the pagewrapper */
}

#body-ar_AR {
  text-align: right;
  font-size: 80.01%;
  line-height: 1em;
  
  background-image: url(/www/images/www/fading_bg_01.gif);
  background-repeat: repeat-x;
  background-position: center top;
  
  color: #333;
  margin:1em; /* gives some air for the pagewrapper */
}

/*
set font size for all divs,
this overrides some body rules
*/
div {
  font-size: 1em;
}

/*
if img is inside "a" it would have 
borders, we don't want that
*/
img {
  border: 0;
  text-decoration: none;
}

/*
default link styles
*/
/* set all links to have underline and bluish color */
a,
a:link 
a:active {
  text-decoration: none;
/* css validation will give a warning if color is set without background color. this will explicitly tell this element to inherit bg colour from parent element */
  background-color: inherit; 
  color: #18507C; 
}

a:visited {
  text-decoration: none;
  background-color: inherit;
  color: #18507C;        /* a different color can be used for visited links */
}

/* remove underline on hover and change color */
a:hover {
  text-decoration: none;
  background-color: #C3D4DF;
  color: #385C72;
}

/*****************
basic layout 
*****************/
body-en_US,
body-ru_RU,
body-ar_AR,
body-de_DE {
  background-image: url(/www/images/www/fading_bg_01.gif);
  background-repeat: repeat-x;
  background-position: center top;
  background-color: #ccc;
  color: #333;
  margin:1em; /* gives some air for the pagewrapper */
}

/* center wrapper, min max width */
div#pagewrapper {
  border: 1px solid #b8b8b8;
  margin: 0 auto;   /* this centers wrapper */
  max-width: 1024px; /* 80em IE wont understand these, so we will use javascript magick */
  min-width: 800px; /*  60em */
  background-color: #fff;
  color: black;
}

/*  top menu style - flag menu, and top-small menu */
div#top_menu-en_US,
div#top_menu-ru_RU,
div#top_menu-de_DE {
  float: right;
  width: 27em;   /* enough width for the menu input box */
  text-align: right;
  padding: 0.6em 0 0.2em 0;
  margin: 0 1em;
}

div#top_menu-ar_AR {
  float: left;
  width: 27em;   /* enough width for the menu input box */
  text-align: left;
  padding: 0.6em 0 0.2em 0;
  margin: 0 1em;
}

/*  top menu -bottom element style - sitemap, feddback form, bookmarks - sfb etc */
div#top_menu_sfb-en_US,
div#top_menu_sfb-ru_RU,
div#top_menu_sfb-de_DE {
  float: right;
  margin: 4em 0 0 0;
}

div#top_menu_sfb-ar_AR {
  float: left;
  margin: 4em 0 0 0;
}

div#top_menu_sfb-en_US span,
div#top_menu_sfb-ru_RU span,
div#top_menu_sfb-de_DE span {
  margin: 0 10px
}

div#top_menu_sfb-ar_AR span{
  margin: 0 10px;
}

/*** header ***
we will hide text and replace it with a image
we need to assign a height for it
*/
div#header-en_US,
div#header-ru_RU,
div#header-ar_AR,
div#header-de_DE {
  height: 120px; /* adjust according your image size */
  background: #fff;   /*  #385C72; */ 
}

div#header-en_US h1 a,
div#header-ru_RU h1 a,
div#header-de_DE h1 a {
/* you can set your own image here */
  background: #fff url(/www/images/www/header/tess_header_logo.jpg) no-repeat 0 0; /*  #385C72; */
  display: block; 
  height: 120px;       /* adjust according your image size */
  text-indent: -999em; /* this hides the text */
  text-decoration: none; /* old firefox would have shown underline for the link, this explicitly hides it */
}

div#header-ar_AR h1 a {
/* you can set your own image here */
  background: #fff url(/www/images/www/header/tess_header_logo-ar_AR.jpg) no-repeat 100% 0; /*  #385C72; */
  display: block; 
  height: 120px;       /* adjust according your image size */
  text-indent: -999em; /* this hides the text */
  text-decoration: none; /* old firefox would have shown underline for the link, this explicitly hides it */
}

div.header_color_line {
/* you can set your own image here */
  background:#c3d4df;
  display: block; 
  height:2px;       /* adjusting size */
  text-indent: -999em; /* this hides the text */
  text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}

div#topbar {
/* you can set your own image in page topbar content block!!! */
/*  background: #436392 url(/www/uploads/images/pages/2/topbar.jpg) no-repeat 0 0; /*  #385C72; */
  display: block; 
  height: 111px;       /* adjust according your image size and padding below */
  padding: 75px 40px 0 288px; /*288 some air around p topbar slogan size pic 248x186 */
  margin: 0 0 10px 0;
}

div#topbar p {
  text-align:center;
  color: #fff;
  font-size: 1.4em;
  font-family: "Franklin Gothic Medium";
}

div#frontpicture {
/* you can set your own image in pagetemplate!!! */
/*  background: #436392 url(/www/uploads/images/pages/1/frontpage_w.jpg) no-repeat 0 0; /*  #385C72; */
  display: block; 
  height: 420px;       /* adjust according your image size and padding below */
  padding: 30px 50px 0 288px; /* some air around p topbar slogan size pic 248x186 */
  margin: 0 0 0px 0;
}

div#frontpicture p {
  text-align:right;
  color: #fff;
  font-size: 4em;
  font-family: "Franklin Gothic Medium";
}

div#search-en_US,
div#search-ru_RU,
div#search-de_DE{
  float: right;
  width: 27em;   /* enough width for the search input box */
  text-align: right;
  padding: 0.6em 0 0.2em 0;
  margin: 0 1em;
}

div#search-ar_AR{
  float: left;
  width: 27em;   /* enough width for the search input box */
  text-align: left;
  padding: 0.6em 0 0.2em 0;
  margin: 0 1em;
}

div#search-en_US:hover,
div#search-ru_RU:hover,
div#search-ar_AR:hover,
div#search-de_DE:hover {
  background-color: #fff; 
}

div.breadcrumbs-en_US,
div.breadcrumbs-ru_RU,
div.breadcrumbs-de_DE {
  padding: 1em 0 1em 0; /* CSS short hand rule first value is top then right, bottom and left */
  font-size: 90%;       /* its good to set fontsizes to be relative, this way viewer can change his/her fontsize */
  margin: 0 1em;       /* css shorthand rule will be opened to be "0 1em 0 1em" */
/*  border-bottom: 1px dotted #C0C0C0; */
  text-align: left;
}

div.breadcrumbs-ar_AR {
  padding: 1em 0 1.2em 0; /* CSS short hand rule first value is top then right, bottom and left */
  font-size: 90%;       /* its good to set fontsizes to be relative, this way viewer can change his/her fontsize */
  margin: 0 1em;       /* css shorthand rule will be opened to be "0 1em 0 1em" */
/*  border-bottom: 1px dotted #C0C0C0; */
  text-align: right;  
}

div.breadcrumbs-en_US span.lastitem,
div.breadcrumbs-ru_RU span.lastitem,
div.breadcrumbs-ar_AR span.lastitem,
div.breadcrumbs-de_DE span.lastitem { 
  font-weight:bold; 
 }

div#content-en_US, 
div#content-ru_RU, 
div#content-de_DE {
  margin: 1.5em 0 2em 0; /* some air above and under menu and content */
}

div#content-ar_AR {
  margin: 1.5em 0 2em auto; /* some air above and under menu and content */
}

div#main-en_US,
div#main-ru_RU,
div#main-de_DE {
  margin-left: 255px; /* 27% this will give room for sidebar to be on the left side, make sure this space is bigger than sidebar width */
  margin-right: 2%; /* 2% and some air on the right */
}

div#main-ar_AR {
  margin-right: 255px; /* 27% this will give room for sidebar to be on the left side, make sure this space is bigger than sidebar width */

  margin-left: 2%; /* and some air on the right */
}

div#main_home-en_US,
div#main_home-ru_RU,
div#main_home-de_DE {
  margin-left: 2%; 
  margin-right: 2%; /* and some air on the right */
}

div#main_home-ar_AR {
  margin-right: 2%; 
  margin-left: 2%; /* and some air on the right */
}

div#main_print-en_US,
div#main_print-ru_RU,
div#main_print-de_DE {
  margin-left: 1%; 
}

div#main_print-ar_AR {
  margin-right: 1%; 
}

div#contxt_menu-en_US,
div#contxt_menu-ru_RU,
div#contxt_menu-de_DE {
float: right;
}

div#contxt_menu-ar_AR {
float: left;
}

div#contxt_menu-en_US span,
div#contxt_menu-ru_RU span,
div#contxt_menu-ar_AR  span,
div#contxt_menu-de_DE  span {
margin: 0 5px;
}

div#sidebar-en_US,
div#sidebar-ru_RU,
div#sidebar-de_DE {
  float: left; /* set sidebar on the left side. Change to right to float it right instead. */
  width: 235px;  /* 24%!!! sidebar width, if you change this please also change #main margins */
  display: inline; /* FIX ie doublemargin bug!!! */
  margin-left: 0;
}

div#sidebar-ar_AR {
  float: right; /* set sidebar on the left side. Change to right to float it right instead. */
  width: 235px;  /* 24%sidebar width, if you change this please also change #main margins */
  display: inline; /* FIX ie doublemargin bug!!! */ 
  margin-right: 0;
}

/* if sidebar doesnt include menu but content add class="hascontent" */
div#sidebar-en_US.hascontent,
div#sidebar-ru_RU.hascontent,
div#sidebar-ar_AR.hascontent,
div#sidebar-de_DE.hascontent {
  padding: 0 10px;
  width: 230px; /* 24%!!! make width smaller if there's padding, or it will get too wide for the floated divs in IE */
}

div#footer-en_US,
div#footer-ru_RU,
div#footer-ar_AR,
div#footer-de_DE {
  clear: both;    /* keep footer below content and menu */
 /*  color: #bbbbbb; */
  background-color: #fff; /* same bg color as in header */
  color: gray;
}

div#footer-en_US p,
div#footer-ru_RU p,
div#footer-de_DE p {
  font-size: 0.9em;
  padding: 1.5em;   /* some air for footer */
  text-align: right; /* ???centered text */
  margin: 0 auto 0 0;
}

div#footer-ar_AR p {
  font-size: 0.9em;
  padding: 1.5em;   /* some air for footer */
  text-align: left; /* ???centered text */
  margin: 0 0 0 auto;
}

div#footer-en_US p a,
div#footer-ru_RU p a,
div#footer-ar_AR p a,
div#footer-de_DE p a {
  color: #bbbbbb; /* needed becouse footer link would be same color as background otherwise */
}

/* as we hid all hr for accessibility we create new hr with extra div element */
div.hr {
  height: 1px;
  margin: 1em;
  border-bottom: 1px dotted #C0C0C0;
}

/* relational links under content */
div.left49-en_US,
div.left49-ru_RU,
div.left49-de_DE {
 float: left;
 width: 49%; /* 50% for both left and right might lead to rounding error on some browser */
 text-align: left; 
}

div.left49-ar_AR {
 float: right;
 width: 49%; /* 50% for both left and right might lead to rounding error on some browser */
 text-align: right;
}

div.right49-en_US,
div.right49-ru_RU,
div.right49-de_DE {
 float: right;
 width: 49%;
 text-align: right;
}

div.right49-ar_AR {
 float: left;
 width: 49%;
 text-align: left;
}

div#footer_banner-en_US,
div#footer_banner-ru_RU,
div#footer_banner-de_DE {
  float: left;  
  display: block; 
  width: auto;   /* enough width for the footer_right */
  padding: 0.6em 0 0.2em 0;
  margin: 0 1em;
}

div#footer_banner-ar_AR {
  float: right;  
  display: block; 
  width: auto;   /* enough width for the footer_right */
  padding: 0.6em 0 0.2em 0;
  margin: 0 1em;
}

/********************
CONTENT STYLING
*********************/
div#content-en_US,
div#content-ru_RU,
div#content-ar_AR,
div#content-de_DE {
}

/* HEADINGS */
div#content-en_US h1,
div#content-ru_RU h1,
div#content-ar_AR h1,
div#content-de_DE h1 {
  font-size: 2em; /* font size for h1 */
  line-height: 1em;
  margin: 0;
}

div#links-en_US ul li,
div#links-ru_RU ul li,
div#links-de_DE ul li{
  text-align: left; 
/* some air around the text */
  padding-left: 0.5em;
  padding-bottom: 1px;
/* and some air under the border */
  margin: 0 0 0.5em 0;
  list-style: none
}

div#links-ar_AR ul li{
  text-align: right; 
/* some air around the text */
  padding-right: 0.5em;
  padding-bottom: 1px;
/* and some air under the border */
  margin: 0 0 0.5em 0;
  list-style: none
}

div#content-en_US h2,
div#content-ru_RU h2, 
div#content-de_DE h2 {
  color: #294B5F; 
  font-size: 1.5em; 
  text-align: left; 
/* some air around the text */
  padding-left: 0.5em;
  padding-bottom: 1px;
/* set borders around header */
  border-bottom: 1px solid #c3d4df ; /* #e7ab0b */
  border-left: 0.5em solid #c3d4df ; /* #e7ab0b */
  line-height: 1.5em;
/* and some air under the border */
  margin: 0 0 0.5em 1px;
}

div#content-ar_AR h2 {
  color: #294B5F; 
  font-size: 1.5em; 
  text-align: right; 
/* some air around the text */
  padding-right: 0.5em;
  padding-bottom: 1px;
/* set borders around header */
  border-bottom: 1px solid #c3d4df ; /* #e7ab0b */
  border-right: 0.5em solid #c3d4df ; /* #e7ab0b */
  line-height: 1.5em;
/* and some air under the border */
  margin: 0 1px 0.5em 0;
}

div#content-en_US h3,
div#content-ru_RU h3,
div#content-ar_AR h3,
div#content-de_DE h3 {
  color: #294B5F; 
  font-size: 1.3em;
  line-height: 1.3em;
  margin: 0 0 0.5em 0;
}

div#content-en_US h4,
div#content-ru_RU h4,
div#content-ar_AR h4,
div#content-de_DE h4 {
  color: #294B5F; 
  font-size: 1.2em;
  line-height: 1.3em;
  margin: 0 0 0.25em 0;
}

div#content-en_US  h5,
div#content-ru_RU  h5,
div#content-ar_AR  h5,
div#content-de_DE  h5 {
  color: #294B5F;   
  font-size: 1.1em;
  line-height: 1.3em;
  margin: 0 0 0.25em 0;
}

div#content-en_US  h6,
div#content-ru_RU  h6,
div#content-ar_AR  h6,
div#content-de_DE  h6 {
  color: #294B5F; 
  font-size: 1em;
  line-height: 1.3em;
  margin: 0 0 0.25em 0;
}

/* END HEADINGS */
/* TEXT */
p {
  font-size: 1em;
  margin: 0 0 0.8em 0; /* 1.5 em some air around p elements */
  line-height:1.4em;
  padding: 0;
  text-align: justify;
}

blockquote-en_US,
blockquote-ru_RU,
blockquote-de_DE {
  border-left: 10px solid #ddd;
  margin-left: 10px;
}

blockquote-ar_AR {
  border-right: 10px solid #ddd;
  margin-right: 10px;
}

pre {
  font-family: monospace;
  font-size: 1.0em;
}

strong, b {
/* explicit setting for these */
  font-weight: bold;
}

em, i {
/* explicit setting for these */
  font-style:italic;
}

/* Wrapping text in <code> tags. Makes CSS not validate */
code, pre {
 white-space: pre-wrap;    /* css-3 */
 white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
 white-space: -pre-wrap;  /*  Opera 4-6 */
 white-space: -o-pre-wrap; /*   Opera 7 */
 word-wrap: break-word;    /* Internet Explorer 5.5+ */
 font-family: "Courier New", Courier, monospace;
 font-size: 1em;
}

pre {
  border: 1px solid #000; /* black border for pre blocks */
  background-color: #ddd;
  margin: 0 1em 1em 1em;
  padding: 0.5em;
  line-height: 1.5em;
  font-size: 90%;  /* smaller font size, as these are usually not so important data */
}

/* END TEXT */
/* LISTS */
div#main-en_US ul, div#main-ru_RU ul, div#main-de_DE ul,
div#main-en_US ol, div#main-ru_RU ol, div#main-de_DE ol,
div#main-us_US dl, div#main-ru_RU dl, div#main-de_DE dl,
div#main_print ul li,
div#main_print ol li {
  font-size: 1.0em;
  line-height:1.4em;
  margin: 0 0 1.5em 0;
}

div#main-ar_AR ul,
div#main-ar_AR ol,
div#main-ar_AR dl {
  font-size: 1.0em;
  line-height:1.4em;
  margin: 0 0 1.5em 0;
  text-align: right;
}

div#main-en_US ul li, div#main-ru_RU ul li, div#main-de_DE ul li,
div#main-en_US ol li, div#main-ru_RU ol li, div#main-de_DE ol li,
div#main_print ul li,
div#main_print ol li {
  margin: 0 0 0.25em 3em;
}

div#main-ar_AR ul li,
div#main-ar_AR ol li {
  margin: 0 3em 0.25em 0;
  text-align: right;
}

div#dl-en_US dt,
div#dl-ru_RU dt,
div#dl-de_DE dt {
  font-weight: bold;
  margin: 0 0 0.25em 3em;
}

div#dl-ar_AR dt {
  font-weight: bold;
  margin: 0 3em 0.25em 0;
}

div#dl-en_US dd,
div#dl-ru_RU dd,
div#dl-de_DE dd {
  margin: 0 0 0 3em;
}

div#dl-ar_AR dd {
  margin: 0 3em 0 0;
}

/* END LISTS */

/* HORIZON MENU IN ADVANCING*/

#menu_horizon {

   line-height: 1.1em;
   width: 100%;
	background-color:#EBEBEB;
		background-image:url(images/cms/chromebg.gif);
		background-position:center center;
	background-repeat:repeat-x;

}

/* The wrapper clears the floating elements of the menu */

/* Fix for Opera 8 */
.clearb { 
  clear: both; 
}

#menuwrapper { 
	background-color:#EBEBEB;
		background-image:url(images/cms/chromebg.gif);
		background-position:center center;
	background-repeat:repeat-x;
   width: 88%;
   margin: 0 6% 0 6%; 
   padding: 0px 0px 0px 0px;
}

/* Styling the basic apperance of the menu elements solving IE bugs*/

#primary-nav li {  /* remove some space between li elements */
  vertical-align:bottom;
}

#primary-nav li a {  /* make hover effect work in IE */
/* display:block; */
  <!--[if IE]>
  width: 105px; 
  <![endif]-->
}

/*END HORIZON MENU */

/* IE Hack, will cause the css to not validate */
#primary-nav li li { 
<!--[if IE]>
   float: left; 
   clear: both; 
<![endif]-->
}
#primary-nav li li a { 
<!--[if IE]>  
   height: 1%; 
<![endif]-->
}
/* End of 'Layout: Top menu + 2 columns' */

