/*
Theme Name: Jukola 2015 (Twenty Ten) 
Theme URI: http://wordpress.org/
Description: Jukola 2012 Wordpress theme as template
Author: Tietotemput // Eelis Eskelinen :: eeppo.tv
Version: 1.1
Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style
*/

@import url("css/jquery.jscrollpane.css"); 
@import url("css/all_v2.css"); 


/* Tuotu TwentyTen teemasta */

/* =Content
-------------------------------------------------------------- */

.somebar {
	clear: both;
	padding-bottom: 40px;
}
.someslot {
	width: 360px;
	display:block;
	float:left;
	margin-left: 40px;
}

#content table {
	margin: 0 -1px 24px 0;
	text-align: left;
	width: 100%;
}
#content tr th,
#content thead th {
	color: #888;
	font-size: 12px;
	font-weight: bold;
	line-height: 18px;
	padding: 9px 24px;
}
#content tr td {
	padding: 6px 24px;
}
#content tr.odd td {
}
.home .hentry {
	min-height:300px;
	float: right;
	margin: 0;
	margin-right: 220px;
}
.home .sticky {
	background: #f2f7fc;
	border-top: 4px solid #000;
	margin-left: -20px;
	margin-right: -20px;
	padding: 18px 20px;
}
.page .hentry,
.single .hentry {
	margin: 0 250px 36px 0;
}
.page-title {
	color: #000;
	font-size: 14px;
	font-weight: bold;
	margin: 0 0 36px 0;
}
.page-title span {
	color: #333;
	font-size: 16px;
	font-style: italic;
	font-weight: normal;
}
.page-title a:link,
.page-title a:visited {
	color: #888;
	text-decoration: none;
}
.page-title a:active,
.page-title a:hover {
	color: #ff4b33;
}

.entry-meta {
	color: #888;
	font-size: 12px;
}
.entry-meta abbr,
.entry-utility abbr {
	border: none;
}
.entry-meta abbr:hover,
.entry-utility abbr:hover {
	border-bottom: 1px dotted #666;
}
.entry-summary {
	clear: both;
	padding: 12px 0 0 0;
}
#content .entry-summary p:last-child {
	margin-bottom: 12px;
}
.entry-content fieldset {
	border: 1px solid #e7e7e7;
	margin: 0 0 24px 0;
	padding: 24px;
}
.entry-content fieldset legend {
	background: #fff;
	color: #000;
	font-weight: bold;
	padding: 0 24px;
}
.entry-content input {
	margin: 0 0 24px 0;
}
.entry-content input.file,
.entry-content input.button {
	margin-right: 24px;
}
.entry-content label {
	color: #888;
	font-size: 12px;
}
.entry-content select {
	margin: 0 0 24px 0;
}
.entry-content sup,
.entry-content sub {
	font-size: 10px;
}
.entry-content blockquote.left {
	float: left;
	margin-left: 0;
	margin-right: 24px;
	text-align: right;
	width: 33%;
}
.entry-content blockquote.right {
	float: right;
	margin-left: 24px;
	margin-right: 0;
	text-align: left;
	width: 33%;
}
.page-link {
	clear: both;
	color: #000;
	font-weight: bold;
	margin: 0 0 22px 0;
	word-spacing: 0.5em;
}
.page-link a:link,
.page-link a:visited {
	background: #f1f1f1;
	color: #333;
	font-weight: normal;
	padding: 0.5em 0.75em;
	text-decoration: none;
}
.home .sticky .page-link a {
	background: #d9e8f7;
}
.page-link a:active,
.page-link a:hover {
	color: #ff4b33;
}
body.page .edit-link {
	clear: both;
	display: block;
}
#entry-author-info {
	background: #f2f7fc;
	border-top: 4px solid #000;
	clear: both;
	font-size: 14px;
	line-height: 20px;
	margin: 24px 0;
	overflow: hidden;
	padding: 18px 20px;
}
#entry-author-info #author-avatar {
	background: #fff;
	border: 1px solid #e7e7e7;
	float: left;
	height: 60px;
	margin: 0 -104px 0 0;
	padding: 11px;
}
#entry-author-info #author-description {
	float: left;
	margin: 0 0 0 104px;
}
#entry-author-info h2 {
	color: #000;
	font-size: 100%;
	font-weight: bold;
	margin-bottom: 0;
}
.entry-utility {
	clear: both;
	color: #888;
	font-size: 12px;
	line-height: 18px;
}
.entry-meta a,
.entry-utility a {
	color: #888;
}
.entry-meta a:hover,
.entry-utility a:hover {
	color: #ff4b33;
}
#content .video-player {
	padding: 0;
}


