/* Formatting all paddings, margins and borders to 0 for compatibility */
* {
    padding: 0;
    margin: 0;
    border: 0;
}

/* basic options, sets default font size as 1em */
body {
    background-image: url(images/back_grain.gif);
    background-repeat: repeat;
    background-color: #4c4c4c;
    font-family: "Trebuchet MS", Arial, Tahoma, Helvetica, sans-serif;
    font-size: 1em;
}
/* sets dark gradient background on top of the gray background */
#window {
    background-image: url(images/back_gradient_grain.gif);
    background-repeat: repeat-x;
    background-position: top left;
}

/* background for the centered area of the site, contains shadow that overlaps gradient background and grey background */
#centered_container_with_shadow {
    width: 940px;
    margin-left: auto;
    margin-right: auto;
    background-image: url(images/background.png);
    background-repeat: repeat-y;
}

/* common options for headers */
#centered_container_abstract_01, #centered_container_abstract_02, #centered_container_abstract_03, #centered_container_abstract_04, #centered_container_photo_01, #centered_container_photo_02, #centered_container_photo_03, #centered_container_photo_04 {
    width: 900px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    background-repeat: no-repeat;
}

/* different header images */
#centered_container_abstract_01 {
    background-image: url(images/header/abstract_01.jpg);
}
#centered_container_abstract_02 {
    background-image: url(images/header/abstract_02.jpg);
}
#centered_container_abstract_03 {
    background-image: url(images/header/abstract_03.jpg);
}
#centered_container_abstract_04 {
    background-image: url(images/header/abstract_04.jpg);
}
#centered_container_photo_01 {
    background-image: url(images/header/photo_01.jpg);
}
#centered_container_photo_02 {
    background-image: url(images/header/photo_02.jpg);
}
#centered_container_photo_03 {
    background-image: url(images/header/photo_03.jpg);
}
#centered_container_photo_04 {
    background-image: url(images/header/photo_04.jpg);
}
#header {
    background-image: url(images/top_gray_bar.png);
    background-repeat: no-repeat;
    width: 900px;
    height: 185px;
}

/* small menu on the top of the page */
#topmenu {
    width: 900px;
    height: 35px;
    list-style-type: none;
    background-image: url(images/top_menu_background.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    color: #dedede;
    font-size: 0.8em;
    text-align: right;
}
#topmenu a {
    text-decoration: none;
    color: #dedede;
}
#topmenu a:hover {
    color: #fff;
    border-bottom: 1px dotted #fff;
}
#topmenu  li {
    display: inline;
    position: relative;
    top: 8px;
    margin-right: 20px;
    margin-left: 5px;
}

/* main menu */
#mainmenu {
    position: relative;
    top: 110px;
    list-style-type: none;
    width: 900px;
    height: 27px;
    background-image: url(images/mainmenu_background.gif);
    background-repeat: repeat-x;
    padding-top: 4px;
    padding-bottom: 10px;
    z-index: 10;
}
#main_active {
    height: 40px;
    background-image: url(images/menu_arrow_stroked.png);
    background-repeat: no-repeat;
    background-position: center 27px;
    padding-bottom: 30px;
}
#mainmenu a {
    text-decoration: none;
    color: #efefef;
    font-family: Arial;
    font-size: 0.9em;
    font-weight: 600;
}
#mainmenu a:hover {
    color: #ccc;
    border-bottom: 2px dotted #aaa;
}
#mainmenu li {
    display: inline;
    height: 50px;
    margin-left: 20px;
}

/* submenu */
#submenu {
    width: 150px;
    list-style-type: none;
    background-color: #333;
    position: relative;
    top: 100px;
    padding-top: 30px;
    padding-bottom: 20px;
    z-index: 9;
    background-image: url(images/submenu_corner.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    border-top: 2px solid #fff;
}
#sub_active {
    border-bottom: 2px dotted #ddd;
}
#sub_active:hover {
    border-bottom: 2px dotted #aaa;
}
#submenu a {
    text-decoration: none;
    color: #fff;
    font-family: Arial;
    font-size: 0.8em;
    font-weight: 600;
}
#submenu a:hover {
    color: #ccc;
}
#submenu li {
    margin-left: 20px;
    margin-bottom: 10px;
}

/* tooltip options for partners map */
#tooltip{
    padding:3px 5px;
    font-size: 0.8em;
    border:2px solid #d2dbe1;
    background-image: url(images/tooltip.png);
    background-repeat: repeat;
    color: #000;
}

/* sidebar for possible content */
#sidebar {
    float: right;
    margin-top: 50px;
    margin-right: 20px;
}
/* news section on front page */
#newsbar {
    float: right;
    width: 210px;
    margin-top: 40px;
    margin-right: 0px;
    color: #fff;
    background-image: url(images/news_top.png);
    background-position: top left;
    background-repeat: no-repeat;
    background-color: #333;
}
#newsbar h2 {
    color: #fff;
    margin-top: 10px;
    margin-left: 15px;
}
#newsbar p {
    margin-left: 20px;
    margin-right: 20px;
    font-size: 0.75em;
    text-align: left;
}
#newsbar a {
    text-decoration: none;
    color: #fff;
}
#newsbar a:hover {
    border-bottom: 1px dotted #bbb;
}
.news_date {
    font-size: 0.8em;
    color: #ccc;
}
.date {
    color: #666;
    font-size: 0.9em;
}
#news_dog {
    height: 209px;
    margin-top: 10px;
    background-image: url(images/news_dog.png);
    background-position: bottom right;
    background-repeat: no-repeat;
}

