
/*
	Theme Name: Pelastussanoma
*/

/* General */

* {
	outline: none;
}

html, body {
	width: 100%;
	height: 100%;
	text-align: left;
	margin: 0;
	padding: 0;
	background-color: #ffffff;
	background-image: url('/pelastussanoma1.jpg');
	background-position: center top;
	background-attachment: fixed;
	background-size: cover;
}

div,
img,
video,
iframe,
sup,
sub,
table,
tbody,
tr,
td {
	border: 0;
	margin: 0;
	padding: 0;
}

div,
img {
	display: block;
	max-width: 100%;
	height: auto;
}

video,
iframe {
    display: block;
	max-width: 100%;
	max-height: 750px;
	max-height: 75vh;
	margin: 0 auto 0 auto;
}

table {
	width: 100%;
	border-spacing: 0;
}

td {
	text-align: left;
	vertical-align: top;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
td {
	font-family: Verdana, "sans-serif";
	font-size: 16px;
	font-size: 1em;
	font-size: 100%;
	line-height: 19.5px;
	letter-spacing: 0;
	font-weight: normal;
	color: #000000;
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
	white-space: normal;
	margin: 0;
	padding: 0;
}

h1 {
	font-size: 27px;
	line-height: 30.5px;
	font-weight: normal;
}

h2 {
	font-size: 24px;
	line-height: 27.5px;
	font-weight: normal;
}

h3 {
	font-size: 20px;
	line-height: 23.5px;
	font-weight: normal;
}

h4 {
	font-weight: bold;
	text-transform: uppercase;
}

h5 {
	font-weight: bold;
}

h6 {
	font-weight: normal;
	font-style: italic;
}

blockquote {
	display: block;
	font-style: italic;
	border: 1px solid rgba(0, 153, 0, 0.3);
	background-color: rgba(0, 153, 0, 0.2);
	margin: 2.5% 0 2.5% 0;
	padding: 2.5% 3% 1.5% 3%;
}

ol,
ul {
	display: table-cell;
	margin: 0;
	padding: 0 0 5% 5%;
}

a:link,
a:active,
a:visited,
a:hover {
	color: rgb(0, 0, 153);
	text-decoration: underline;
	margin: 0;
	padding: 0;
}

a:hover {
	color: rgb(153, 0, 0);
	text-decoration: none;
}

sup {
	vertical-align: top;
}

sub {
	vertical-align: bottom;
}

hr {
	width: 100%;
	height: 1px;
	color: #999999;
	vertical-align: middle;
	border: 0;
 	background-color: #999999;
	margin: 0 0 2.5% 0;
	padding: 0;
}

/* Front Page */

table#frontPage div,
table#frontPage img {
	margin: 0 auto 0 auto;
}

table#frontPage td {
	text-align: center;
	vertical-align: top;
}

table.widthNarrow {
	width: 94.5%;
}

.widthHalf {
	width: 50%;
}

.widthQuarter {
	width: 25%;
}

table.spacingModerate td {
	padding: 5px;
}

a.fadeOut div {
	background-color: #ffffff;
}

a.fadeOut img {
	transition: opacity 0.25s;
}

a.fadeOut:hover img {
	opacity: 0.45;
}

img.categoryNewPosts {
	position: absolute;
	top: 5px;
	right: 8px;
}

.forum {
	position: relative;
}

.forum a {
	width: 100%;
	display: block;
	position: absolute;
     top: 50%;
     transform: translateY(-50%);
	text-decoration: none;
}

.forum h3 {
	font-size: 24px;
	line-height: 28.5px;
	text-transform: uppercase;
}

.forum a h3,
.forum p {
	color: rgb(0, 0, 153);
}

.forum a:hover h3,
.forum a:hover p {
	color: rgb(153, 0, 0);
}

.bgBlue {
	color: #ffffff;
	background-color: rgb(0, 0, 153);
}

.bgBlue h3, .bgBlue a {
	color: #ffffff;
}

.linkCell {
	width: 200px;
	text-transform: uppercase;
}

table#frontPage .aligncenter {
	text-align: center;
}

table#frontPage .aligncenter a {
	display: inline-block;
}

table#frontPage .alignjustify {
	text-align: justify;
}

