html {
 height: 100%;
}
body {
  font-family: "Arial";
  height: 100%;
  width: 100%;
  overflow: auto;
  margin: 0px;
  padding: 0px;
}
/* RUNKO TYYLIT ------------------------------------- */
#runko {
  position: absolute;
  top: 123px;
  bottom: 30px;
  background-color: white;
  width: 100%;
}

h2 {
  font-size: 1em;
  margin-bottom: 0.5em;
  font-variant: small-caps;
  margin-top: 0.5em;
  padding-left: 0.1em;
}
#runkoVasen {
  width: 20%;
  float:left;
  padding-left: 1%;
  padding-right: 1%;
  overflow: scroll;
  padding-bottom: 16px;
}
#asiasanaValikko {
  padding: 0px;
  list-style-type: none;
  margin-left: 0px;
  margin-top:0.5em;
}
#asiasanaValikko li,
#asiasanaValikkoTermit li {
  list-style-type: none;
  margin-bottom: 0.5em;
  font-size: 0.8em;
  text-indent: -1.40em;
  padding-left: 1.4em;
}
#asiasanaValikko a,
#asiasanaValikkoTermit li {
  color:blue;
  text-decoration: underline;
  cursor: pointer;
}
#asiasanaValikkoTermit {
  margin-top:0.5em;
  padding-left: 0px;
}
#asiasanaValikkoTermit li a {
	display: block;
}
#termiOtsikko {
	font-size: 0.8em;
}
#termiOtsikko,
#aakkosAlaOtsikko {
  display: inline;
  font-variant: normal;
}
#aakkosAlaOtsikko {
  padding-top: 0.5em;
  width: 100%;
  font-size: 0.8em;
}
#ylaNuoli {
	border-radius: 5px;
  font-size: 0.8em;
  font-weight: bold;
  display: inline;
  border: 1px solid #13304D;
  margin-right: 10px;
  margin-bottom: 0.5em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  cursor: pointer;
}
#ylaNuoli:hover {
  border: 2px solid #13304D;
  margin-left: -1px;
  margin-right: 9px;
}
#asiasanaOtsikko,
#aakkosOtsikko {
  border-radius: 5px;
  text-align: center;

  /*EDKSOHA-220*/
  /* alkup. gradient-toteutus (IE6-IE7) */
  background-color:  rgb(120, 0, 0);
  background-image: url("../kuvat/otsikko_gradient.png");
  /* IE 8-9, gradient-toteutus  */
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#da0000, endColorstr=#780000)"; 
  /* Uudemmat selaimet, gradient-toteutus  */
  background-image: linear-gradient(to top, rgb(120, 0, 0), rgb(218, 0, 0));

  cursor: pointer;
  color: white;
  /* height: 20px; EDKSOHA-220 absoluuttinen korkeus poistettu, jotta nappi olisi responsiivisempi */
  vertical-align: middle;
  padding-top: 0.05em;
  padding-bottom: 0.05em;
}
#hakemisto {
	margin-bottom: 0px;
	padding-bottom: 0px;
}
#hakemisto table {
	margin-bottom: 1em;
	padding-bottom: 0.5em;
	width: 100%;
	border-bottom: 1px solid #5082B3;
}
#hakemisto table tbody tr {
	text-align: center;
}

#hakuKentta {
/*	border-radius: 5px;
  border: 1px solid black;
  background-color: #C5DBEC;*/
  margin-bottom: 0.5em;
  margin-top: 0.5em;
  padding: 0.3em;
}
#aakkosTaulu tbody tr td a {
	margin: 2px;
	width: 2px;
	display: inline;
	cursor: pointer;
	border-bottom: 1px solid rgb(0, 0, 255);
	color: rgb(0, 0, 255);
}
#hakuKentta .painike {
	width: 29%;
	margin-left: 1%;
	height: 2.2em;
/*	color: white;
	border: 0px;
	background-color: #03355C;
	border-radius: 5px;*/
  /*margin-top: 1px;*/
 /* border: 2px solid black;
  padding: 0.1em 1em 0.1em 1em;
  font-size: 0.8em;
  text-align: center;
  height: 2em; */
  /*margin-right: 10px;*/
  /*font-weight: bold;*/
  vertical-align: middle;
}
#haku {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  padding: 0.2em;
  font-size: 1em;
  width: 65%;
}
#runkoOikea {
  width: 76%;
  float: left;
  padding-left: 1%;
  padding-right: 1%;
  height: 100%;
  overflow: auto;
}
#runkoOikea h3 {
  margin-bottom: 0.5em;
  border-bottom: 1px dotted #002242;
}
#runkoOikea p {
  margin-bottom: 0.5em;
  font-size: 0.8em;
  display: block;
}
/* SANATAULUKON TYYLIT ----------------------------- */
#runkoOikea table { 
	border-radius: 5px;
  width: 100%;
  padding-left: 1em; 
  padding-bottom: 0.5em;
  border: 2px solid #5082B3;
  margin-top: 0.5em;
  font-size: 0.8em;
}
#runkoOikea table tbody tr td {
  border-bottom: 1px dotted gray;
  padding-top:0.5em;
  width: 40%;
  text-align: left;
}
#runkoOikea table tbody tr:first-child td {
  font-weight: bold;
  vertical-align:text-top;
}
#runkoOikea table tbody tr td:first-child {
  font-style: italic;
  vertical-align: top;
  
}
#runkoOikea table tbody tr td a {
	cursor: pointer;
	border-bottom: 1px solid rgb(0, 0, 255);
	color: rgb(0, 0, 255);
	margin-right: 0.5em;
}
td.selma {
	border-bottom: 0px !important;
	text-align: center !important;
}
td.selma a {
 border: 0px !important;
}
/* YLABANNERIN TYYLIT ------------------------------- */
#ylaBanneri {
  width: 100%;
  position: absolute;
  top: 13px;
  height: 109px;
  overflow:hidden;
  border-bottom: 1px solid #03355c;
}
#huippuValikko {
  height: 30px;
}
#kieliValikko{
  list-style-type: none;
  text-align: left;
  margin: 0px;
  margin-top: 0px;
  padding: 0px;
  float:left;
  clear:both;
  margin-left: 23px;
 }
