body {
    background: #fff url('../img/body_back.gif') repeat-x top left;
    text-align: center;
    font-family: Tahoma, Arial, Sans-Serif;
    font-size: 10pt;
    color: #333333;
}

#wrap {
    width: 1020px;
    margin:0 auto;
    text-align: left;
    position: relative;
}

#header {
    width: 100%;
    height: 200px;
    border: 0px solid red;
    color: #ffffff;
    position: relative;
}

#headerbox {
    position: absolute;
    top: 33px;
    left: 240px;
    background: transparent url('../img/topfade.jpg') no-repeat top left;
    width: 425px;
    height: 140px;
}

#headerbox .title {
    margin: 20px 0 10px 30px;
    font-weight: normal;
    color: white;
    font-size: 2.0em;
}

#headerbox p {
    margin: 10px 0 10px 30px;
    line-height: 1.2em;
}

#sidebar {
    width: 240px;
    border: 0px solid blue;
    float: left;
    margin-top: 20px;
}

#content {
    margin-left: 260px;
    border: 0px solid yellow;
    margin-top: 20px;

}

#logo {
    background: transparent url('../img/logo.gif') no-repeat top left;
    display: block;
    width: 238px;
    height: 140px;
    text-indent: -99999px;
    position: absolute;
    top: 33px;
    left: 0;
}

#footer {
    width: 100%;
    border: 0px solid green;
    clear: both;
    margin-bottom: 30px;
    color: #a0a0a0;
    text-align: center;
    padding-top: 15px;
}

#contact_info {
    display: block;
}

#footer_links {
    display: block;
    margin-top: 10px;
}

.clearboth {
    clear: both;
}

#navi {
    margin: 0;
}

#navi li {
    margin-bottom: 5px;
}

#navi li a {
    display: block;
    width: 227px;
    padding-left: 10px;
    height: 27px;
    background: transparent url('../img/navi_back_b.gif') no-repeat top left;
    color: #ffffff;
    text-decoration: none;
    line-height: 25px;
    font-size: 1.3em;
}

#navi li a:hover, #navi_horizontal li a:hover, #navi_vertical li a:hover {
    background-image: url('../img/navi_back_a.gif');
}

#navi_horizontal {
    margin: 0 0 10px;
}

#navi_horizontal li {
    display: inline;
    margin-right: 7px;
}

#navi_horizontal li a {
    display: inline-block;
    width: 227px;
    padding-left: 10px;
    height: 27px;
    background: transparent url('../img/navi_back_b.gif') no-repeat top left;
    color: #ffffff;
    text-decoration: none;
    line-height: 25px;
    font-weight: bold;
}

#navi_vertical {
    width: 230px;
    float: right;
    margin-right: 7px;
    margin-bottom: 5px;
}

#navi_vertical li {
    float: left;
    margin-bottom: 5px;
}

#navi_vertical li a {
    display: block;
    width: 227px;
    padding-left: 10px;
    height: 27px;
    background: transparent url('../img/navi_back_b.gif') no-repeat top left;
    color: #ffffff;
    text-decoration: none;
    line-height: 25px;
    font-weight: bold;
}
#content form {
/*    width: 420px;   */
}

#content .input {
    padding: 5px;
    margin-bottom: 2px;
    -moz-border-radius: 3px;
    border-radius: 3px;
/*    float: left;*/
    width: 420px;
}

#content .input label {
    width: 180px;
    display: block;
    float: left;
    padding-top: 4px;
}

#content .input input, #content .input select, #content .input textarea {
    width: 200px;
/*    float: left;*/
}


#content h1, #content h2, #content h3, #content h4, #content h5, #content h6 {
    font-weight: normal;
    margin-top: 0.5em;
    margin-bottom: 0.7em;
}


#content h1, #content h2, #content h3 {
    color: #587501;
}

#content h4, #content h5, #content h6 {
    color: #000000;
}

h1 { font-size: 1.9em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1.0em; }
h6 { font-size: 0.8em; }

#sidebar h2{
    font-weight: normal;
    margin-top: 0px;
    margin-bottom: 0.7em;
    color: #587501;
    font-size: 1.3em;    
    }

a {
    color: #73930c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    margin-top: 5px;
    margin-bottom: 13px;
    line-height: 1.2em;
}

ul {
    margin: 0 0 0 20px;
    line-height: 1.2em;
}

#login {
    float: right;
    width: 180px;
    height: 150px;
    margin-top: 35px;
    margin-right: 20px;
}

