html, body {
height: 100%;
}

body {
margin: 0;
padding: 0;
background-color: #f1f1e6;
font-family: Verdana, Arial;
}

#container {
position: relative;
min-height: 100%;
height: 100%;
voice-family: "\"}\"";
voice-family: inherit;
height: auto;
width: 100%;
}
html:body #container {
height: auto;
}

a {
text-decoration: none;
}

a:link {
color: #942238;
border-bottom:1px solid #d1b4b3;
}

a:visited {
color: #cb929d;
border-bottom:1px solid #e9dada;
}

a:hover {
border-bottom:1px solid #f20c3a;
color: #f20c3a;
}

#doc3 {
text-align: center;
position: relative;
}

#doc3 #upperhead-wrapper {
border-width: 0;
background-color: #942238;
}

#doc3 #upperhead {
text-align: center;
position: relative;
width: 750px;
height: 107px;
margin: 0 auto;
background: url('../imgs/pealdis_taga_yld4.jpg') no-repeat top center;
}

#doc3 #upperhead #logoblock {
position: absolute;
left: 0;
width: 230px;
color: white;
font-family: Verdana, Arial;
font-size: 85%;
}

#doc3 #upperhead #logoblock p, #doc3 #upperhead #searchblock p {
text-align: right;
margin: 8px 0 -5px 0;
z-index: 1000;
position: relative;
}

#doc3 #upperhead #logoblock a, #doc3 #upperhead #searchblock a {
border-bottom:1px solid #CE7F7F;
color: #fff;
text-decoration: none;
}

#doc3 #upperhead #logoblock a:hover, #doc3 #upperhead #searchblock a:hover {
color: #bbb;
border-bottom:1px solid #888;
}

#doc3 #upperhead #logoblock img {
border-width: 0;
}

#doc3 #upperhead #logoblock a.img, #doc3 #upperhead #logoblock a img {
border-width: 0;
}

#doc3 #upperhead #searchblock {
position: absolute;
right: 0;
color: white;
font-family: Verdana, Arial;
font-size: 85%;
width:450px;
}

#doc3 #upperhead #searchblock #search-input {
margin-right: 0;
}

#doc3 #upperhead #searchblock form {
margin: 15px 0px 5px 0;
padding: 0;
text-align: right;
float: right;
}

#search-form-query {
background: white;
border: medium none;
color: #942238;
font-family:verdana,arial,helvetica,sans-serif;
font-size: 108%;
font-weight:bold;
padding:3px;
vertical-align:middle;
width:130px;
}

#search-form-submit {
background:#990000 none repeat scroll 0%;
border-color: #BF6060 rgb(64, 6, 6) rgb(64, 6, 6) rgb(191, 96, 96);
border-style:solid;
border-width:1px;
color:#FFFFFF;
font-family:verdana,arial,helvetica,sans-serif;
font-size:100%;
font-weight:bold;
padding:0px 2px 3px;
vertical-align:middle;
}

#doc3 #upperhead #searchblock p {
margin-bottom: 3px;
}

#otseteed {
display: none;
}

#yldnav {
float:left;
line-height:normal;
position: absolute;
bottom: 0;
left: 0;
_margin-bottom: -1px;
}

#yldnav ul {
list-style-type: none;
padding: 0;
margin: 0;
}

#yldnav li {
float:left;
margin:0;
padding:0;
background: url("../imgs/yld.gif") no-repeat 0 -260px;
margin-right: 1px;
width: 148px;
text-align: center;
font-family: Arial, sans-serif;
font-weight: bold;
font-size: 100%;
padding: 0 0 0 1px;
}

#yldnav a {
float: left;
text-decoration: none;
display: block;
background: url("../imgs/yld.gif") no-repeat 100% 0;
padding: 5px 15px 7px 14px;
color: white;
border-bottom-width: 0px;
}

#yldnav li:hover {
background-position: 0 -390px;
}

#yldnav a:hover {
background-position: 100% -130px;
}

/* Commented Backslash Hack hides rule from IE5-Mac \*/
#yldnav a {
float:none;
}
  /* End IE5-Mac hack */

#yldnav .current {
background-position: 0 -390px;
}

#yldnav .current a {
background-position: 100% -130px;
}

#doc3 #pealkiri-wrapper {
position: relative;
background-color: white;
text-align: center;
border-width: 0;
border-style: solid;
border-top-color: #999999;
border-top-width: 8px;
border-bottom-color: #f1f1e6;
border-bottom-width: 8px;
}

