@import "lib/reset.css";
@import "lib/typography.css";
@import "lib/forms.css";

@import "core.css";

html, body {
    /* for finding the window height in Opera */
    min-height: 100%;
}

body {
    color: #2E6525;
    /* background: transparent url(../images/mobile/circles_landscape.gif) no-repeat scroll bottom center; */
    margin: auto;
    max-width: 500px;
    border-bottom: 3px solid #55AC35;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, input, textarea {
    font-family: 'Shanti', serif; font-size: 16px;
}


/* IE Mobile will use the previous style. 
 * The following is for all other browsers. */
html>body { font-size: 100%; }

h1 { font-size: 1.75em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.3em; }

h1, h2 { margin-bottom: 0.25em; }
h3 { margin-bottom: 0.35em; }
h4,h5 { margin-bottom: 0.45em; }

p,table {
    margin-bottom: 0.75em;
}

form.hform p label {
    display: block;
    float: none;
    width: auto;
}

textarea, form.hform p textarea {
    height: 100px;
    font-size: 0.95em;
    padding: 0.2em;
    margin: 0;
    width: 200px;
}

form.hform p input.button {
    padding: 0;
    font-size: 1.1em;
}


form.hform .browse_info {
    display: block;
    font-style: italic;
}

form.hform .browse_img {
    max-width: 100px;
}

.help_text {
    display: block;
    color: #2E6525;
    margin-top: 0.15em;
}

.highlight {
    background-color: transparent;
    color: #55AC35;
}

div.pagination {
    text-align: right;
	padding: 3px 0;
	margin: 3px 0px;
    white-space: nowrap;
}

div.pagination a {
	padding: 1px 3px;
	margin-right: 0;
	border: 1px solid #ddd;
	text-decoration: none; 
	color: #55AC35;
}
div.pagination a:hover, div.pagination a:active {
	border:1px solid #2E6525;
	color: #2E6525;
	background-color: #F1FFD6;
}
div.pagination span.current {
	padding: 1px 3px;
	margin-right: 0;
	border: 1px solid #2E6525;
	font-weight: bold;
	background-color: #2E6525;
	color: #FFF;
}
div.pagination span.disabled {
	padding: 1px 3px;
	margin-right: 0;
	border: 1px solid #f3f3f3;
	color: #aaa;
}

a.gps_link {
    vertical-align: bottom;
}

a.image-select-link {
    display: block;
    margin-top: 2px;
}

/* Messages */
#status {
    background-color: #55AC35;
    color: #FFFFFF;
	text-align: left;
    min-height: 3px;
    height: auto !important;
    height: 3px;
    margin: 0 auto;
    max-width: 500px;
}
#status h1, #status h2, #status h3, #status h4, #status h5, #status h6, #status a {
	color: #FFFFFF;
}
#status a {
    text-decoration: underline;
	font-weight: bold;
}

#status p {
    margin: 0px; 
	padding: 5px;
}

#status .errors {
    background-color: #2E6525;
    font-weight: bold;
}

#status a.button {
    color: #2E6525;
    border-color: #2E6525;
    text-decoration: none;
}


.info, .message, .warning, .error {
    background-color: #55AC35;
    color: #FFFFFF;
	margin: 0 0 4px;
	padding: 0;
	text-align: left;
	font-size: 0.9em;
	font-weight: bold;
}

.info h3, .message h3, .warning h3, .error h3 {
	padding: 5px 5px 0 5px;
	margin: 0;
	font-weight: bold;
    color: #FFFFFF;
}

.info p, .message p, .warning p, .error p,
.info li, .message li, .warning li, .error li {
	padding: 5px;
	margin: 2px 0 0 0 ;
	font-weight: normal;
}

.message, .error {
    font-weight: bold;
}

.error {
    background-color: #2E6525;
}

#logo {
    margin: 5px 0 10px 0;
    text-align: center;
}

#content {
    margin: 0 auto;
    max-width: 500px;
}

#content .info, #content .message, #content .warning, #content .error {
    margin-left: -5px;
    margin-right: -5px;
}

#footer {
    margin: 30px auto;
    max-width: 500px;
}

#footer_menu {
    text-align: right;
    margin: 2px 0;
}

#screen_content img {
    /* limit image widths: screen width - scroll bar width (give 20px) */
    max-width: 210px;
}

#screen_content img.large_img {
    width: 210px;
}
/* IE Mobile will use the previous style. 
 * The following is for all other browsers. */
html>body #screen_content .large_img {
    max-width: 210px;
    width: auto;
}

#content .loginBlock {
	background-color: #55AC35;
    margin-bottom: 10px;
}
#content .loginBlock label {
    display: block;
}
#content .loginBlock a {
    color: #FFFFFF;
}
#loginForm {
    margin: 0;
    padding: 3px 5px;
    /* IE MOBILE HACK */
    font-size: 1.2em;
    line-height: 1.4em;
}
/* IE Mobile will use the previous style. 
 * The following is for all other browsers. */