#login .title {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

#login .input {
    float: left;
    width: 180px;
}

#login label {
    width: 60px;
    display: block;
    float: left;
    padding-top: 4px;
}

#login input {
    width: 110px;
    float: right;
}

#login a {
    font-size: 0.9em;
    color: #fff;
    text-decoration: none;
    padding-left: 15px;
    display: block;
    float: left;
    margin-top: 3px;
    margin-bottom: 3px;
    background: transparent url('../img/bullet_mini.png') no-repeat 0px 1px;
}

#login .submit input {
    width: auto;
    margin-top: 8px;
    display: block;
    float: right;
}

.sidebar_box {
    width: 217px;
    height: 179px;
    padding: 10px;
    overflow: hidden;
    text-align: right;
    color: #fff;
    margin: 10px 0 10px 0;
    position: relative;
    font-size: 0.9em;
    line-height: 1.2em;
}

.sidebar_box .header {
    font-size: 1.0em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1.0em;
}

#sidebar_box_1 {
    background: transparent url('../img/sidebar_box_back1.jpg') no-repeat 0px 0px;
    margin: 0px 0px 5px 10px;
}

#sidebar_box_2 {
    background: transparent url('../img/sidebar_box_back2.jpg') no-repeat 0px 0px;
}

#sidebar_box_3 {
    background: transparent url('../img/sidebar_box_back3.jpg') no-repeat 0px 0px;
}

.sidebar_box .buy_link {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

#payment_methods {
    margin: 10px 0 10px 0;
}

/* pagination */

.pagenumbers{
    margin-top: 10px;
    padding: 5px;
    margin-bottom: 10px;
    }


/* soil listings */

.listing{
    width: 100%;
    border-collapse: collapse;
    padding: 5px;
    }

.listing th{
    background: transparent url('../img/listing_th.gif') repeat-x left top;
    padding: 5px;
    color: #FFFFFF;
    border: 1px solid #BCC79F;
    font-size: 0.9em;
    font-weight: normal;
    }

.listing th a{
    color: #FFFFFF;
    }

.listing td{
    padding: 5px;
    border: 1px solid #BCC79F;
    }

.listing .td_bold{
    font-weight: bold;
    }

.listing tr{
    background-color: #F2F4EC;
    }

.listing .darker{
    background-color: #E7E7E7;
    }

.listing .old{
    background-color: #ebd9d9;
    }

.listing th a {
    display: inline-block;
    padding-right: 15px;
}

.listing th a.asc {background: url('../img/sort-asc.gif') no-repeat right center;}
.listing th a.desc {background: url('../img/sort-desc.gif') no-repeat right center;}

/* errors */
.flash_failure, #authMessage{
    background: url('../img/exclamation.png') no-repeat 0 0;
    padding-left: 20px;
    padding-bottom: 5px;
    margin: 10px 0px;
    font-weight: bold;
    color: red;
    }

.flash_success{
    background: url('../img/accept.png') no-repeat 0 0;
    padding-left: 20px;
    padding-bottom: 5px;
    margin: 10px 0px;
    font-weight: bold;
    color: #448F37;
    }

/* banners */ 

.banners{
    text-align: center;
    }

.banners a{
    border: 0px;
    }
   
.banner{
    width: 190px;
    margin-bottom: 5px;
    text-align: center;
    vertical-align: middle;
    }
    
/* basicforms */

.basicForm{
    width: 100%;
    }

.basicForm .input{
    display:block;
/*    float:left; */
    padding: 3px;
    }

.input_short{
    width: 80px !important;
    margin-right: 10px;
    }

.textarea_bigger{
    width: 500px !important;
    }

.date_select{
    width: 60px !important;
    margin-right: 10px;
    }


.basicForm [type=checkbox]{
    width: 20px !important;
    float:left;
    }

/* boxes */


.green_box{
    float:left;
    margin-right: 10px;
    margin-top: 15px;
    width: 345px;
    height: 220px;
    padding: 5px 10px;
    border: 1px dotted #587501;
    line-height: 1.2em;
    }

.form_box{
    width: 100%;
    display: block;
    padding: 5px;
    float: left;
    margin-top: 15px;
    /* border-top: 2px dotted #587501;*/
    }

/* buttons */

.submit [type=submit]{
    background-color: #95AB56;
    background: transparent url('../img/green_button_back.gif') no-repeat 0px 0px;
    color: #FFFFFF;
    width:122px;
    height: 28px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.8em;
    display:block;
    float:left;
    border-top: 0px;
    border-left: 0px;
    }

