/*

  Namilaatikko.net CSS
  --------------------

  (c) Jurkka Lemmetti 2010

*/

/* @group CSS Reset */

/*////////////////////////////////////////////////////////////
        
        CSS-reset
        
  Find the original from here:
  http://meyerweb.com/eric/thoughts/2008/01/15/resetting-again/

////////////////////////////////////////////////////////////*/

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
img, ins, kbd, q, samp, small, strike, strong, sub, sup, tt, var,
b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, 
footer, header, hgroup, menu, nav, section, time, mark, audio, video {
    margin:          0;
    padding:         0;
    border:          0;
    font-size:       100%;
    vertical-align:  baseline;
    background:      transparent;
}

article, aside, dialog, figure, footer, header, hgroup, menu,
nav, section, time, mark, audio, video {display: block;}

body {line-height: 1;}
ol, ul {list-style: none;}
blockquote, q {quotes: none;}
cite {font-style: normal;}

a:active {outline:none;}

/* remember to highlight inserts somehow! */
ins {text-decoration: none;}
del {text-decoration: line-through;}

/*tables still need 'cellspacing="0"' in the markup*/
table {
    border-collapse: collapse;
    border-spacing:  0;
}

/*@end*/

/* @group Tools */

/* Float clearing */
.group:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

/* IE6 */
* html .group {
	height: 1%;
}

/* IE7 */
*:first-child + html .group {
	min-height: 1px;
}

/* Transitions on every link */
*:link,
*:visited,
*:hover,
*:active,
*:focus {
    -webkit-transition:
        color .25s linear,
        background-color .25s linear,
        border-color .25s linear;
    transition:
        color .25s linear,
        background-color .25s linear,
        border-color .25s linear;
}

/* Text selection */
::-moz-selection { 
	background: #8c481b;
	color: #dfd5b8;
}

::selection { 
	background: #8c481b;
	color: #dfd5b8;
}

/* More button-like links */
a:active {
  position: relative;
  top: 1px;
}

/*@end*/

/* Fonts by Jos Buivenga (exljbris) -> www.exljbris.com */
@font-face {font-family: MuseoSans; src: url("../fonts/MuseoSans_500.otf") format("opentype");}
@font-face {font-family: CallunaRegular; src: url("../fonts/Calluna-Regular.otf") format("opentype");}

/* @group Layout */

html {
	background: #8c481b;
}

body {
	background: url(../imgs/bg-gradient.png) bottom left repeat-x;
	font-family: MuseoSans, helvetica, verdana, arial, sans-serif;
}

#wrapper {
	background: url(../imgs/hills.png) top left repeat-x;
	margin-bottom: -40px;
	min-height: 800px;
}

#innerWrapper {
	position: relative;
	z-index: 2;
	width: 940px;
	margin: 40px auto;
	overflow: hidden;
}

#content,
#news aside,
footer,
.rounded {
	-moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
}

h1 a {
	background: url(../imgs/logo.png) top left no-repeat;
	display: block;
	
	height: 31px;
	width: 400px;
	text-indent: -9999px;

	position: absolute;
	top: 50px;
	left: 50px;
	z-index: 5;
}

h1, h2, h3, h4 {
	color: #8c481b;
}

a {
	color: #8c481b;
	text-decoration: none;
}

a:visited {
	color: #631;
}

a:hover {
	color: #631;
	text-decoration: underline;
}

header {
	margin-top: -40px;
}

/*@end*/

/* @group Main navigation */

nav#main {
	background: #d63801;
	float: right;
	margin: 50px 0 40px;
	
	-moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
}

nav#main a {	
	color: #fff;
	
	display: block;
	width: 100px;
	height: 30px;
	float: left;
	
	font-size: 1.3em;
	text-decoration: none;
	text-align: center;
	padding-top: 10px;
	
	
	/* Tämä bugittaa navigoinnin päissä */
/*	-webkit-transition: background .3s linear;*/
}