.avaleht #doc3 #pealkiri-wrapper {
background-color: #f1f1e6;
}

#doc3 #pealkiri {
text-align: left;
width: 750px;
margin: 0 auto 0 auto;
position: relative;
}

#doc3 #pealkiri #avaleht-suurpilt {
margin-top: 2px;
margin-bottom: 0;
line-height: 0.5em;
}

#doc3 #pealkiri #avaleht-pildivari {
margin-top: 2px;
margin-bottom: 0;
}

#doc3 #pealkiri #section-back {
position: absolute;
left: 0;
top: 0;
margin: -7px 0 -16px 0;
}

#doc3 #pealkiri #section-front {
position: absolute;
}

#doc3 #pealkiri h1 {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 220%;
color:#73736C;
line-height: 95px;
font-weight: normal;
position: relative;
z-index: 1000;
}

/* sisuosa sisuosa sisuosa */

#doc {
/* padding-top: 25px; */
padding-bottom: 50px;
line-height: 1.6em;
}

.avaleht #doc {
padding-top: 2px;
padding-bottom: 135px;
}

.avaleht .avaparem {
width: 354px;
padding-left: 10px;
}

.pikkjalus {
background-color: #e3e3d9;
}

.yui-t2 .yui-g {
padding-left: 1em;
}

h2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 167%;
font-weight: normal;
margin-top: 3px;
margin-bottom: 0.5em;
}

h3 {
font-family: Arial, Helvetica, sans-serif;
font-size: 135%;
font-weight: normal;
margin-top: 20px;
margin-bottom: 0.5em;
}

.sisu {
padding-right: 10px;
}

.sisu ul {
margin-top: 10px;
font-size: 100%;
list-style-type: disc;
}

.sisu p {
font-size: 100%;
}

.sisu table {
border-collapse: collapse;
width: 100%;
}

.sisu th {
background-color: #e3e3d9;
width: 70px;
font-weight: bold;
font-size: 93%;
border: 2px #f1f1e6 solid; 
padding: 3px;
vertical-align: top;
}

.sisu td {
background-color: white;
font-weight: normal;
font-size: 93%;
border: 2px #f1f1e6 solid; 
padding: 3px;
vertical-align: top;
line-height: 1.3em;
}

.sisu textarea {
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;
width: 300px;
height: 100px;
line-height: 1.3em;
padding:3px;
}

.sisu .tlybutton {
background:#4c4c4c none repeat scroll 0%;
border-color:#8f8f8f #232323 #232323 #8f8f8f;
border-style:solid;
border-width:1px;
color:#FFFFFF;
font-family:verdana,arial,helvetica,sans-serif;
font-size: 85%;
font-weight:bold;
padding:1px 2px 3px;
vertical-align: text-middle;
}

.photos {
float: right;
margin: 1em 5px 10px 20px;
}

.photos .photo {
margin-bottom: 10px;
}

.photos .photo p.caption {
background-color: #e3e3d9;
margin-top: 0;
margin-bottom: 0;
font-size: 77%;
padding: 3px 5px 3px 10px;
}

.avaleht p.pildiallkiri {
font-size: 77%;
margin-top: 0;
}

/* kastid */

.ntop, .nbottom {
display:block;
}
.ntop b, .nbottom b {
display: block; height: 1px; overflow: hidden;
}

.n1{
margin: 0 1px; height: 2px
}

.seealsobox {
margin: 30px 0 10px 0;
width: 200px;
padding: 0;
line-height: 1.2em;
background-color: #e3e3d9;
}

.seealsobox .ntop b, .seealsobox .nbottom b {
background-color: #e3e3d9;
}

.seealsobox .ntop, .seealsobox .nbottom {
background-color: #f1f1e6;
}

.seealsobox h2 {
font-weight: bold;
font-size: 100%;
font-family: Arial, sans-serif;
padding: 8px 0 5px 10px;
margin: 0;
}

.seealsobox ul {
padding: 0 8px 13px 10px;
margin:0;
list-style-type: none;
font-family: Verdana, Tahoma, sans-serif;
font-size: 85%;
}

.seealsobox ul li {
background-image: url(../imgs/nool-valge.gif);
background-repeat: no-repeat;
background-position: 0 0.55em;
background-color: transparent;
padding-left: 10px;
}

.seealsobox2 {
margin: 30px 0 10px 0;
width: 200px;
padding: 0;
line-height: 1.2em;
background-color: #942238;
}