html>body #loginForm {
    font-size: 1em;
}
#loginForm form {
    padding-bottom: 10px;
}

#loginForm p {
    margin-bottom: 2px;
}

#loginForm p input.checkbox {
    vertical-align: middle;
}

/* home page */
#home {
    text-align: center;
}

#home_menu span.first {
    margin-right: 20px;
}

#store_status_lnk img {
    vertical-align: middle;
}

a#store_status_lnk {
    text-decoration: none;
}

#logout a.button {
    margin-right: 5px;
}

/* product (KMFI) list page */

tbody.row1 {
    background-color: #eafbe6;
}

#products {
    width: 100%;
}

#products th, #products td {
    vertical-align: top;
    border-bottom: none;
    padding: 2px 2px 2px 0;
}


#products tr.title_row th, #products tr.title_row td {
    padding-top: 0;
    padding-bottom: 0;
}

#products tr.title_row th, #products td.prod_logo {
    padding-left: 2px;
}


#products tr.info_titles th {
    font-weight: normal;
    padding: 10px 10px 0 0;
}

#products tr.info_row td {
    white-space: nowrap;
    vertical-align: middle;
}

#products h3, #products a {
    margin: 0;
    color: #2E6525;
}

#products h3, 
#products h3 a {
    line-height: 1.1em;
    font-weight: bold;
}

#results table {
    width: 100%;
}

#results th, #results td {
    border-bottom: none;
}

#results th a {
    font-weight: bold;
}

#results tbody.row1, #results tbody.row2 {
    border-bottom: 2px solid #DDDDDD;
}

#register-individual #register_menu #individual a,
#register-commercial #register_menu #commercial a,
#register-educational #register_menu #educational a,
#register-ngo #register_menu #ngo a
{
    color: #2E6525;
    font-weight: bold;
}

/* register menu */
#register_menu {
    margin: 4px 0 8px;
    padding: 2px 0;
}
#register_menu span {
    margin: 0 4px;
}
#register_menu span.first {
    margin-left: 0;
}
#register_menu span.last {
    margin-right: 0;
}

/* device (interface) menu */
#device_menu {
    margin-top: 4px;
    margin-bottom: 20px;
    padding: 2px 0;
    text-align: center;
}

#device_menu span {
    margin: 0 4px;
}

#device_menu span.last {
    margin-right: 0;
}
#device_menu span.first {
    margin-left: 0;
}

/* thumbnail navigation */
.thumb_nav {
    text-align: center;
    background-color: #fff;
}

.thumb_nav .images a {
    margin: 0 1px;
}

#device_menu img, 
.thumb_nav img {
    vertical-align: middle;
}

/* Key */


/* Level questions */
#level table.questions {
    width: 100%;
}

#level table.questions td {
    border: none;
    padding: 0 10px 0 0;
}
#level table.questions td.td_example {
    width: 16px;
    padding-right: 0;
    vertical-align: bottom;
}

/* alike sepcies menu */
#alike { margin: 0 0 0.75em; }

/* species characteristics list */
#characteristics {
    list-style-type: none;
    margin: 0 0 0.75em;
}
#characteristics li { list-style-type: none; }
#characteristics ul { margin: 0 0 0.5em;; }

/* map styles */

#intro_block {
}

#intro_img {
    margin:0 5px 5px 0;
}

#map_menu, #place_menu {
    border-bottom: 2px solid;
    margin-bottom: 2px;
    text-align: center;
    color: #55AC35;
    height: 50px;
}
#map_menu span {
    margin: 0 8px;
}

#place_menu span {
    margin: 0 0px;
}
#place_menu span.first {
    margin-left: 0;
}
#place_menu span.last {
    margin-right: 0;
}

#map_wrapper {
    position: relative;
    top: 0;
    left: 0;
    overflow: hidden;
    height: 240px;
}

#map_wrapper img {
    max-width: none;
}

#map_control {
    background: transparent url(../images/mobile/map/smc.gif) no-repeat scroll 0 0;
    width: 37px; 
    height: 94px; 
    position: absolute; 
    left: 7px; 
    top: 7px; 
    z-index: 2;
}

#map_goto_menu {
    margin-right: 20px;
}

#map_goto_menu ul {
    list-style-type: none;
    margin: 0;
}

#map_goto_menu li {
    border: 1px solid;
    padding: 0 2px;
    cursor: pointer;
}

#map_control div {
    width: 18px; height: 18px;
    cursor: pointer;
}

#pan_up {
    position: absolute; left: 9px; top: 0; 
}
#pan_down {
    position: absolute; left: 9px; top: 37px;
}
#pan_left {
    position: absolute; left: 0; top: 18px; 
}
#pan_right {
    position: absolute; left: 18px; top: 19px;
}

