
body,input,select,option,textarea { font: normal 12px Verdana, Sans-serif; }

body {
    background: url('../img/bg.png') repeat-x;
    background-color: #fcfcfc;
    color: #333;
}

h1,h2,h3,h4,h5,h6 { margin: 0 0 5px; }

h1,h2 { margin: 10px 0 0; font: normal 2.2em "Times new roman", Serif; color: #464e64; }
h2 { border-bottom: solid 1px #c4cde3; }
h3 { font: normal 1.6em Georgia, Serif; }

h1.leap { margin-bottom: 15px; }

p { line-height: 1.6em; padding: 0 0 8px; }

code {
    display: block;
    font: normal 12px monospace;
    background: #f9f9f9;
    padding: 8px;
    margin: 1em 2em;
    border: 1px solid #ccc;
    border-left-width: 5px;
}

a { text-decoration: none; }
a:link, a:visited { color: blue; }
a:hover, a:active { color: #516593; }

div { margin: 0; }

img { border: 0; margin: 0; padding: 0; }

form { margin: 0; }

label {
    text-align: right;
    width: 80px;
    padding: 5px .6em;
    margin: 2px 0;
    float: left;
}
label.required { font-weight: bold; }
label.optional { color: gray }

/* Input */

input[type="submit"] {
    background: #f1f1f1;
    border: 1px solid #ccc;
    padding: 6px 12px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -khtml-border-radius: 4px;
    border-radius: 4px;
}

input[type="submit"]:hover {
    background: #f9f9f9;
    cursor: pointer;
}

select,
input[type="file"],
input[type="text"],
input[type="password"],
textarea {
    color: #555;
    margin: .2em;
    padding: 5px 3px;
}

select,
input[type="text"],
input[type="password"],
textarea {
    border: 1px solid #ccc;
}

select {
    width: 208px;
    background: #f1f1f1;
}

input[type="text"], 
input[type="password"], 
textarea {
    width: 200px;
    background-image: url('../img/elements/textbox.png');
    background-repeat: repeat-x;
    background-position: top;
}

select:focus,
input[type="file"]:focus,
input[type="text"]:focus, 
input[type="password"]:focus, 
textarea:focus {
    color: black;
    background: white;
    border: 1px solid #999;
}

textarea {
    height: 80px;
    overflow: auto;
}

input[type="file"] {
    padding: 5px;
}

hr { 
    border-color: #bcbcbc;
    border-style: solid;
    border-left-width: 0;
    border-right-width: 0;
    border-bottom-width: 0;
    border-top-width: 1px;
}

.float-left { float: left }
.float-right { float: right }
.float-clear { clear: both }

div#wrapper {
    padding: 0 25px;
    margin: 0 auto 75px;
}

div#wrapper.small {
    width: 780px;
}

div#header { height: 80px; }

div#header span#logo {
	display: block;
	background: url('../img/header.png') no-repeat;
	width: 200px;
	height: 45px;
	position: relative;
	top: 25px;
	left: 10px;
}

/* Navigation */

#nav {
    background: url('../img/menu.png') repeat-x;
    color: white;
    height: 22px;
    padding: 8px 12px 0;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    -khtml-border-radius: 8px;
    border-radius: 8px;
}

#nav.wsub {
    -webkit-border-bottom-right-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    -moz-border-radius-bottomright: 0;
    -moz-border-radius-bottomleft: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

ul.subnav {
    background: url('../img/submenu.png') repeat-x;
    height: 20px;
    padding: 5px 12px 0;
    border-style: solid;
    border-color: #ccc;
    border-width: 0 1px 1px 1px;
    -webkit-border-bottom-right-radius: 8px;
    -webkit-border-bottom-left-radius: 8px;
    -moz-border-radius-bottomright: 8px;
    -moz-border-radius-bottomleft: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

#nav a {
    color: white;
    font-weight: bold;
}
ul.subnav, ul.subnav a {
    color: #444;
}

#nav ul { float: left }

#nav ul li,
ul.subnav li {
    display: inline;
    margin: 0 1.2em 0 0;
    text-transform : capitalize;
}

#nav li.active a,
#nav li a:hover,
ul.subnav li.active a,
ul.subnav li a:hover {
    text-decoration: underline;
}

/* Message */

p.message, p.notify, p.bail {
    width: 480px;
    padding: 8px;
    margin: 0px auto 18px;
    text-align: center;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

p.message {
    background: #d6e4ff;
    border: 1px solid #5F78A9;
}

p.notify {
    background: #ffffcc;
    border: 1px solid #ffd700;
}

p.bail {
    background: #fdc4c4;
    border: 1px solid #fc9595;
}

/* Font Colors */
.white { color: white }
.black { color: black }
.gray { color: gray }
.red { color: red }
.green { color: green }
.blue { color: blue }
.yellow { color: yellow }
.purple { color: purple }

/* Alignment */

.float-left { float: left; }
.float-right { float: right; }
.clear { clear: both; }
.center { text-align: center; }

/* Index */

div#foreword {
	width: 435px;
	text-align: justify;
	float: left;
}

div#foreword a {
	display: block;
	margin: 8px 5px;
	padding: 4px 10px;
	border: 1px solid #d6dbe3;
}

/* Blog */
div.blogpost {
    border-top: 1px solid #bcbcbc;
    padding-top: 5px;
    margin-top: 10px;
    margin: 1em 0;
}
div.blogpost p.publish {
    margin-left: 1em;
    color: #9b9b9b;
}
div.blogpost div.content {
    margin-bottom: 1em;
}
div.blogpost div.tags {
    padding: .5em;
    background: #f5f4f4;
    border: 1px solid #ccc;
}

/* Grid */

table.grid { padding: 8px; }

table.grid, 
table.grid td, 
table.grid th {
	border: 1px solid #bcbcbc;
	border-collapse: collapse;
}

table.grid th { background: #f1f1f1 }
table.grid th, table.grid td { padding: .5em .6em; }

div#agrement {
    background: #f9f9f9;
    text-align: left;
    width: 600px;
    padding: 8px;
    margin: 0 auto 15px;
    border: 1px solid #f1f1f1;
}

/* Footer */

#footer {
    border-top: 1px solid #bcbcbc;
    height: 20px;
    text-align: center;
    padding: 8px 15px 0;
    margin: 25px auto auto;
}

#footer, #footer a { color: #999 }
#footer a:hover { color: #333 }


ul.custom {
    list-style-image: url(../img/ulli.png);
    padding-left: 20px;
}

ul.custom li.item { margin-bottom: 20px }

ul.custom li.item h3 {
    padding: 0;
    margin: 0;
}

ul.custom li.item p {
    padding: 0;
    margin: 0 0 0 10px;
}