table#frontPage .alignverticalmiddle {
	vertical-align: middle;
}

/* Content */

table#bgWhite {
	max-width: 900px;
	height: 100%;
	overflow: hidden;
	margin: 0 auto 0 auto;
	background-color: rgba(255, 255, 255, 0.70);
}

table#main {
	padding: 5% 3% 4% 3%;
}

td#titleMain h1 {
	font-size: 53px;
	line-height: 55.5px;
	font-weight: bold;
	color: rgb(0, 0, 153);
	text-transform: uppercase;
}

td#titleMain h1 a {
	color: rgb(0, 0, 153);
	text-decoration: none;
}

td.title h2 {
	font-size: 27px;
	font-weight: normal;
	line-height: 30.5px;
}

td.title span.mnp-title-wrapper img {
	display: inline-block;
	vertical-align: middle;
}

td.title h2 a {
	text-decoration: none;
}

td.category h3 {
	font-size: 30px;
	line-height: 33.5px;
	font-weight: normal;
	font-style: italic;
}

article,
article p {
	text-align: justify;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6,
article p {
	margin: 0 0 2.5% 0;
}

article td.content a {
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-o-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
}

.fontSmaller {
	font-size: 14px;
	line-height: 17.5px;
}

.wp-caption-text {
	font-size: 14px;
	line-height: 17.5px;
	font-style: italic;
}

article div.wp-caption,
article div.wp-caption img {
	width: auto !important;
}

article img {
	margin: 0 0 1.5% 0;
}

.alignleft {
	float: left;
	text-align: left;
	margin: 0 2.5% 1.5% 0;
}

.alignright {
	float: right;
	text-align: right;
	margin: 0 0 1.5% 2.5%;
}

.aligncenter {
	text-align: center;
	margin: 0 auto 1.5% auto;
}

.aligncenter img {
	margin: 0 auto 1.5% auto;
}

.aligncenter p {
	text-align: center;
}

a.navigationLink,
.navigationLink {
	font-weight: bold;
}

td.header hr,
td.footer hr {
	display: inline-block;
	width: 56%;
	margin: 0;
}

#comments p {
	padding-top: 2.5%;
}

#comments label,
#cancel-comment-reply-link {
	display: block;
}

#comments label[for="wp-comment-cookies-consent"] {
	display: initial;
}

.comment-respond,
.commentsContainer {
	border-top: 1px solid #999999;
	margin: 2.5% 0 2.5% 0;
	padding: 2.5% 0 2.5% 0;
}

.comment {
	border: 1px solid rgba(0, 0, 153, 0.1);
	background-color: rgba(0, 0, 153, 0.075);
	margin: 2.5% 0 2.5% 0;
	padding: 2.5% 3% 1.5% 3%;
}

.comment p {
	font-style: italic;
	padding: 2.5% 0 2.5% 0;
}

@media (max-width: 900px) {

	/* Front Page */

	table#frontPage td {
		display: inline-block;
		clear: both;
	}

	table.widthThird {
		margin: 0 auto 0 auto;
		width: 75%;
	}

	.widthHalf {
		width: 100%;
	}

	.linkCell {
		margin: 10% 0 10% 0;
		background: none;
	}

	.linkCell a {
		color: #000000;
	}

	/* Content */

	table#bgWhite {
		max-width: 100%;
	}

	td#titleMain h1 {
		font-size: 8vw;
		line-height: 12vw;
	}

	td.category h3 {
		font-size: 6vw;
		line-height: 6vw;
	}

	article,
	article p {
		-webkit-hyphens: auto;
		-moz-hyphens: auto;
		-o-hyphens: auto;
		-ms-hyphens: auto;
		hyphens: auto;
	}

	td.header hr,
	td.footer hr {
		width: 88%;
	}

}

@media (max-width: 600px) {

	/* Content */

	.alignleft,
	.alignright,
	.aligncenter {
		float: none;
		text-align: center;
		margin: 0 auto 1.5% auto;
	}

	.alignleft img,
	.alignright img,
	.aligncenter img {
		margin: 0 auto 1.5% auto;
	}

	.forum a {
		position: relative;
	     top: 0;
	     transform: translateY(0);
	}

}
