/*
-------------------------------------------------------------------------------
Helsingin Seniorisäätiö Screen Styles
Author: Persoona Oy
Version: 12.06.2009

Copyright (c) 2009 Persoona Oy. All rights reserved.
---------------------------------------------------------------------------- */

body {
    background: url(../images/img_body_bg.jpg) 0 0 repeat #4e3721;
    color: #3b2519;
    font-family: Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
    font-size: small;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1.4em;
    margin: 0;
    padding: 0;
}

/* Background changes
---------------------------------------------------------------------------- */

body.persoona {
    background: url(../images/admin/img_admin_body_bg.jpg) 0 0 repeat #4e3721;
}

/* Font-size definitions (larger font)
---------------------------------------------------------------------------- */

body.larger-font #content {
    font-size: 130%;
}

body.larger-font h1,
body.larger-font h2,
body.larger-font h3 {
    line-height: normal;
}

/* Global definitions
---------------------------------------------------------------------------- */

a,
a:visited {
    color: #947647;
    text-decoration: none;
}

a:hover,
a:visited:hover {
    color: #947647;
    text-decoration: underline;
}

a img {
    border: none;
}

h1,
h2,
h3 {
    margin: 1em 0;
    text-align: left;
}

h1 {
    color: #3b2519;
    font-size: 185%;
    font-weight: bold;
    line-height: normal;
}

h2,
h3 {
    color: #947647;
}

hr {
    border: none;
    border-top: 1px dotted #ccc;
    height: 0;
    margin: 1.2em 0;
}

/* ----- Login dialog ----- */

.error {
    background-color: #d70000;
    color: #fff;
    font-weight: bold;
    padding: 7px;
}

.success {
    background-color: #009900;
    color: #fff;
    font-weight: bold;
    padding: 7px;
}

form#login {
    background-color: #efebe7;
    border: 1px solid #ccc;
    padding: 5px 10px;
}

form#login input {
    font-size: 140%;
    width: 250px !important;
}

form#login dl {
    margin: 0;
    padding: 10px 7px 0 7px;
}

form#login dl #control input {
    font-size: 100%;
    width: 135px !important;
}

form#login dl dt {
    font-weight: bold;
}

form#login dl dd {
    margin: 0 0 10px 0;
}

/* Structure
---------------------------------------------------------------------------- */

#container {
    background: url(../images/img_container_bg.png) 0 0 repeat-y transparent;
    font-size: 100%;
    margin: 20px auto 25px;
    padding: 0 20px 10px 20px;
    position: relative;
    text-align: left;
    width: 950px;
}

#header {
    background: url(../images/img_header_bg.jpg) 0 0 no-repeat #f5efe6;
    clear: both;
    height: 385px;
}

#sidebar {
    clear: left;
    float: left;
    margin: -40px 0 0 0;
    padding: 30px 0 30px 50px;
    width: 350px;
}

#content {
    clear: right;
    float: right;
    font-size: 105%;
    margin: -40px 0 0 0;
    padding: 5px 50px;
    text-align: justify;
    width: 450px;
}

#footer {
    clear: both;
    color: #947647;
    font-size: 85%;
    padding: 5px 50px;
    text-align: right;
    width: 850px;
}

/* Header
---------------------------------------------------------------------------- */

#header #banner {
    height: 55px;
    left: 342px;
    line-height: normal;
    overflow: hidden;
    padding: 5px 0;
    position: absolute;
    text-align: right;
    top: 0;
    width: 225px;
}

#header #banner a,
#header #banner a:visited {
    color: #3b2519;
    margin: 0 7px 0 0;
    text-decoration: none;
}

#header #banner a:hover,
#header #banner a:visited:hover {
    border-bottom: 1px dotted #947647;
    color: #947647;
    text-decoration: none;
}

#header #aphorism {
    position: absolute;
    right: 55px;
    top: 30px;
}

