/* WHITESPACE RESET */

* { margin:0; padding:0; }
h2, h3, h4, h5, h6, p, pre, blockquote, label, ul, ol, dl, fieldset, address { margin:1em 0; }
li, dd { margin-left:2em; }
fieldset { border:none; }

/* CONTENT */

html { font-size:100.1%; height:100%; }
body { background:#00477C url("/_img/body.gif") repeat-x; color:#FFF; font:62.5%/2.2em "trebuchet ms", tahoma, sans-serif; height:100%; overflow:hidden; }

h1 a { background:url("/_img/h1-a.gif") no-repeat; display:block; height:28px; left:311px; overflow:hidden; position:absolute; text-indent:-99em; top:18px; width:474px; }
h2 { height:21px; background-repeat:no-repeat; margin:-17px 0 -5px 0; position:relative; text-indent:-99em; z-index:2; }
strong { color:#FFFDDE; }

a { color:#FFDCA5; }
a:hover { color:#FF9; text-decoration:none; }

/* FORM ELEMENTS */

select, .button, .text { background:#4085A3; border:1px solid #80B0C3; color:#FFF; font:1em/1 "trebuchet ms", tahoma, sans-serif; height:1.5em; }
legend, label { margin-right:7px; }
legend, label, thead th, h3 { color:#D7DF84; font:bold 1em/1 tahoma, sans-serif; }
fieldset label, .tree label { color:#FFF; font:.99em/1 "trebuchet ms", tahoma, sans-serif; margin:0; }
body .text { margin-left:0; }

.button { background:right top no-repeat; border:none; color:#FFF; cursor:pointer; font:1em/1 "trebuchet ms", tahoma, sans-serif; height:23px; padding:1px 4px 22px 2px; }
.button:hover { color:#FF9; }
a.button { height:20px; padding:5px 7px 0 5px; text-decoration:none; white-space:nowrap; }
#selection .button { background-image:url("/_img/selection-button.gif"); float:right; margin:-11px 10px 0 0; }
#results .button { background-image:url("/_img/results-button.gif"); margin:9px 0 0 7px; }
#filtering .button { background-image:url("/_img/filtering-button.gif"); position:absolute; right:10px; top:4.5em; }
#small-map .button { background-color:#65752E; background-image:url("/_img/small-map-button.gif"); height:16px; padding:0 2px 18px 2px; position:relative; right:1px; top:-2px; }
#small-map a.button { padding:1px 5px; }
#popup .button, #alert .button { background-image:url("/_img/popup-button.gif"); }
.disabled { opacity:0.5; -moz-opacity:0.5; }

/* LAYOUT */

#container { font-size:1.1em; height:100%; }
#header { background:url("/_img/header.jpg") right top no-repeat; height:80px; position:relative; z-index:8; }
#government { background:url("/_img/government.gif") no-repeat; height:42px; left:10px; overflow:hidden; position:absolute; text-indent:-99em; top:5px; width:258px; }
#nav { list-style:none; position:absolute; right:15px; top:43px; }
#nav li { float:left; }

/* DATA SELECTION */

#selection, #filtering { background:#001758; left:14px; position:absolute; width:283px; }
#selection { background:#00205D url("/_img/selection.gif") repeat-x; top:78px; z-index:6; }
#selection h2 { background-image:url("/_img/selection-h2.gif"); }
#selection form, #filtering form { padding:5px 0 0 11px; }
#selection form { background:url("/_img/selection-form.gif") 0 bottom no-repeat; padding-bottom:15px; }
#selection fieldset { clear:both; }
#selection legend { padding-top:.5em; }
#selection select { width:180px; } /* SAFARI */
#selection .species { float:left; }
#selection p { line-height:1.4; margin:-1.7em 0 .3em 4.6em; }
#selection p span { white-space:nowrap; }
#selection .method { margin:-1em -100px 0 50px; width:300px; }
#selection .method label { display:block; float:left; padding:0 0 6px 17px; position:relative; width:66px; }
#selection .method input { left:0; position:absolute; top:0; }
#selection .method .all { width:100px; }
#selection .source { white-space:nowrap; }

/* MAP FILTERING */

#filtering { background:#00215F url("/_img/filtering.gif") 0 bottom no-repeat; margin-top:12em; padding-bottom:350px; top:145px; z-index:4; }
#filtering h2 { background-image:url("/_img/filtering-h2.gif"); }
#filtering form { height:6em; position:absolute; width:273px; }
#filtering label { color:#B6CD76; float:left; margin:1px 3px 2px 0; white-space:nowrap; }
#filtering select, body.large-map #popup select, .text { background-color:#405886; border-color:#8091AF; margin-left:5px; }
#species { width:210px; }
#method { margin-right:32px; width:80px; }
#year { width:61px; }
#small-map { background:#CFE0E5; clear:both; padding:5px; position:absolute; left:12px; top:7em; width:250px; }
#small-map form { position:absolute; top:3px; right:7px; width:auto; }
#small-map .map { background:url("/_img/small-map-map.gif"); height:250px; width:250px; }

/* RESULTS TABLE */

#results { padding:0px 10px 0 311px; position:relative; top:-3px; z-index:2; } /* SAFARI */
#results h2 { background-image:url("/_img/results-h2.gif"); margin-bottom:-4px; width:200px; }
#results form { background:url("/_img/selection.gif") repeat-x; height:36px; }
#results fieldset { float:left; padding-left:80px;  }
#results .settings { float:right; margin:-47px 0 -30px 0; }
#results .settings label { padding:0 .7em 0 15px; position:relative; }
#results .settings input { left:0; position:absolute; top:1px; }
#results legend { margin:1.45em 0 -1.45em -4.5em; }

#data { background:fixed #CFE0E6 url("/_img/table.gif") 0 115px repeat-x; height:500px; overflow:auto; padding-right:5px; } /* SAFARI */
table { border-collapse:collapse; width:100%; }
td, tbody th { border-right:1px solid #AAC6D3; border-bottom:1px solid #C9D9E2; color:#000; font-size:1.09em; font-weight:normal; padding:.3em .5em; text-align:left; }
thead th { background:#002960; padding:.7em .5em; text-align:left; }
tbody th { white-space:nowrap; }
.striped td, .striped th { background:url("/_img/striped-td.png"); border-bottom-color:#C1D4DF; border-right-color:#A5C4D3; }
#results .selected { background:#FFF; color:#F00; display:block; }

#notice { background-color:#EEC; color:#000; height:25px; margin:0; padding:5px 0 4px 10px; }
#notice a { color:#F00; }

/* POPUP */

#popup { height:100%; position:absolute; width:100%; z-index:10; }
#content { background:url("/_img/content.png") no-repeat; font-size:1.09em; left:50%; line-height:1.4; margin:-240px 0 0 -310px; padding:0 40px 0 40px; position:absolute; top:40%; width:540px; }
#popup .bottom { background:url("/_img/popup-bottom.png") 1px 0 no-repeat; clear:both; height:15px; left:-40px; position:relative; top:15px; width:620px; }
.column { float:left; margin-right:5.33%; width:28%; }
.buttons { clear:both; text-align:right; margin-bottom:-3px; position:relative; left:20px; }
.buttons a.button { padding:2px 7px 5px 5px; }

#popup h2 { margin:30px 0 -5px -5px; width:300px; }
h2.welcome { background-image:url("/_img/h2-welcome.gif"); }
h2.help { background-image:url("/_img/h2-help.gif"); }
h2.about { background-image:url("/_img/h2-about.gif"); }

#alert { background:url("/_img/alert.png") no-repeat; font-size:1.09em; left:50%; line-height:1.4; margin:-240px 0 0 -210px; padding:0 40px 0 40px; position:absolute; top:40%; width:340px; z-index:12; }
#alert h2 { margin:30px 0 -5px -5px; width:300px; }
h2.alert { background-image:url("/_img/h2-alert.gif"); }
#alert .bottom { background:url("/_img/alert-bottom.png") 1px 0 no-repeat; clear:both; height:15px; left:-40px; position:relative; top:15px; width:420px; }

#mask { background:#00477C url("/_img/body.gif") repeat-x; height:100%; -moz-opacity:0.8; opacity:0.8; position:absolute; width:100%; z-index:0; }
body.show-popup #mask { z-index:9; }
body.show-alert #mask { z-index:11; }

/* LARGE MAP */

body.large-map #content { background:url("/_img/large-map.png") no-repeat; font-size:1.09em; left:50%; line-height:1.4; height:570px; margin:-240px 0 0 -366px; padding:15px; position:absolute; top:40%; width:703px; }
body.large-map #popup select { margin-right:10px; }
body.large-map #popup .close { left:auto; position:absolute; right:18px; top:10px; }
body.large-map #popup form .update { float:none; margin-left:-10px; position:static; }
body.large-map #popup p { height:22px; margin:0; }
body.large-map #popup h2 { margin:0; }
body.large-map #popup .show { float:left; margin-bottom:1.2em; width:187px; }
body.large-map #popup fieldset input { top:-1px; }
body.large-map #popup fieldset label { white-space:nowrap; }
#species2 { width:183px; }
#method2 { width:80px; }
#year2 { width:61px; }
h2.map-view { background-image:url("/_img/h2-map-view.gif"); }
#large-map { bottom:15px; height:500px; left:15px; position:absolute; width:500px; }
#large-map .map { background:url("/_img/large-map-map.gif"); height:500px; width:500px; }
#large-map form { position:absolute; right:3px; top:3px; z-index:1; }
#large-map .button { background-image:url("/_img/large-map-button.gif"); float:none; height:20px; padding:1px 24px 19px 2px; top:0; }
#large-map a.button { height:auto; padding:2px 27px 2px 5px; }
#large-map .zoom-in { background-position:right -20px; }
#large-map .pan { background-position:right -40px; }
#large-map .active { background-image:url("/_img/large-map-active.gif"); }

#large-map .guide { background:url("/_img/guide.jpg"); height:100px; left:510px; position:absolute; top:400px; width:100px; }
#large-map .guide div { border:1px solid #F00; height:20px; left:20px; position:absolute; top:10px; width:20px; }

/* LEGEND */

#legend { left:525px; top:95px; position:absolute; }
h2.legend { background-image:url("/_img/h2-legend.gif"); }
#legend label { clear:both; display:block; float:left; padding:0 0 6px 17px; position:relative; }
#legend fieldset input { left:0; position:absolute; top:0; }

#legend ul { list-style:none; }
#legend li { margin:0; padding-bottom:2px; }
#legend span { display:block; float:left; height:1.2em; margin-right:5px; width:20px; }
.v1 span { background:#0052C4; }
.v2 span { background:#2C76D1; }
.v3 span { background:#5B9ADE; }
.v4 span { background:#95C3EC; }
.v5 span { background:#CDE6FA; }

/* CHANGE SPECIES */

#popup .species p { float:left; margin:-2.2em 0 0 10em; }
.search { margin-bottom:5px; }
#popup .species .button { clear:none; }
#popup .search .button { float:none; margin:0; position:static; }
h2.change-species { background-image:url("/_img/h2-change-species.gif"); }

.tree, .tree ul { list-style:none; margin:0; }
.tree { height:430px; margin-bottom:15px; overflow:auto; position:relative; width:557px; }
.tree ul { margin-top:.4em; }
.tree h3 { background:url("/_img/tree-h3.gif") 3px .1em no-repeat; float:left; padding-left:15px; margin:0; width:210px; }
.tree h3 a { color:#D7DF84; text-decoration:none; }
.tree li { clear:both; font-weight:bold; padding:.3em 0; margin:0; }
.tree li li { background:none; font-weight:normal; margin-left:25px; padding-left:20px; position:relative; }
.tree input { left:0; position:absolute; }
.tree .expanded h3 { background:url("/_img/tree-expanded.gif") 0 .4em no-repeat; }
.tree label { cursor:pointer; display:block; float:left; line-height:1; width:420px; }
.tree li li strong { display:block; float:left; width:180px; }
.tree li:hover { background:url("/_img/tree-li.png"); }

/* SCREENS */

body.hide-map #small-map * { visibility:hidden; }
body.hide-map #small-map { opacity:0.2; -moz-opacity:0.2; }
body.hide-map #filtering p { position:absolute; padding:60px; text-align:center; top:90px; }

body.hide-results #mask { z-index:5; } /* DATA SELECTION */

/* TEMPORARY, FOR DEMONSTRATION PURPOSES - REMOVE WHEN PUBLISHED */

#large-map .zoomed { background-image:url("/_img/large-map-zoomed.gif"); } 
#large-map .zoomed a { display:block; height:500px; width:500px; }
#small-map .zoomed { background-image:url("/_img/small-map-zoomed.gif"); } 