.seealsobox2 .ntop b, .seealsobox2 .nbottom b {
background-color: #942238;
}

.seealsobox2 .ntop, .seealsobox2 .nbottom {
background-color: #f1f1e6;
}

.seealsobox2 h2 {
color: white;
font-weight: bold;
font-size: 100%;
font-family: Arial, sans-serif;
padding: 8px 0 5px 10px;
margin: 0;
}

.seealsobox2 ul {
padding: 0 8px 13px 10px;
margin:0;
list-style-type: none;
font-family: Verdana, Tahoma, sans-serif;
font-size: 85%;
}

.seealsobox2 ul li {
background-image: url(../imgs/nool-valge.gif);
background-repeat: no-repeat;
background-position: 0 0.55em;
background-color: transparent;
padding-left: 10px;
}

.seealsobox2 ul a {
border-bottom:1px solid #CE7F7F;
color: #fff;
text-decoration: none;
}

.seealsobox2 ul a:hover {
color: #bbb;
border-bottom:1px solid #888;
}

.subnavbox {
background-color: white;
width: 240px;
padding: 0;
line-height: 1.2em;
}

.subnavbox .ntop, .subnavbox .nbottom {
background-color: #f1f1e6;
}

.subnavbox .ntop b, .subnavbox .nbottom b {
background-color:white;
}

.yui-t4 .subnavbox, .yui-t2 .subnavbox {
width: 180px;
}

.subnavbox .subnav ul {
padding: 10px 0 13px 0;
margin:0;
list-style-type: none;
font-family: Verdana, Tahoma, sans-serif;
font-size: 100%;
}

.subnavbox .subnav  li {
margin: 0;
margin-bottom: -1px;
}

.subnavbox .subnav  li#activesublink {
background-image: url(../imgs/sectionback.gif);
background-repeat: repeat-y;
background-position: top right;
background-color: #f1f1e6;
}

.subnavbox .subnav  a {
display: block;
margin: 0 8px 0 8px;
padding: 5px 5px 5px 5px;
border-top: 1px solid #ecebe5;
width: 202px;
text-decoration: none;
border-bottom-width: 0;
}

.yui-t4 .subnavbox .subnav a, .yui-t2 .subnavbox .subnav a {
width: 142px;
}

.subnavbox .subnav  a:hover {
text-decoration: underline;
}

.subnavbox .subnav .first a, #activesublink a, .subnavbox .subnav .nextafteractive a {
border-top-width: 0;
}


#activesublink a {
font-weight: bold;
background-color: transparent;
padding-top: 8px;
padding-bottom: 7px;
}

#activesublink a:visited {
color: #942238;
}

#activesublink a.activenochildren, #activesublink a.activenochildren:visited {
color: black;
}

#activesublink ul {
padding: 0 0 10px 0;
}

#activesublink ul a {
padding: 1px 0 4px 18px;
font-weight: normal;
font-size: 85%;
}

#activesublink ul a:hover {
color: #f20c3a;
}

#activesublink #activesubsublink a {
font-weight: bold;
background-image: url(../imgs/section-nool-yld3.gif);
background-repeat: no-repeat;
background-position: 9px 0.55em;
background-color: transparent;
color: black;
text-decoration: none;
}

.subnavbox .subnav .nextafteractive {
padding-top: 5px;
}

.subnavbox .subnav .previousbeforeactive {
padding-bottom: 4px;
}

.centerframe {
margin-right: 14px;
padding: 0 14px 20px 22px;
border-left: 2px solid white;
border-right: 2px solid white;
min-height: 600px;
}

.pikkjalus .centerframe {
margin-right: 6px;
padding-right: 20px;
border-width: 0;
}

.avaleht .pikkjalus {
font-size: 85%;
}

.avaleht .pikkjalus p.pikkkeelevalik {
margin-top: 0px;
margin-bottom: 10px;
}

.avaleht .centerframe {
margin-left: -30px;
padding-left: 15px;
margin-right: 0px;
}

/* syndmused, uudised, tähtsad lingid */

h2.kokkuvote {
font-size: 100%;
font-family: Verdana, Arial, sans-serif;
font-weight: bold;
color: #555;
margin-bottom: 1.2em;
}

.avaleht h2.kokkuvote {
font-size: 108%;
font-family: Arial, sans-serif;
}



.avaleht #syndmused {
width: 158px;
float: right;
}