#zoom_in {
    position: absolute; left: 9px; top: 57px; 
    width: 18px; height: 18px;
}
#zoom_out {
    position: absolute; left: 9px; top: 75px;
    width: 18px; height: 18px;
}

#location_block {
    z-index: 10;
    background-color: #FFFFFF;
    position: absolute;
    bottom: 2px;
    left: 2px;
    font-size: 0.75em;
    padding: 0 2px;
    border: 1px solid;
}

#current_location {
    margin-right: 3px;
}
#track_button {
    vertical-align: middle;
}

/*
#map_menu {
    float: left;
	clear: right;
}

#map_menu span {
    display: block;
    float: left;
    margin: 0 8px 5px;
    padding: 30px 0 0;
    text-align: center;
    width: 30px;
    font-size: 0.8em;
}

#map_menu #add_menuitem {
    margin-left: 20px;
    background: transparent url(../images/mobile/map/add.gif) no-repeat scroll 0 0;
}

#map_menu #goto_menuitem {
    background: transparent url(../images/mobile/map/add.gif) no-repeat scroll 0 0;

}

#map_menu #quiz_menuitem {
    background: transparent url(../images/mobile/map/add.gif) no-repeat scroll 0 0;

}

#map_menu #help_menuitem {
    margin-right: 20px;
    background: transparent url(../images/mobile/map/add.gif) no-repeat scroll 0 0;
}
*/

#mapPlace .place_block {
    margin-top: 5px;
}

#mapPlace .place_block .slides .slide {
    margin-bottom: 2px;
}

#mapPlace .place_block .slides .caption {
    font-size: 1.1em;
}



/**
modal_content => sm_content
modal_overlay => sm_olay
modal_close => sm_close
modal_title => sm_title
**/

/*modal*/
#sm_content {
    display: none;
    position: fixed;
    left: 50%;
    padding: 5px;
    top:20%;
    -webkit-box-shadow: 0px 0px 8px #111;
    width:200px;
    margin-left:-107px;
    max-height: 60%;
    overflow: auto;
    background-color: #FFFFFF;
    border: 2px solid #2E6525;
}
#sm_content small{font-size:77%;}
#sm_content .sm_close p {
	float:right;
	cursor:pointer;

    background-color:#ECE9D8;
    border:1px solid #55AC35;
    color: #55AC35;
    font-size:0.95em;
    line-height: 0.95em;
    padding:1px 3px;
    text-decoration:none;
    vertical-align:bottom;

}
#sm_content h3{font-size:116%;}
#sm_olay { background-color: #000; }
/* Background iframe styling for IE6. Prevents ActiveX bleed-through (<select> form elements, etc.) */
* iframe.overlay {position:absolute;top:0;left:0;z-index:-1;
	width: expression(this.parentNode.offsetWidth+'px');
	height: expression(this.parentNode.offsetHeight+'px');
}

/* Fixed posistioning emulation for IE6
Star selector used to hide definition from browsers other than IE6
For valid CSS, use a conditional include instead */
* html #sm_content {
    position: absolute;
    top: expression(document.documentElement.scrollTop + Math.round(17 * document.documentElement.offsetHeight / 100) + 'px');
}

#confirm .modal_message, #alert .modal_message {
    margin-right: 20px;
}

#confirm .buttons, #alert .buttons {
    margin-top: 5px;
    text-align: right;
}

#status .confirm_buttons {
    margin-left: 5px;
}

body.fye {
    border-bottom-color:#652173;
}

body.fye label, body.fye legend, body.fye, body.fye h1, body.fye h2, body.fye h3, body.fye h4, body.fye h5, body.fye h6, body.fye a {
    color: #652173;
}

body.fye .help_text, body.fye input, body.fye textarea, body.fye select{
    color: #9a34b0;
}

body.fye tbody.row1 {
    background: #f4fafb;
}

body.fye a.button {
    background: #f4cafd;
    border-color: #9a34b0;
}

/*
 * Gyroscope
 */

#gyroscope #no { display: none; }
		
#gyroscope div, #gyroscope span {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
}			

#gyroscope .outer {
    padding: 0px;
    min-height: 48px;
        
}

#accel {
        float: left;
        width: 45%;
        padding: 7px;
}	

#gyroscope .box span {
        display: block;
}

#gyroscope span.head {
        font-weight: bold;				
}
		


/* Quiz question */
#answer_indicator{
    width: 16px;
    height: 16px;
    display: inline-block;
}
#answer_indicator.right{
    background: transparent url(../images/mobile/tick.gif) no-repeat scroll 0 0;
}
#answer_indicator.wrong{
    background: transparent url(../images/mobile/cross.gif) no-repeat scroll 0 0;
}