#logo {
    left: 190px;
    position: absolute;
    top: 178px;
    z-index: 100 !important;
}

/* Navigation
---------------------------------------------------------------------------- */

#nav {
    background-color: #3b2519;
    border-top: 5px solid #947647;
    color: #dfc9ad;
    font-weight: bold;
    list-style: none;
    margin: 0;
    padding: 0 50px;
    position: absolute;
    text-transform: uppercase;
    top: 210px;
    width: 850px;
}

#nav li {
    float: right;
    margin: 0 0 0 20px;
    padding: 0;
}

#nav li#first {
    float: left;
    margin: 0;
}

#nav li#first a,
#nav li#first a:visited {
    padding: 25px 0;
}

#nav li a,
#nav li a:visited {
    color: #dfc9ad;
    display: block;
    padding: 25px 0;
    text-decoration: none;
}

#nav li a:hover,
#nav li a:visited:hover {
    background: url(../images/img_nav_active_hover.gif) center 0 no-repeat transparent;
    color: #947647;
    text-decoration: none;
}

#nav li.active a {
    background: url(../images/img_nav_active.gif) center 0 no-repeat transparent;
}

/* ----- Sub-navigation ----- */

#subnav {
    color: #3b2519;
    font-weight: bold;
    list-style: none;
    padding: 5px 50px 5px 0;
    position: absolute;
    text-align: right;
    right: 20px;
    top: 275px;
    width: 360px;
}

#subnav li {
    display: inline;
    margin: 0;
    padding: 0 0 0 15px;
}

#subnav li a,
#subnav li a:visited {
    color: #3b2519;
    text-decoration: none;
}

#subnav li a:hover,
#subnav li a:visited:hover,
#subnav li.active a {
    border-bottom: 1px dotted #947647;
    color: #947647;
    text-decoration: none;
}

/* Content
---------------------------------------------------------------------------- */

#content a,
#content a:visited {
    font-style: italic;
}

#content #text-control {
    color: #947647;
    text-align: right;
}

/* ----- Table definitions (for the open positions) ----- */

#content table {
    border-collapse: collapse;
    padding: 5px 10px;
    width: 100%;
}

#content table th,
#content table td {
    text-align: left;
    padding: 5px 10px;
}

#content table th {
    border-bottom: 1px dotted #ccc;
}

#content table .date {
    width: 25%;
}

#content table .title {
    width: 50%;
}

/* ----- Forms ----- */

#content #important {
    background-color: #ffff99;
    border: 1px solid #ccc;
    font-size: 110%;
    margin: 5px 0 15px 0;
    padding: 3px 10px;
    text-align: left;
}

#content #important ul {
    margin: 0 0 15px 25px;
    padding: 0;
}

#content #important ul li {
    color: #ff0000;
    line-height: 1.3em;
}

#content form {
    background-color: #efebe7;
    border: 1px solid #ccc;
    padding: 5px 10px;
}

#content form input.file {
    background-color: #f5f5f5;
    border: 1px dotted #ccc;
    padding: 10px;
    width: 360px;
}

#content form input.text {
    font-size: 140%;
}

#content form textarea {
    font-size: 100%;
    width: 370px;
}

#content form dl {
    margin: 0;
    padding: 10px 7px 0 7px;
}

#content form dl dt {
    font-weight: bold;
}

#content form dl dd {
    margin: 0 0 10px 0;
}

#content form dl #control {
    background-color: #eee;
    border: 1px solid #ccc;
    margin: 0 -18px -7px -18px;
    padding: 20px;
}

#content form dl #control input {
    font-size: 100%;
    margin: 0 5px 0 0;
    min-width: 130px;
}

/* ----- Form (contact) ----- */

#content form#contact input.text {
    width: 370px;
}

/* ----- Form (recruit) ----- */

#content form#recruit input.text {
    width: 300px;
}

#content form#recruit input.text.small {
    width: 60px;
}