.submit2 [type=submit]{
    border: thin solid blue;
    background-image: url('../img/navi_back_a.gif');
    color: #FFFFFF;
    width:227px;
    height: 27px;
    padding-left: 10px;    
    font-weight: bold;
    display:block;
    float:left;
    border-top: 0px;
    border-left: 0px;
    }    

        
/*.submit [type=submit]:active, [type=submit]:hover{
    border-top:0px;
    border-left:0px;
    border-right-color: #5F5E57;
    border-bottom-color: #5F5E57;
    }*/

/* right-area */


#rightbar {
    width: 191px;
    float: right;
    margin: 0 0 10px 30px;
    overflow: hidden;
}

#content #rightbar_search {
    width: 161px;
    padding: 15px;
}

#content #rightbar_search form {
    width: auto;
    display: block;
    height: 80px;
}

#content #rightbar_search .input, #content #rightbar_search .submit {
    width: 150px;
    float: left;
}

#content #rightbar_search .submit {
    padding-left: 5px;
}

#content #rightbar_search form label {
    color: #587501;
}

#content #rightbar_search .title {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #587501;
}

#content #rightbar_search input {
    width: 140px;
    float: left;
}

.rightbar_box {
    width: 171px;
    height: 99px;
    background: transparent url('../img/rightbar_box_back.jpg') no-repeat 0px 0px;
    margin: 10px 0 10px 0;
    padding: 10px;
    color: #fff;
}

.box_palvelupuhelin {
    width: 171px;
    height: 99px;
    background: transparent url('../img/rightbar_box_back.jpg') no-repeat 0px 0px;
    margin: 10px 35px 10px 10px;
    padding: 10px;
    color: #fff;
}

#index_news_container {
    float: left;
    width: 750px;
}

.index_news {
    width: 240px;
    position: relative;
    float: left;
    margin-right: 9px;
    margin-bottom: 20px;
    overflow: hidden;
    display: inline;
}

.index_news .index_news_title {
    border: 1px solid #bcc79f;
    border-bottom: none;
    display: block;
    height: 33px;
    background: transparent url('../img/index_news_title_back.gif') repeat-x left top;
    color: #fff;
    text-align: center;
    line-height: 31px;
}

.index_news .index_news_title a {
    color: #fff;
    font-weight: bold;
    font-size: 0.8em;
}

.index_news .index_news_content {
    background-color: #ECECEC;
    text-align: center;
    line-height: 31px;
    border: 1px solid #bcc79f;
    border-top: none;
    padding: 5px 0 10px 0;
}

.index_news_item {
    position: relative;
    text-align: left;
    line-height: 1.0em;
    margin: 3px 3px;
    padding: 5px 5px 5px 7px;
    background-color: #F5F5F5;
    border-top: 2px solid #DEDEDE;
    border-right: 2px solid #D2D2D2;
}

.index_news_item .title a{
    font-weight: bold;
    color: #4D6208;
}

.index_news_item .date {
    font-style: italic;
    float: right;
}

.index_news_item .content {
    margin-top: 5px;
    height: 30px;
    line-height: 14px;
    font-size: 11px;
    margin-bottom: 2px;
    display: block;
    overflow: hidden;
}

.index_news_footer {
    position: absolute;
    bottom: 0px; right: 10px;
    background: transparent url('../img/index_news_footer_back.gif') no-repeat right bottom;
    width: 120px;
    height: 28px;
    color: #fff;
    text-align: center;
    line-height: 26px;
    font-weight: bold;
    display: block;
}

#content .input.error {
    background-color: #fef0d7;
}

#content .input .error-message {
    text-align: left;
    margin-bottom: 10px;
    color: #f09b06;
    margin-right: 20px;
    background: transparent url('../img/error.png') no-repeat 0px 0px;
    padding: 2px 0 2px 19px;
    line-height: 14px;
    /*float: left;*/
    font-weight: bold;
}

.error-message{
    font-weight: bold;
    color: red;
    }

a.add_ad {
    background: transparent url('../img/note_add.png') no-repeat 0px 0px;
    padding: 2px 0 2px 19px;
    display: block;
}

textarea#PageContentContent {
    height: 250px;
}

.licenses label {
    margin-left: .5em;
    font-size: 12pt;
}

.licenses label span {
    display: block;
    margin-left: 2em;
    font-size: 10pt;
    padding: .5em;
}