/* the area for all the content of the site */
#text_content {
    width: 840px;
    margin-left: 40px;
    padding-bottom: 120px;
    text-align: left;
}
#text_content_news {
    width: 840px;
    min-height: 500px;
    margin-left: 40px;
    padding-bottom: 120px;
    text-align: left;
    background-image: url(images/news_dog.png);
    background-repeat: no-repeat;
    background-position: 97% 90%;
}

/* text area, not as wide as text_content, leaving space for newsbar or sidebar on the right */
#text_area {
    width: 600px;
    min-height: 300px;
}
#text_area_with_menu {
    width: 600px;
    position: relative;
    left: 140px;
    min-height: 300px;
}
#text_area_frontpage {
    width: 440px;
    position: relative;
    left: 145px;
    min-height: 300px;
}


/*this is for the body text list formatting*/
#bodylist ul{
list-style-type:circle;
}

#bodylist li{
    font-size: 0.7em;
	margin-left: 20px;
}

/* text_area needs to be narrower on the partners-page because of the map */
#partners_text_area {
    width: 400px;
}

/* site text formatting */
h1 {
    padding-top: 30px;
    font-size: 1.4em;
    color: #333;
}
h2 {
    font-size: 1.0em;
    color: #333;
}
/* smaller padding-top when there is no submenu taking space under mainmenu */
h1#no_menu {
    padding-top: 30px;
    font-size: 1.4em;
    color: #333;
}
p {
    padding-top: 1.2em;
    line-height: 1.7em;
    font-size: 0.8em;
    color: #222;
}

/* extra top margin for a big image in the beginning of the page (workpackages) */
#workpackages_image {
    margin-top: 15px;
}
#workpackages_print {
    display: none;;
}

/* options for a table located inside text_area */
#text_area table, #text_area_with_menu table {
    font-size: 0.8em;
    text-align: left;
    margin-top: 5px;
}
#wide_table {
    width: 700px;
}
#text_area th, #text_area_with_menu th {
    background-color: #eee;
    border: 1px dotted #aaa;
    padding: 5px;
    vertical-align: top;
}
#table_column_1, #table_column_3, #table_column_4 {
    width: 60px;
}
#table_column_2 {
    width: 250px;
}
#table_column_5, #table_column_6 {
    width: 55x;
}
#table_column_7 {
    width: 400px;
}
#table_column_8 {
    width: 200px;
}
#table_column_9 {
    width: 100px;
}
#text_area td, #text_area_with_menu td {
    border: 1px dotted #ccc;
    padding-bottom: 5px;
    vertical-align: top;
	padding-left: 2px;
}

#nestedtable td{
    font-size: 1.2em;
	border: 1px dotted #ccc;
    padding: 0px;
    vertical-align: top;
}



/* options for tables on "Contact Us" - page */
#contactinfo  td {
    border: none;
}
#mailform  {
    padding-top: 10px;
    width: 587px;
    font-size: 1.0em;
    text-align: left;
}
#mailform td {
    border: none;
}
.smallprint {
    font-size: 0.9em;
    color: #777;
}
.td_right {
    width: 80px;
    text-align: right;
    vertical-align: middle;
}
.td_message {
    width: 80px;
    text-align: right;
    vertical-align: baseline;
}
.box {
    padding: 3px;
    margin: 3px;
    border: 1px dotted #ccc;
}
.button {
    float: right;
    margin-right: 5px;
    padding: 5px;
    border: 1px solid #dedede;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    background-color: #f5f5f5;
    color: #529214;
    font-family: "Trebuchet MS", Arial, Tahoma, Helvetica, sans-serif;
    font-weight: 600;
}
.button:hover {
    background-color:#dff4ff;
    border:1px solid #c2e1ef;
    color:#336699;
}

/* mail messages */
.failure {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #d91616;
    background-color: #f5f5f5;
}
.success {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #529214;
    background-color: #f5f5f5;
}
.icon {
    padding-right: 5px;
}
/* links within text */
#text_area a, #text_area_with_menu a, #text_area_frontpage a {
    text-decoration: none;
    border-bottom: 1px dotted #000;
    color: #666;
}
#text_area .imagelink, #text_area_with_menu .imagelink, #text_area_frontpage .imagelink {
    border: none;
}

#submit {
    width: 150px;
    margin-left: auto;
    margin-right: auto;
}
#submit p {
    color: #fff;
}
#submit a {
    text-decoration: none;
    color: #fff;
}
#submit a:hover {
    text-decoration: none;
    border-bottom: 1px dotted #ddd;
    color: #ddd;
}

/* footer options, the bottom logos are also located inside the footer */
#footer {
    width: 940px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    background-image: url(images/footer_background.png);
    background-repeat: no-repeat;
}
#logos {
    position: relative;
    width: 500px;
    top: -80px;
    left: 60px;
}
#logos img {
    margin-right: 40px;
}
#footer p {
    position: relative;
    top: -65px;
    left: 40px;
    width: 600px;
    color: #eee;
    font-size: 0.7em;
    font-family: Arial;
}
