@import url('https://fonts.googleapis.com/css?family=Merriweather|Muli:300,400,700');

/* Tarvittavat ikonit ladattu Fontellosta */

@font-face { font-family: 'fontello'; src: url('../fonts/fontello.eot?41136532'); src: url('../fonts/fontello.eot?41136532#iefix') format('embedded-opentype'), url('../fonts/fontello.woff2?41136532') format('woff2'), url('../fonts/fontello.woff?41136532') format('woff'), url('../fonts/fontello.ttf?41136532') format('truetype'), url('../fonts/fontello.svg?41136532#fontello') format('svg'); font-weight: normal; font-style: normal; }

[class^="icon-"]::before, [class*=" icon-"]::before { font-family: "fontello"; font-style: normal; font-weight: normal; speak: none; display: inline-block; text-decoration: inherit; width: 1em; margin-right: .2em; text-align: center; font-variant: normal; text-transform: none; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a i[class^="icon-"] { padding-right: 10px; }
 
.icon-search::before { content: '\e800'; } /* '' */
.icon-heart::before { content: '\e801'; } /* '' */
.icon-cancel::before { content: '\e802'; } /* '' */
.icon-home::before { content: '\e803'; } /* '' */
.icon-attach::before { content: '\e804'; } /* '' */
.icon-tag::before { content: '\e805'; } /* '' */
.icon-calendar::before { content: '\e806'; } /* '' */
.icon-help::before { content: '\e80e'; } /* '' */
.icon-info::before { content: '\e80f'; } /* '' */
.icon-ok::before { content: '\e810'; } /* '' */
.icon-menu::before { content: '\f0c9'; } /* '' */

.icon-right::before { content: '\e807'; } /* '' */
.icon-down::before { content: '\e808'; } /* '' */
.icon-left::before { content: '\e809'; } /* '' */
.icon-up::before { content: '\e80a'; } /* '' */

.icon-th-large::before { content: '\e80b'; } /* '' */
.icon-th-list::before { content: '\e80c'; } /* '' */

.icon-email::before { content: '\f0e0'; } /* '' */

.icon-file::before { content: '\f0f6'; } /* '' */
.icon-file-pdf::before { content: '\f1c1'; } /* '' */
.icon-file-word::before { content: '\f1c2'; } /* '' */
.icon-file-excel::before { content: '\f1c3'; } /* '' */
.icon-file-powerpoint::before { content: '\f1c4'; } /* '' */
.icon-file-image::before { content: '\f1c5'; } /* '' */
.icon-file-archive::before { content: '\f1c6'; } /* '' */
.icon-file-audio::before { content: '\f1c7'; } /* '' */
.icon-file-video::before { content: '\f1c8'; } /* '' */
.icon-file-code::before { content: '\f1c9'; } /* '' */

.icon-flickr::before { content: '\f16e'; } /* '' */
.icon-googleplus::before { content: '\f0d4'; } /* '' */
.icon-facebook::before { content: '\f230'; } /* '' */
.icon-twitter:before { content: '\f304'; } /* '' */

/* slider */

div.slider-1 { position: relative; width: 100%; overflow: hidden; margin-bottom: 20px; }
div.slider-1 div.slick-slide { padding: 0 10px; opacity: 0.25; }
div.slider-1 div.slick-active { opacity: 1 !important; }

button.slick-arrow { position: absolute; top: 50%; z-index: 90; }

.slick-arrow { font-size: 0; line-height: 0; position: absolute; top: 50%; display: block; width: 40px; height: 40px; padding: 0; transform: translate(0, -50%); cursor: pointer; color: transparent; border: none; outline: none; background: transparent; }
.slick-arrow:hover, .slick-arrow:focus { color: transparent; outline: none; background: transparent; }
.slick-arrow:hover::before { opacity: 1; }
.slick-arrow::before { font-family: 'fontello'; font-size: 40px; line-height: 1; opacity: 0.75; color: #808080; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.slick-prev { left: 10px; }
.slick-prev::before { content: '\e809'; }

.slick-next { right: 10px; }
.slick-next::before { content: '\e807'; }

@media (max-width: 768px) { div.slider-1 div.slick-slide { padding: 0; } }

/* Sivun perusasetukset */

body {
	margin: 100px 0 0 0 !important;
	font-family: 'Muli', sans-serif !important;
	font-weight: 400;
	font-size: 1.1rem !important;
	background: #fff;
}

a:link, a:hover { color: #a50931 !important; }

#header { position: absolute; top: 0; left: 0; right: 0; height: 80px; background: #ffffff; color: #bbbbbb; box-shadow: 0px 0px 30px 0px rgba(40, 40, 40, 0.1); z-index: 100; }
#header a { height: 80px; line-height: 80px; text-decoration: none; font-weight: 700; color: #a50931; }
#header a i { color: #bbbbbb;  position: relative;}
#header a:hover { color: #bbbbbb; }

#header div.search { margin-left: 20px; }

#header div.homepage i { font-size: 32px; }
#header div.search i { font-size: 28px;  }

#header div span { vertical-align: top; }

#search { position: absolute; top: 80px; left: 0; right: 0; height: 80px; padding: 20px 0; background: #c0c0c0; box-shadow: 0px 0px 30px 0px rgba(40, 40, 40, 0.1); display: none; z-index: 100; }
#search input[type=search] { border: 0; height: 40px; line-height: 40px; background: transparent; color: #ffffff; font-weight: 300; font-size: 24px; border-radius: 0; box-shadow: none !important; }
#search input[type=search]::-webkit-input-placeholder { color: #808080; }
#search input[type=search]::-moz-placeholder { color: #808080; }
#search input[type=search]:-ms-input-placeholder { color: #808080; }
#search input[type=search]::placeholder { color: #808080; }
#search input[type=submit] { border: 0; height: 40px; line-height: 40px; background: #ffffff; color: #a50931; font-weight: 700; font-size: 17px; padding: 0 30px; border-radius: 0; cursor: pointer; }

#search input[type=search]:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px white inset; }

*:focus {
    outline: none;
}

#content { margin-bottom: 50px; }

#footer { background: #f5f5f5; color: #3c3c3c; padding: 50px 0 30px 0; }
#footer div.col:first-child { border-left: 4px dotted #808080; }
#footer div.col { border-right: 4px dotted #808080; margin-bottom: 20px; }
#footer div.col div.col { border: 0 !important; }
#footer img { max-width: 200px; }

@media (min-width: 576px) and (max-width: 991px) { #footer div.col:nth-child(odd) { border-left: 4px dotted #808080; } }
@media (max-width: 575px) { #footer div.col { border: 0 !important; } }

div.file { padding-left: 16px; border-left: 4px dotted #808080; }

/* Bootstrap */

.no-gutters {
	margin-right: 0;
	margin-left: 0;

	> .col, > [class*="col-"] {
		padding-right: 0;
		padding-left: 0;
	}
}

.list-group { margin: 50px 0; }
.list-group-item { border-radius: 0 !important; border-width: 1px 0 !important; padding: 15px 0 !important; }
a.list-group-item { color: #3c3c3c; }
a.list-group-item:hover { color: #a50931; }
a.list-group-item div.title { font-weight: 700; }
a.list-group-item div.readmore { margin-left: 20px; }


div.page-list { margin: 40px 0; }
div.page-list div.page-box { padding-bottom: 20px; }
div.page-list div.page-box a { color: #a50931; }
div.page-list div.page-box img { max-width: 200px; }

div.articlecategory-list { margin: 20px -5px; }
div.articlecategory-list div { padding: 0 5px; line-height: 50px; }
div.articlecategory-list div a { padding: 10px 15px; border: 1px solid #d9d9d9; text-decoration: none; }
div.articlecategory-list div a.selected, div.articlecategory-list div a:hover { border-color: #006ff2; background: #006ff2; color: #ffffff; }

div.readmore { white-space: nowrap; }
div.readmore::before { content: "\2794"; padding-right: 5px; }

div.article-box {  }
div.article-box a { display: block; border: 1px solid #d9d9d9; text-decoration: none; color: #3c3c3c; }
div.article-box a:hover { border-color: #a50931; color: #a50931; }
div.article-box div.article-image-missing { background: #808080; text-align: center; color: #c0c0c0; padding-bottom: 45%; }
div.article-box div.article-title { border: 15px solid transparent; line-height: 25px; height: 105px; font-weight: 700; overflow: hidden; }
div.article-box div.readmore { border: 15px solid transparent; border-top: 0; }

h1, h2, h3, h4 { font-weight: 700 !important; }

h1 { font-size: 42px !important; color: #a50931 !important; }
h2 { font-size: 32px !important; color: #a50931 !important; }
h3 { font-size: 24px !important; color: #a50931 !important; }

article { }
article section { max-width: 740px; }

aside { }
aside section { border-top: 8px solid #ececec; padding: 20px 0; }
aside section h2 { color: #a50931; }

main { display: flex !important; flex-flow: row wrap; }
main article { flex: 1 1 840px; order: 1; }
main aside { flex: 1 1 270px; order: 2; }

@media (min-width: 992px) and (max-width: 1199px) {

	main article { flex: 1 1 660px; order: 1; }
	main article section { max-width: 630px; }

	main aside { flex: 1 1 270px; order: 2; }

}

div.image-left { float: left; width: 50%; padding-right: 10px; margin: 0 10px 20px 0; }
div.image-right { float: right; width: 50%; padding-left: 10px; margin: 0 0 20px 10px; }
div.image-full { margin-bottom: 20px; }

div.image-caption { padding-top: 10px; color: #808080; font-size: 80%; }
div.image-photographer { padding-top: 10px; color: #808080; font-size: 80%; }

@media (max-width: 480px) {
	div.image-left, div.image-right { float: none; width: 100%; padding: 0; margin: 0 0 20px 0; }
}

div.user-embedded-video { max-width: 100%; height: 0; padding-bottom: 56.25%; position: relative; margin-bottom: 20px; }
div.user-embedded-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

div.user-embedded-image img { max-width: 100%; height: auto !important; }

@media (max-width: 767px) {
	div.user-embedded-video { max-width: 100%; padding-bottom: 56.25%; }
	div.user-embedded-image img { max-width: 100%; }
}

/* Comments Form */

.comment-form-container {
	position: relative;
	background: #f5f5f5;
	border-top: 4px solid #a50931;
	margin: 20px 0;
	padding: 10px;
}

.comment-form-container::after {
	bottom: 100%;
	left: 40px;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: transparent;
	border-bottom-color: #a50931;
	border-width: 15px;
	margin-left: -15px;
}

.form-control:focus { border-color: #a50931 !important; box-shadow: 0 0 0 0.2rem rgba(165, 9, 49, 0.25) !important; }

/* Comments List */

/* Comment Item */

.comment-single .comment-container {
    padding: 15px 10px;
    border: 1px solid #ddd;
}

.comment-single .comment-single {
	flex: 0 0 100% !important;
	max-width: 100% !important;
}

.comment-single .comment-single .comment-container {
	border-top: 0 !important;
}

.comments-list .comment-text,
.comments-list .comment-image {
    display: block;
}

.comments-list .comment-form {
    display: none;
}

.comment-image {
    width: 30px;
    margin-right: 10px;
    height: 30px;
    float: left;
}

.comment-image img {
    width: 100%;
}

.comment-text p {
    margin: 0;
}

.comment-heading {
    color: #aaa;
    margin-bottom: 5px;
    display: block;
}

.comment-heading .title {
    font-weight: 700;
    text-decoration: none;
    color: #288ce4;
    font-size: 13px;
}

.comment-heading .meta {
    margin-left: 5px;
    font-weight: 500;
    font-size: 12px;
    color: #a5b2b9;
}

/* Comment Item - Reply Form */

.comment-single .comment-form {
    margin: 20px 0 0 0;
    padding-bottom: 0;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    margin: 0;
}

/* Comment Item - Meta Buttons */

.meta-buttons {
    margin-top: 10px;
}

.meta-buttons a {
    font-weight: bold;
    font-size: 11px;
    padding: 0 15px 0 0;
    color: #288ce4;
}

.meta-buttons .comment-votes {
    display: inline-block;
    margin-right: 15px;
}

.meta-buttons .comment-votes a {
    padding: 0 0 0 2px;
}

.meta-buttons .comment-votes .count {
    color: #a5b2b9;
    font-weight: 500;
    font-size: 13px;
    margin-right: 2px;
}

.meta-buttons .static-label {
    font-weight: bold;
    font-size: 11px;
    color: #a5b2b9;
}


/* Comment Item - Share/Options Dropdown */

.comment-heading .dropdown {
    float: right;
    margin-left: 20px;
}