/**********************************************************************
 *
 * $Id: screen.css,v 1.6 2006/12/14 17:24:41 lbecchi Exp $
 *
 * purpose: css declarations for sample interface.
 *
 * purpose: This is the sample ka-Map interface.  Feel free to use it 
 *          as the basis for your own applications or just to find out
 *          how ka-Map works.
 *
 * author: Lorenzo Becchi and Andrea Cappugi (www.ominiverdi.org)
 *
 * ka-Explorer interface has been developer for Food and Agriculture 
 * Organization of the United Nations (FAO-UN)
 * 
 *
 **********************************************************************
 *
 * Copyright (c) 2006 Food and Agriculture Organization of the United Nations (FAO-UN)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included
 * in all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
 * DEALINGS IN THE SOFTWARE.
 *
 **********************************************************************/

/* img elements with a class of png24 will have the png24 filter hack applied
 * in IE browsers only.  To make this work, images MUST have a width and height
 * specified.  The minimum tag required is:
 *
 *     <img class="png24" src="<url>" width="xx" height="xx">
 */
img.png24 { filter:expression(applyPNGFilter(this)) }

/* this is a full screen app.  Make sure that overflow is hidden so we don't
 * get scrollbars
 */
body {
    margin: 0px;
    padding: 0px;
    background-color: white;
    overflow: hidden;
}

/* the viewport contains the map and fills the screen.  The viewport can also
 * contain other elements and they appear inside the viewport on top of the map
 * which is what is done with this application.
 */
#viewport {
    position: absolute;
    background-color: #f0f0f0;
    overflow: hidden;
    border-right: 1px solid rgb(212,208,200);
    border-left: 1px solid rgb(128,128,128);
    cursor: move;
    -moz-box-sizing: border-box;
    z-index:0;
}

/* The toolbar contains the tools for changing maps and various navigation
 * and query options.  In this app, we put the toolbar at the top by making it
 * the first thing in the page.
 */
#toolbar {
    position: absolute;
    top:49px;
    left:0;
    margin:0;
    text-align:left;
    padding:0;
    width: 100%;
    height: 31px;
  //  z-index:2;
    cursor: auto;   
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-top: 1px solid white;
    border-bottom: 1px solid rgb(128,128,128);
    background-color:rgb(212,208,200);
    background-image: url(../../images/icon_set_explorer/back_pix.png);
    
    font-size:1px;
}

#toolbar img { vertical-align: middle }
#toolbar select { vertical-align: middle }

/*
* Explorer
*/
#explorer{
	position: absolute;
    top:0;
    left:0;
    margin:0;
    padding:0px;
    width: 100%;
    height: 80px;
    z-index:2;
    cursor: auto;   
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-bottom: 1px solid rgb(128,128,128);
    background-color:rgb(81,83,154);
   
    color:white;
    
    
    background-image: url(../../images/tuuliatlas_banneri_fi.png);
    background-repeat: no-repeat;
    background-position: left top;
    
    
    overflow: hidden;
}

/* this is used to provide a semi-transparent background on divs that contain
 * fully opaque tools.  To use, put <div class="transparentBackground"></div>
 * inside an element that you want to have a semi-transparent background.
 */
#toolbarBackground {
    width: 100%;
    height: 30px;
}

#scaleBackground {
    width: 100%;
    height: 30px;
}

#geoPositionBackground {
	 width: 100%;
    height: 30px;
}

#legendBackground {
	 width: 250;
    height: 240px; #Matti oli 140
}

div .transparentBackground {
    position:absolute;
    top:0px;
    left:0px;
    background-color: #eee;
    filter:alpha(opacity=75); 
    -moz-opacity:0.75;
    opacity:0.75; 
    z-index: -1;
}

#keymap {
    position: relative;
   	bottom:0px;
    padding:0px;
    overflow: hidden;
    filter:alpha(opacity=100);/*trick to prevent IE opacity bug*/
    z-index: 4;
    border: 1px solid #999;
    margin-bottom:20px;
    margin-left:auto;
    margin-right:0px; #Matti, oli auto
    cursor:default;
}

#keymap div {
    filter:alpha(opacity=100);/*trick to prevent IE opacity bug*/
}

#keymap img {
    filter:alpha(opacity=100);/*trick to prevent IE opacity bug*/
}


/* REFERENCE */

/*
#geoPosition,#geoExtent {
    padding:0px;
    margin: 2px;
    margin-left:13px;
    font-size:7pt;
    color: #333333;
    
}
*/