nav#main a:hover {
	background: #bf3201;
	
	-webkit-transition: background-color 1s linear;
	transition: background 1s linear;
}

nav#main a:first-child {	
	-moz-border-radius-topleft: 15px;
    -webkit-border-top-left-radius: 15px;
    border-top-left-radius: 15px;

	-moz-border-radius-bottomleft: 15px;
    -webkit-border-bottom-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

nav#main a:last-child {	
	-moz-border-radius-topright: 15px;
    -webkit-border-top-right-radius: 15px;
    border-top-right-radius: 15px;

	-moz-border-radius-bottomright: 15px;
    -webkit-border-bottom-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

nav#main a:first-child {
	padding-left: 20px;
}

nav#main a:last-child {
	padding-right: 10px;
}

/*@end*/

/* @group Content */

#content {
	background: #fffae8;
	width: 665px;
	float: left;
	margin: 0 0 30px;
	min-height: 1400px; /* Tämä on korjaamaan taustakuvakikkailun aiheuttama vika */
}

#content h1 {
	font-size: 2em;
	padding: 30px 20px;
}

#content h2 {
	font-size: 1.5em;
	padding: 15px 20px;
}

#content h4 {
	padding: 10px 20px;
}

#content p {
	font-family: CallunaRegular, 'Palatino Linotype', Palatino, serif;
	line-height: 1.1;
	padding: 5px 20px;
}

#content em {
	font-style: italic;
}

/*@end*/

/* @group News */

#news aside {
	background: #fffae8;
	width: 250px;
	float: right;
	margin-bottom: 20px;
}

#news h1 {
	padding: 15px 15px 10px;
	font-size: 1.3em;
}

#news h2 {
	padding: 5px 15px 0;
	font-size: 1em;
}

#news p {
	padding: 0 15px 10px;
	font-size: .9em;
}

#news time {
	font-size: .7em;
	padding: 5px 15px 5px;
}

#twitter {
	clear: right;
}

#twitter h4 {
	padding: 5px 5px 5px 15px;
}

#twitter_update_list li {
	font-size: .9em;
	margin: 10px 15px 5px;
	padding: 0 0 5px;
	border-bottom: 1px dotted #631;
}

.view {
	font-size: .9em;
	display: block;
	padding: 10px 0;
}

#feed a.icon {
	background: url(../imgs/feedicon.png) top left no-repeat;
	display: block;
	height: 128px;
	width: 128px;
	margin: 20px auto;
}

#feed a.icon:hover {
	background: url(../imgs/feedicon.png) bottom left no-repeat;
}

#feed p {
	text-align: center;
}

/*@end*/

/* @group Index */

#index #content {
    padding-top: 50px;
}

/*@end*/

/* @group Blog & Blogpost */

/* Ei listata kahteen kertaan samoja otsikoita */
#blog #articles {
	display: none;
}

#blog #content h2 {
	font-size: 1.2em;
	padding: 0 .5em 0 2em;
}

#blog #content p {
	padding: .5em 3em 1.5em 3em;
}

#blog #content time {
	background: #d63801;
	color: #fff;
	font-size: .6em;
	text-align: center;
	float: left;

	margin: 5px 10px 5px 30px;
	padding: 5px 8px;

	-moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
}

#blog #content span {
	display: block;
	margin: 8px 0 3px;
	font-size: .9em;
}

#blog .pagination {
	margin: 0 30px; 
}

#blogpost h3 {
	margin: 20px;
}

#blogpost blockquote {
	background: #ffefb4;
	border: 3px solid #8c481b;
	margin: .5em auto;
	padding: 1em;
	width: 70%;
}

#blogpost time {
	font-weight: bold;
	display: inline;
}

#blogpost p time {
	font-weight: normal;
}

#blogpost #summary {
	font-weight: bold;
}

#blogpost dl {
	margin: 10px 30px;
}