/* =Asides
-------------------------------------------------------------- */

.home #content .format-aside p,
.home #content .category-asides p {
	font-size: 14px;
	line-height: 20px;
	margin-bottom: 10px;
	margin-top: 0;
}
.home .hentry.format-aside,
.home .hentry.category-asides {
	padding: 0;
}
.home #content .format-aside .entry-content,
.home #content .category-asides .entry-content {
	padding-top: 0;
}


/* =Gallery listing
-------------------------------------------------------------- */

.format-gallery .size-thumbnail img,
.category-gallery .size-thumbnail img {
	border: 10px solid #f1f1f1;
	margin-bottom: 0;
}
.format-gallery .gallery-thumb,
.category-gallery .gallery-thumb {
	float: left;
	margin-right: 20px;
	margin-top: -4px;
}
.home #content .format-gallery .entry-utility,
.home #content .category-gallery .entry-utility {
	padding-top: 4px;
}


/* =Attachment pages
-------------------------------------------------------------- */

.attachment .entry-content .entry-caption {
	font-size: 140%;
	margin-top: 24px;
}
.attachment .entry-content .nav-previous a:before {
	content: '\2190\00a0';
}
.attachment .entry-content .nav-next a:after {
	content: '\00a0\2192';
}


/* =Images
-------------------------------------------------------------- */

/*
Resize images to fit the main content area.
- Applies only to images uploaded via WordPress by targeting size-* classes.
- Other images will be left alone. Use "size-auto" class to apply to other images.
*/
.wp-caption img,
img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img {
	max-width: 100%; /* When images are too wide for containing element, force them to fit. */
	height: auto; /* Override height to match resized width for correct aspect ratio. */
}
.alignleft,
img.alignleft {
	display: inline;
	float: left;
	margin-right: 24px;
	margin-top: 4px;
}
.alignright,
img.alignright {
	display: inline;
	float: right;
	margin-left: 24px;
	margin-top: 4px;
}
.aligncenter,
img.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
img.alignleft,
img.alignright,
img.aligncenter {
	margin-bottom: 12px;
}
.wp-caption {
	background: #f1f1f1;
	line-height: 18px;
	margin-bottom: 20px;
	max-width: 632px !important; /* prevent too-wide images from breaking layout */
	text-align: center;
}
.wp-caption p.wp-caption-text {
	color: #888;
	font-size: 12px;
	margin: 5px;
}
.wp-smiley {
	margin: 0;
}
.gallery {
	margin: 0 auto 18px;
}
.gallery .gallery-item {
	float: left;
	margin-top: 0;
	text-align: center;
	width: 33%;
}
.gallery-columns-2 .gallery-item {
	width: 50%;
}
.gallery-columns-4 .gallery-item {
	width: 25%;
}
.gallery img {
	border: 2px solid #cfcfcf;
}
.gallery-columns-2 .attachment-medium {
	max-width: 92%;
	height: auto;
}
.gallery-columns-4 .attachment-thumbnail {
	max-width: 84%;
	height: auto;
}
.gallery .gallery-caption {
	color: #888;
	font-size: 12px;
	margin: 0 0 12px;
}
.gallery dl {
	margin: 0;
}
.gallery img {
	border: 10px solid #f1f1f1;
}
.gallery br+br {
	display: none;
}
#content .attachment img {/* single attachment images should be centered */
	display: block;
	margin: 0 auto;
}


/* =Print Style
-------------------------------------------------------------- */

@media print {
	body {
		background: none !important;
	}
	#wrapper {
		clear: both !important;
		display: block !important;
		float: none !important;
		position: relative !important;
	}
	#header {
		border-bottom: 2pt solid #000;
		padding-bottom: 18pt;
	}
	#colophon {
		border-top: 2pt solid #000;
	}
	#site-title,
	#site-description {
		float: none;
		line-height: 1.4em;
		margin: 0;
		padding: 0;
	}
	#site-title {
		font-size: 13pt;
	}
	.entry-content {
		font-size: 14pt;
		line-height: 1.6em;
	}
	.entry-title {
		font-size: 21pt;
	}
	#access,
	#branding img,
	#respond,
	.comment-edit-link,
	.edit-link,
	.navigation,
	.page-link,
	.widget-area {
		display: none !important;
	}
	#container,
	#header,
	#footer {
		margin: 0;
		width: 100%;
	}
	#content,
	.one-column #content {
		margin: 24pt 0 0;
		width: 100%;
	}
	.wp-caption p {
		font-size: 11pt;
	}
	#site-info,
	#site-generator {
		float: none;
		width: auto;
	}
	#colophon {
		width: auto;
	}
	img#wpstats {
		display: none;
	}
	#site-generator a {
		margin: 0;
		padding: 0;
	}
	#entry-author-info {
		border: 1px solid #e7e7e7;
	}
	#main {
		display: inline;
	}
	.home .sticky {
		border: none;
	}
}