/*
#legend {

    position: relative;
   /* width:254px;*/
    padding:0px;
    margin: 0px;
    /*overflow:auto;*/
}
*/

#print {

    position: absolute;
    width:254px;
    padding:0px;
    margin: 0px;
    overflow:auto;
    background-color:white;
}

#search {

    position: absolute;
    width:254px;
    padding:0px;
    margin: 0px;
    overflow:auto;
    background-color:white;
}

#mapInfo {

    position: absolute;
    width:254px;
    padding:0px;
    margin: 0px;
    overflow:auto;
    background-color:white;
}

#mapLegend {

    position: absolute;
    width:254px;
    padding:0px;
    margin: 0px;
    overflow:auto;
    background-color:white;
}

#link {

    position: absolute;
    width:254px;
    padding:0px;
    margin: 0px;
    overflow:auto;
    background-color:white;
}

#helplink { 
    font-family: Verdana, sans-serif;
    font-size: 100%;
    text-decoration:underline;
}

#identifier {
	position: absolute;
    width:254px;
    padding:0px;
    margin: 0px;
    overflow:auto;
    background-color:white;
}

/*
#scale {
    font-family: Verdana, sans-serif;
    font-size: 10px;
    position: relative;
    padding:0px;
    width: 250px;
    text-align: center;
    margin-top: 48px;
}
*/

#geoPosition {
    position: relative;
    width: 250px;
    height: 30px;
    overflow: auto;
    padding:0px;
    background-color: #ccc;
    margin: 0px;
    border: 1px solid #999;
    font-size: 7pt;
    cursor:default;
}

#legend {
    position: relative;
    width: 250px;
    height: auto; #Mikko, oli: 240 (Matti: oli 140)
    overflow: auto;
    padding:0px;
    background-color: #ccc;
    margin: 0px;
    border: 1px solid #999;
    cursor:default;
}

#scale {
    font-family: Verdana, sans-serif;
    font-size: 14px;
    position: relative;
    filter:alpha(opacity=75);
    -moz-opacity:0.75;
    padding:0px;
    width: 250px;
    height:50px;
    text-align: center;
    margin-top: 48px;
    cursor:default;
}

/*
#scalebar {
    margin-bottom: 20px;
    margin-top: 20px;
}
*/

/*
#scaleReference {
	position:absolute;
	z-index:2;
	right:0px;
	bottom:0px;
    padding:0px;
    border: 1px solid #999;
    height: 35px;
    width:200px;
}
*/

/*
#geoPositionReference {
	position:relative;
	margin:4px;
	margin-right:auto;
	margin-left:auto;
    padding:0px;
    border: 0px solid #999;
    
}
*/

#geoPositionReference {
	position:absolute;
	z-index:2;
	margin-right:auto;
	margin-left:auto;
	right: 0px;
	bottom: 282px; #Matti oli 182
    filter:alpha(opacity=75);
    -moz-opacity:0.75;
    padding:0px;
    height: 30px;
    width: 250px;
    border: 1px solid #999;
    font-family: Verdana, sans-serif;
    font-size: 10px;
    background-color: #ccc;
    cursor:default;
}   

#scaleReference {
	position:absolute;
	z-index:2;
	right:0px;
	bottom:241px; #Matti oli 141
    filter:alpha(opacity=75);
    -moz-opacity:0.75;
    padding:0px;
    border: 1px solid #999;
    height: 40px;
    width:250px;
    background-color: #eee;
    cursor:default;
}

#legendReference {
	position:absolute;
	z-index:2;
	margin-right:auto;
	margin-left:auto;
	right: 0px;
	bottom: 0px;
    filter:alpha(opacity=75);
    -moz-opacity:0.75;
    padding:0px;
    height: 240px; #Matti oli 140
    width: 250px;
    border: 1px solid #999;
    cursor:default;
    overflow:auto;
}


/* SEARCH SYSTEM */


/* CLASSES */

.label {
    font-family: arial;
    font-size: 11px;
    font-weight: normal;
}
.value {
    font-family: arial;
    font-size: 11px;
    font-weight: bold;
}

.separator {
	margin-right:3px;
	margin-left:3px;
}


.kmTitle {
	position:relative;
	top:10px;
	display:inline;
    font-family: Verdana, sans-serif;
    font-size: 20px;
    font-weight: bold;
	font-variant: small-caps;
	margin-left:70px;
	color:black;
}