#blogpost dd {
	margin: 0 0 15px;
}

#blogpost table.mksr {
	width: 90%;
	margin: 0 auto;
}

#blogpost .mksr th,
#blogpost .mksr td {
	border: 1px solid #000;
	padding: 3px;
}

/*@end*/

/* @group Pictures */

#pictures #content {
	width: 830px;
}

#pictures h1 {
}

#pictures h2 {
	font-size: 2em;
	padding: 30px 0;
}

#pictures figure {
	float: left;
	height: 200px;
	width: 180px;
	margin: 40px 30px 20px 65px;
}

#pictures h3 {
	padding: 10px 0;
	display: inline;
}

#pictures p {
	padding: 0;
}

#pictures img {
	display: block;
	padding: 20px 0;
}

#pictures .pagination {
	margin-left: 60px;
}

/*@end*/

/* @group Image */

#image #content {
	width: 830px;
}

#image img {
	max-width: 750px;
	display: block;
	margin: 0 auto;
}

/*@end*/

/* @group Add/Edit */

#add h3,
#edit h3 {
	padding: 10px 20px 0;
}

#add input,
#add textarea,
#edit input,
#edit textarea {
	font-size: 1.1em;
	margin: 10px 20px 10px;
}

/*@end*/

/* @group Footer */

footer {
	background: #d9651f;
	width: 665px;
	margin: 0 0 70px 0;
	clear: both;
	padding: 20px 0;
}

#pictures footer,
#image footer {
	width: 830px;
}

footer nav {
	padding-left: 2em;
	float: left;
	margin-right: 1px dotted #000;
}

footer nav a {
	display: block;
	padding: 5px 0;	
}

footer a,
footer h3 a {
	color: #4d250a;
	text-decoration: none;
	font-weight: bold;
}

footer h3 a {
	padding: 20px 20px 0;
}

footer a:hover {
	text-decoration: underline;
}

footer small {
	padding: 20px 30px;
	width: 30em;
	float: right;
}

/* Ei toisteta samoja jorinoita kahteen kertaan etusivulla */
#index footer small {
	display: none;
}

/*@end*/

/* @group Pagination */

.pagination a {
	background: #d63801;
	color: #fff;
	float: left;
	height: 20px;
	width: 25px;
	margin: 20px 3px;
	padding-top: 7px;
	text-align: center;
	text-decoration: none;
}

.pagination a:hover {
	background: #bf3201;
	
	-webkit-transition: background 1s linear;
	transition: background 1s linear;
}

/*@end*/

/* @group Admin */

body#admin {
	background: transparent;
}

#adminBox {
	background: #fffae8;
	margin: 200px auto;
	padding: 30px;
	width: 450px;
}

#adminBox label,
#adminBox input {
	font-size: 1.1em;
	margin: 10px 0;
}

#adminBox label {
	float: left;
	font-weight: bold;
	width: 6em;
	padding-top: 5px;
}

#adminBox input {
	border: 2px solid #d63801;
}

#adminBox input[type="submit"] {
	background: #d63801;
	color: #fff;
	margin: 0 6em;
}

.logout {
	position: absolute;
	top: 1em;
	right: 1em;
}

.logout a {
	color: #fff;
	text-decoration: none;
}

.logout a:hover {
	text-decoration: underline;
}

/*@end*/

/* @group Disqus */

#disqus_thread {
	width: 80%;
	margin: 30px auto;
}

.dsq-brlink {
	display: block;
	margin: 0 20px 20px;
}

/*@end*/

.intelligentLink {
	display: block;
	margin: 40px 10px 0;
}

.back {
	display: block;
	margin: 20px;
}

div[id^="highlighter"] {
	width: 600px !important;
	margin-left: 20px !important;
}

#smallLogo a {
	background: url(../imgs/small-logo.png) top left no-repeat;
	
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1;
	
	height: 40px;
	width: 175px;
	text-indent: -9999px;
}