.avaleht #uudised {
border-right: 1px solid #d9d9cf;
padding-right: 18px;
width: 158px;
float: left;
}

.pikkjalus #tahtsadlingid, .avaleht #tahtsadlingid {
width: 180px;
}

.uudis, .syndmus {
line-height: 1.1em;
margin-bottom: 10px;
}

.avaleht .uudis {
margin-bottom: 20px;
}

.avaleht .syndmus {
margin-bottom: 15px;
}

.avaleht .uudis, .avaleht .syndmus {
margin-bottom: 7px;
}

.uudis img {
float: left;
margin: 0 13px 5px 0;
vertical-align: middle;
}

#syndmused img.mainpic {
margin-bottom: 10px;
}

#syndmused a.mainpic {
border-bottom-width: 0;
text-decoration: none;
}



.uudis h3, .syndmus h3 {
font-size: 93%;
font-weight: normal;
margin-top: 0px;
margin-bottom: 0px;
font-family: Verdana, Arial;
}

.uudis p, .syndmus p {
font-size: 93%;
margin: 0;
margin-top:3px;
}

.morestuff {
text-align: right;
font-size: 93%;
}

.morestuff p {
margin: 0 0 0 0;
}

.avaleht .morestuff p {
margin: 10px 0 0 0;
}

#uudised, #syndmused {
margin-top: 20px;
padding-top: 15px;
border-top: 1px solid white;
}

.avaleht .uudis h3, .avaleht .syndmus h3, .avaleht .uudis p, .avaleht .syndmus p {
margin-top: 0px;
font-size: 93%;
}

.pikkjalus #tahtsadlingid, .avaleht #tahtsadlingid, .avaleht #uudised, .avaleht #syndmused {
margin-top: 0;
padding-top: 0;
border-top-width: 0;
}

#tahtsadlingid h2 {
margin-bottom: 5px;
}

#tahtsadlingid ul {
padding: 0 8px 3px 10px;
margin:0;
list-style-type: none;
font-family: Verdana, Tahoma, sans-serif;
font-size: 93%;
}

.avaleht #tahtsadlingid ul {
padding: 0 8px 13px 10px;
font-size: 93%;
}

#tahtsadlingid ul li {
background-image: url(../imgs/paremkolmnurk.gif);
background-repeat: no-repeat;
background-position: 0 0.65em;
background-color: transparent;
padding-left: 10px;
}

.avaleht #tahtsadlingid {
width: 354px;
background-image: url(../imgs/esileht-vaikevari.gif);
background-repeat: no-repeat;
background-position: 0 bottom;
padding-bottom: 10px;
margin-bottom: 10px;
}

.avaleht #tahtsadlingid ul.lingidvasak {
float: left;
width: 158px;
}

.avaleht #tahtsadlingid ul.lingidparem {
float: right;
width: 160px;
}

/* pikkjalus pikkjalus pikkjalus */

#pikkjalus-wrapper {
min-width:750px;
width: 100%;
border-width: 0;
background-color: #e3e3d9;
margin-top: -20px;
bottom:0pt;
left:0pt;
position:absolute;
}

#pikkjalus-wrapper #doc {
padding-bottom: 35px;
}

.pikkjalus {
background-image: url(../imgs/pikkjalus-back.gif);
background-repeat: no-repeat;
background-color: transparent;
padding-top: 10px;
}

#pikkjalus-wrapper .uudis h3, #pikkjalus-wrapper .syndmus h3 {
margin-top: 0px;
font-size: 85%;
}

#pikkjalus-wrapper .uudis p, #pikkjalus-wrapper .syndmus p {
font-size: 85%;
}

#pikkjalus-wrapper .morestuff {
font-size: 85%;
}

#pikkjalus-wrapper #tahtsadlingid ul {
font-size: 85%;
}

/* jalus jalus jalus */

#footer-wrapper {
min-width:750px;
width: 100%;
border-width: 0;
background-color: #94989e;
position: absolute;
left: 0;
bottom: 0;
}

#footer {
margin: 0 auto;
text-align: center;
position: relative;
width: 750px;
padding: 5px 0;
font-family: Arial, sans-serif;
font-size: 85%;
color: white;
}

#footer #linktowebmaster {
float: right;
}

#footer p {
text-align: left;
margin: 0;
padding: 0;
}

#footer a {
color: white;
}

#footer p.chooselanguage {
margin-bottom: 15px;
}