.kmSubtitle{
	position:relative;
	display:inline;
	font-family: Verdana, sans-serif;
    font-size: 16px;
	margin-left:20px;
	top:10px;
	color:rgb(30,30,40);
}

.minimenu {
	position:absolute;
	top:5px;
	right:15px;
	color:white;
	font-weight: bold;
	font-family: Times, sans-serif;
	text-transform: uppercase;
    font-size: 16px;
    z-index: 2;
}
.minimenu a {
	color:white;
}
.minimenu span {
	margin-left:10px;
}



/* HTML TAGS */
input {
    font-family: arial;
    font-size: 12px;
    font-weight: normal;
}

select {
    font-family: arial;
    font-size: 12px;
    font-weight: normal;
    width: 150px;
}

label {
	display:block;
	margin-top:15px;
}
a { 
    text-decoration: none; 
    font-family: arial;
    font-size: 10px;
    color: #000033;
}

hr {
	border:0;
	border-top: 1px solid white;
    border-bottom: 1px solid rgb(128,128,128);
    background-color:rgb(212,208,200); 
    height:3px;   
}

a:link {}
a:hover {}
a:active {}
a:visited {}


/* OTHERS */


#kaLogo {
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 1;
}

#kaLogo a {
    color:rgb(0,0,0);
}

/*
.kaLegendTitle {  
    padding: 2px;
    padding-bottom:10px;
    font-size: 13px;
    font-weight: bold;
}

.kaLegendLayer  {
    border-top: 1px solid rgb(212,208,200); 
    padding: 2px;
    padding-top:7px;
    padding-bottom:7px;
    font-size: 12px;
}
*/

.kaLegendTitle {
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-bottom: 1px solid #666666;
    border-right: 1px solid #666666;
    padding: 2px;
    font-family: arial;
    font-size: 12px;
    font-weight: bold;
}

.kaLegendLayer, #searchres div {
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-bottom: 1px solid #666666;
    border-right: 1px solid #666666;
    padding: 2px;
    font-family: arial;
    font-size: 12px;
}

#description {
    display: none;
}

/* 
 	KA-EXPLORER LAYOUT
*/
#page {
	position: absolute;
	left:0;
	top:0;
	
	
    overflow: hidden;
}
#layoutFrame {
	position: absolute;
	border-top:0px;
    border-bottom: 1px solid rgb(128,128,128);
    font-family:Verdana, serif;
}



#service {
	position:absolute;
	width:254px;
	overflow:hidden;
	border:0px;
	border-right: 3px solid rgb(212,208,200);
    border-left: 1px solid rgb(128,128,128);
    border-bottom: 1px solid rgb(212,208,200);
}



#curtain {
	position:absolute;
	top:0px;
	left:0px;
	z-index:4;
	width:600px;
	height:2000px;
	background-color:white;
	text-align:left;
}


#content {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgb(128,128,128);
    -moz-box-sizing: border-box;
    /*top:5000px;*/
    display:none;
    z-index:4;
}

#contentButton {
    position: absolute;
    right:12px;
    top:9px;
    
    filter:alpha(opacity=75); 
    -moz-opacity:0.75;
    opacity:0.75; 
}

#contentBackground {
	 width: 100%;
    height: 60px;
}
#contentText {
	overflow: auto;
	position:absolute;
	top:30px;
	left:15px;
	border: 1px solid rgb(212,208,200);
}


#page h1,#page h2,#page h3{
	text-align:left;
	font-size:12pt;
	margin:4px;
	margin-bottom:15px;
	color:rgb(20,20,40);
}
#page h4,#page h5,#page h6{
	text-align:left;
	font-size:10pt;
	margin:4px;
	margin-bottom:8px;
	color:rgb(20,20,40);
}

#page p{
	margin:4px;
	font-size:10pt;
}
#page form{
	margin:4px;
	font-size:10pt;
}

#mapTitle{
	margin:6px;	
}

#data th {
    border:1px solid black;
    font-size:8pt;
    padding:2pt;
    background: rgb(170,170,170);
    color: white; 
    font-weight:bold;  
}

#data td {
    border-bottom:1px solid black;
    font-size:8pt;
    padding:2pt;
}

#link a {
	margin-left:10px;
	font-size:10pt;
	text-decoration:underline;
}
#link a:hover {
	text-decoration:none;
}


#faologo {
	position:absolute;
	right:0;
	top:0;
}
#povertylogo {
	position:absolute;
	left:0;
	top:0;
}