#ylaBanneri img {
  float: left;
  height: 90px;
  border: 0px;
  clear: left;
}
#ylaBanneriOikea {
  border-left: 2px solid rgb(3, 53, 92);
  float: left;
  text-align: left;
  padding-left: 2em;
  margin-left: 1em;
  margin-top: 25px;
  padding-bottom:0px;
  padding-top:0px;
  height: 45px;
}
#ylaBanneriOikea h1 {
  color: rgb(3, 53, 92);
  font-size: 1.3em;
  margin-bottom: 0em;
  margin-top: 0px;
  
}
#ylaBanneriOikea ul {
  padding: 0px;
  list-style-type: none;
}
#ylaBanneriOikea li {
  display: inline;
  border-left: 1px solid rgb(3, 53, 92);
  color: rgb(3, 53, 92);
  padding-left: 0.3em;
  padding-right: 0.3em;
  font-size: 0.8em;
  cursor: pointer;
  
}
#ylaBanneriOikea li a {
  text-decoration: none;
  color: rgb(3, 53, 92);
}
#ylaBanneriOikea li a:hover {
  text-decoration: underline;
}
#ylaBanneriOikea li a:visited {
  color: rgb(163, 0, 0);
}
#banneriValikko #firstBannerivalikkoChild {
	border: none;
	padding-left: 0px;
}
#banneriValikko {
 font-size: 1.1em;
 padding: 0px;
 margin: 0px;
}
.ui-autocomplete {
	font-size: 0.8em !important;
	max-height: 300px;
	overflow-y: scroll;
}
/* ADDRESS TYYLIT ----------------------------  */
#alaBanneri {
  width: 100%;
  height: 25px;
  border-top: 1px solid rgb(3, 53, 92);  
  padding-top:5px;
  background-color: white;
  text-align:right;
  position: absolute;
  bottom: 0px;
  left: 0px;
  overflow:auto;
}
#alaBanneri a {
	color: rgb(3, 53, 92);
	text-decoration: none;
	margin-right: 1em;
    	font-size: 0.8em;
 	font-style: normal;
}
#alaBanneri a:hover {
	border-bottom: 1px solid white;
}
#palauteValikko {
	float: right;
	width: 50%;
    	margin: 0px;
    	margin-top: 7px;
	text-align:right;
	padding: 0px;
}
#kieliValikko a,
#palauteValikko a {
  color: rgb(3, 53, 92);
  text-decoration: none;
}
#kieliValikko li,
#palauteValikko li {
  color: rgb(3, 53, 92);
  display: inline;
  border-left: 1px solid rgb(3, 53, 92);
  padding-right: 0.5em;
  padding-left: 0.5em;
  
  font-size: 0.8em;
  font-style: normal;
}
#kieliValikko li a:hover,
#palauteValikko li a:hover {
  text-decoration:underline;
}
#kieliValikko #firstKieliChild,
#palauteValikko #firstPalauteChild {
  border: none;
  margin-left: 0px;
  padding-left: 0px;
}
#lataus {
	padding-top: 2em;
}
#latausDiv {
	width: 100%;
	text-align: center;
}
/* MISC --------------------------------------- */
label {
  font-size: 0.8em;
  font-weight: bold;
}
label p {
	margin: 0px;
}

#sisaltoonlinkki {
    position: absolute;
    font-size: 0.7em;
    margin-left: 1%;
    opacity: 0;
}
#sisaltoonlinkki:hover, #sisaltoonlinkki:focus {
    opacity: 1;
}

/* IE6 HACKS -----------------------------------*/
* html #runko {
	position: relative;
	top: 0px;
	height: 100%;
}
* html #alabanneri {
	position:relative;
	height: 30px;
	bottom:0px;
}
* html #runkoVasen {
	position: relative;
	height: 100%;
}
* html #alabanneri #kieliValikko {
	width: 45%;
}
* html #runkoOikea {
	position: absolute;
}
* html #ylaBanneri{
	position: fixed;
	/*height: 15%;*/
}