@media screen and ( max-width: 767px ) {
    /* mobile mode haxies, TODO move to separate stylesheet */
    body,html {
        min-width: 0;
		background:white;
		font-size: 14px;
    }
    #wrapper::after {
        width: 100%;
    }
    .timemachine, .top-nav, .slideshow {
        width: 100%;
        display:none;
    }
    #footer p {
        width:0;
    }
    .lang-bar {
        float:none;
        position:absolute;
		left: 105px;
		top: 30px;
		padding: 18px 0 20px 0px;
        z-index: 1000;
    }
    .lang-bar li{
        margin: 0 4px;
    }
    h1.logo {
        position: absolute;
        left: -40px;
        top: -8px;
        right:-40px;
        height:40px;
        float:none;
        z-index: 1000;
        display:block;
        width:100%;
        background-position-x: 110px;
        background-position-y:10px;
		background-color: #F05A22;
		background-image: url(/wp-content/themes/jukola_2015/images/jukola-com-logo-white.png);
    }
    .big-logo {
        width:75px;
        height:75px;
        position:absolute;
        left:15px;
        top:10px;
        background-size: 75px 75px;
    }
    #header .menu {
    }

    .menu-paavalikko-container {
        position: absolute;
        right: 0px;
        top: 40px;
		z-index:1000;
    }
    #menu-paavalikko {
        display:none;
    }
    #menu-paavalikko.menu-open {
        display:block;
    }
	#header .menu ul.sub-menu li {
		height: auto;
		font-size: 16px;
	}
	#header .menu ul.sub-menu a {
		padding: 10px;
	}
    #mobiletoggle {
        position:absolute;
        height: 20px;
        width: 40px;
		padding: 14px;
		top: -3px;
		right: 4px;
		z-index: 1000;
        /* font-weight: bold; */
        /* margin: 10px 10px; */
        text-align:center;
    }
    #mobiletoggle::before {
        display: "block";
        content: "=";
        font-size: 22px;
        line-height: 22px;
		padding: 0 10px;
        color: white;
        border: 2px solid;
        border-radius: 5px;
    }

    #main {
        top: 100px;
        width: auto;
    }
    
    #wrapper {
        width: auto;
        margin: 0;
    }
    
    .main-frame {
        width: auto;
        margin: 0;
        float: none;
    }
    
    .home .hentry {
		float: none;
		margin-right: 0px;
    }
	
	.page .hentry,
	.single .hentry {
		margin: 0 0px 0px 0;
	}

    #header .menu {
        padding:0;
        height:auto;
        width: 220px;
    }
    #header .menu li {
        float: none;
        display:block;
    }
    #header .menu li a {
        float: none;
    }
    #header .menu ul.sub-menu {
        position: static;
        margin-left: 20px;
    }
    #mobilemenucurtain.menu-open {
        position:absolute;
        left:0;
        top:0;
        bottom:0;
        right:0;
        z-index: 100;
        background: rgba(0,0,0,0.5);
    }

    .main-frame {
        margin: 10px;
        padding: 0px;
    }

    /* Mobile entry page*/
    body.home #content {
        float:none;
    }
    
    .home .entry-content {
        border-right: 0;
        width: auto;
    }
	
	.wp-caption {
		width: auto !important;
		padding: 0;
	}

	.wp-caption img {
		margin:0;
	}
	
	#content tr td {
		padding: 0 6px 6px 0;
	}

    #sidebar {
		box-sizing: border-box;
        float: none;
        width: 100%;
    }

    /* Show sponsors only on home page in mobile */
    .sponsors {
        display: none;
    }
    body.home .sponsors {
        display: block;
        position: static;
        height: 550px;
		margin: 0 auto;
    }

    /* Hide some stuff, TODO should also strip away from dom */
    .somebar {
        display: none;
    }
    #footer {
        display: none;
    }

}