/*
 Theme Name:   Kirjavinkit
 Theme URI:    http://www.kirjavinkit.fi/
 Description:  Kirjavinkit
 Author:       Mikko Saari
 Author URI:   http://www.mikkosaari.fi
 Template:     sanse
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         quirky
 Text Domain:  kirjavinkit
*/

h1,
h2,
h3,
h4,
h5,
h6 {
	letter-spacing: 0;
}

h1.entry-title {
	letter-spacing: 0.05em;
}

.entry-meta {
	max-width: 620px;
	text-align: left;
	font-size: 0.8em;
}

.entry-terms > a {
	text-transform: none;
	text-decoration: none;
}

.entry-terms-wrapper {
	clear: both;
	overflow: auto;
}

.kansikuva_kauppalinkit {
	float: right;
	margin-left: 1.2em;
}

.kansikuva_kauppalinkit h3 {
	font-size: 1em;
	text-align: center;
}

.kansikuva_kauppalinkit img {
	max-height: 300px;
	max-width: 250px;
	width: auto;
	margin: 0 auto 1em;
	display: block;
}

#page .mailpoet_lomake {
	padding: 0 1em;
}

.content-area {
	padding-top: 1.5%;
}

.hero,
.site-header,
.main-navigation.toggled .primary-menu-wrapper {
	background-color: #860000;
}

.main-navigation a {
	color: #fff;
}

.site-content ::selection {
	background-color: #ddd;
}

.entry-image img {
	max-width: 350px;
	height: 400px;
	object-fit: contain;
	margin: 0 auto;
	display: block;
}

.liittyvat {
	font-style: italic;
	margin-bottom: 1em;
}

.liittyvat a,
.isot_kauppalinkit a {
	text-decoration: underline;
}

.isot_kauppalinkit,
.vinkkaaja {
	max-width: 620px;
	margin: 2em auto;
	overflow: auto;
}

.disclaimer {
	max-width: 1220px;
	margin-left: auto;
	margin-right: auto;
}

.vinkkaaja_kuva {
	float: right;
	width: 96px;
}

.ylabanneri {
	margin: 0em auto 2em;
	background-color: #fff;
}

.mobiilibanneri {
	display: none;
}

.ala {
	margin-top: 2em;
}

.matala,
.korkea {
	margin: 1em 0 2em;
	overflow: auto;
	clear: both;
}

.matala img,
.korkea img {
	margin: 0;
}

.widget a {
	border-bottom: none;
}

.haastattelut-meta {
	font-style: italic;
	font-size: 90%;
}

.uutuuskirjat-meta {
	font-size: 90%;
	font-variant: small-caps;
}

.main-navigation ul ul {
	background-color: #860000;
}

.main-navigation .sub-menu li,
.main-navigation ul ul li {
	border-bottom: 1px solid white;
}

.main-navigation .current-menu-ancestor > a,
.main-navigation .current-menu-item > a,
.main-navigation a:active,
.main-navigation a:focus,
.main-navigation a:hover {
	color: #eee;
	background-color: #a71616;
}

.footer-widgets-wrapper .widget-title {
	color: #a71616;
}

li.recentCommentsPostTitle a,
.widget_recent_entries a,
.textwidget li a {
	text-decoration: none;
}

li.recentCommentsPostTitle ul li a {
	text-decoration: none;
}

a.haku {
	color: #a71616;
	font-size: 1.265625em;
	font-weight: 700;
}

@media (max-width: 480px) {
	.kansikuva_kauppalinkit img {
		height: auto;
		width: auto;
		max-width: 100%;
		max-height: 100%;
	}

	.kansikuva_kauppalinkit {
		float: none;
		clear: both;
		overflow: auto;
		width: auto;
		height: auto;
		margin-left: 0;
	}

	.ylabanneri {
		display: none;
	}

	.mobiilibanneri {
		display: block;
	}

	.entry-image {
		float: none;
		margin: 0 auto 1em;
		display: block;
		height: auto;
	}

	.matala,
	.korkea {
		height: auto;
	}

	.footer-widgets-wrapper li,
	.front-page-widgets-wrapper li {
		padding-bottom: 0.5em;
	}

	header.entry-header {
		display: flex;
		flex-direction: column;
	}

	header.entry-header .kansikuva_kauppalinkit {
		order: 1;
	}

	header.entry-header h1 {
		order: 2;
	}

	header.entry-header .entry-meta {
		order: 3;
		width: 80%;
		font-size: 1em;
	}

	header.entry-header:after {
		order: 4;
	}
}

.entry-summary .entry-meta {
	margin-bottom: 1em;
}

/* Styling a search form in the menu -- see accompanying php*/

/* my-nav-menu-search menu item created in functions.php. Move it way over to the right */
.navbar .nav .my-nav-menu-search {
	float: right;
}
.navbar .nav {
	width: 100%;
}

/*Stop the display of the Search button*/
.my-nav-menu-search .search-submit {
	display: none;
}
/* The "Search for" text is needed for screen readers, but we move it off screen, so we won't see it */
.my-nav-menu-search .search-form .screen-reader-text {
	position: absolute;
	left: -9999px;
	overflow: hidden;
}

/* Add a magnifying glass background and style the search input textbox */
.my-nav-menu-search .search-field {
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: 5px center;
	-webkit-background-size: 18px 18px;
	background-size: 18px 18px;
	border: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	cursor: pointer;
	font-size: 0.88888em;
	color: #fff;
	margin: 2px 0 2px 0;
	padding: 0.65625em;
	position: relative;
	-webkit-transition: width 400ms ease, background 400ms ease;
	-moz-transition: width 400ms ease, background 400ms ease;
	-o-transition: width 400ms ease, background 400ms ease;
	transition: width 400ms ease, background 400ms ease;
}

.my-nav-menu-search .search-field:active,
.my-nav-menu-search .search-field:focus {
	background-color: #fafafa;
	color: #333;
	font-size: 0.688888em;
	/* swap the two colours above if you are working with a dark navbar background */
	border: 2px solid #c3c0ab;
	cursor: text;
	outline: 0;
	width: 200px;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	margin: 0;
}
/* Reset nav width and search floating for mobile menu */
@media (max-width: 979px) {
	.navbar .nav .my-nav-menu-search {
		float: left;
	}
	.navbar .nav {
		width: auto;
	}
}

::-webkit-input-placeholder {
	/* WebKit, Blink, Edge */
	color: #fff;
	text-transform: uppercase;
}
:-moz-placeholder {
	/* Mozilla Firefox 4 to 18 */
	color: #fff;
	opacity: 1;
	text-transform: uppercase;
}
::-moz-placeholder {
	/* Mozilla Firefox 19+ */
	color: #fff;
	opacity: 1;
	text-transform: uppercase;
}
:-ms-input-placeholder {
	/* Internet Explorer 10-11 */
	color: #fff;
	text-transform: uppercase;
}

body.search .search-form {
	margin-bottom: 2em;
}

input[type="search"] {
	width: 75%;
}

.didyoumean a {
	text-decoration: underline;
}

.site-title a,
.site-description {
	color: #fff;
}

ins {
	background-color: #fff;
}

.main-navigation .sub-menu a {
	padding: 0.84375em 0;
}

.entry-summary {
	font-size: 1em;
}

a,
a:visited {
	text-decoration: underline;
}

.footer-widgets-wrapper:after,
.page-header:after,
.pagination:before,
.post-navigation .nav-previous ~ .nav-next:before,
.post-navigation:before,
.single .entry-header:after,
body.page .entry-header:after,
.entry-content a,
.entry-meta a,
.entry-summary a,
.site-info a,
.taxonomy-description a,
.widget a,
.disclaimer a {
	border-bottom: 2px solid #860000;
	text-decoration: none;
}

.entry-meta a {
	border-bottom: 1px solid #860000;
}

.hide {
	display: none;
}
.show {
	display: block !important;
}

.modal-wrapper {
	z-index: 999;
	position: fixed;
	margin: 0 2em;
	top: 100px;
	width: 100%;
}

.modal {
	display: none;
	position: relative;
	width: 95%;
	min-height: 700px;
	padding: 50px 55px;
	background: #fff;
	color: #000000;
	text-align: center;
	border: thin solid black;
}

.close-modal {
	position: absolute;
	top: 20px;
	right: 15px;
	cursor: pointer;
}

.kuvaelementti {
	display: inline;
	padding: 0 1em 1em 0;
}

.disclaimer a {
	color: #ccc;
}

.keskella {
	margin-top: 2em;
}

h3 img {
	vertical-align: middle;
}

.avainsanat {
	font-size: 80%;
}

.content-area {
	margin-top: 0px;
}

.leveat_kauppalinkit {
	overflow: auto;
	text-align: center;
	margin-bottom: 2em;
}

.leveat_kauppalinkit img.logo {
	margin-right: 1em;
	width: 96px;
	height: 40px;
	border: none;
}

div.entry-content .leveat_kauppalinkit a {
	border: none;
}

.leveat_kauppalinkit h3 {
	margin-top: 0;
	font-size: 1.2em;
}

.home h2 {
	text-transform: uppercase;
	margin-top: 1.5em;
	letter-spacing: 0.05em;
}

h2.entry-title {
	margin-top: 1.5em;
}

#hakunappi {
	background-color: transparent;
	color: #fff;
}

#hakunappi:hover {
	background-color: transparent;
}

#haku {
	transition: height 1s ease-in, z-index 1s ease-in, opacity 2s linear;
	border: none;
	text-align: center;
	position: relative;
	top: -200px;
	opacity: 0;
	z-index: -1;
	height: 0px;
	padding-top: 0.7em;
}

#haku input[type="search"] {
	width: 50%;
}

.menu-toggle {
	background-color: transparent;
	color: #fff;
	border-color: #fff;
}

.menu-toggle:active,
.menu-toggle:hover {
	background-color: #fff;
	color: #860000;
}

#kirjalogo {
	width: 32px;
	vertical-align: middle;
}

.site-title {
	font-size: 1.6em;
}

.site-description {
	font-size: 1em;
}

.grid-wrapper > .hentry {
	padding-bottom: 3.5em;
}

@media (max-width: 1023px) {
	.site-title {
		font-size: 1.2em;
	}

	.site-description {
		font-size: 0.8em;
	}

	.site-header {
		padding: 0.4em;
	}
}

.relevanssi_related_post {
	position: relative;
}

.relevanssi_related_post a {
	border: none;
}

.relevanssi_related_post h4 {
	letter-spacing: 0;
	font-size: 0.9em;
}

.relevanssi_related_post .hover {
	display: none;
}

.relevanssi_related_post:hover .hover {
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0px;
	bottom: 0px;
	background-color: white;
	overflow: hidden;
	font-size: 80%;
}

#relevanssi_related {
	margin-top: 2em;
}

.hover span {
	text-decoration: underline;
	color: #860000;
	font-weight: bold;
}

.load_more {
	display: none;
	max-width: 620px;
	margin: 0 auto;
	text-align: center;
	font-style: italic;
}

.kirjavinkit_scroll {
	display: none;
}

footer.single {
	position: fixed;
	bottom: 0px;
	height: auto;
	width: 100vw;
	padding: 1em 0.5em 0.5em;
	font-size: 0.8rem;
}

footer.single .disclaimer {
	text-align: left;
}

@media screen and (max-width: 1023px), (max-height: 768px) {
	footer.single {
		font-size: 0.7rem;
	}
}

@media screen and (max-width: 767px) {
	footer.single {
		display: none;
	}
}

.entry-inner .entry-title {
	font-size: 1.1em;
}

@media screen and (min-width: 37.5em) {
	header .wrapper {
		display: flex;
	}

	.main-navigation a,
	.main-navigation .sub-menu a {
		padding: 0.3em;
	}

	.site-branding {
		flex-basis: 50%;
	}

	.site-header {
		text-align: left;
	}

	.menu-toggle {
		display: none;
	}
	.main-navigation ul {
		display: block;
	}

	.main-navigation {
		padding-left: 5%;
		padding-right: 5%;
		padding-top: 0em;
		margin: 0;
		text-align: left;
	}
	.no-header-text .main-navigation {
		padding-top: 0;
	}

	.main-navigation li {
		padding-left: 0;
		padding-right: 0;
	}

	.main-navigation .primary-menu,
	.main-navigation .primary-menu > li {
		border: 0;
	}

	.main-navigation a,
	.main-navigation .primary-menu > li {
		display: inline-block;
	}

	.main-navigation a,
	.main-navigation .sub-menu a {
		padding: 0 0.5em;
	}

	.main-navigation ul ul {
		background-color: #ffcd00;
		border: 1px solid #000;
		border-bottom: none;
		display: block;
		left: -999em;
		margin: 0;
		opacity: 0;
		position: absolute;
		transition-property: opacity;
		transition-duration: 0.25s;
		transition-delay: 0.25s;
		transition: opacity 0.3s ease-in-out;
		z-index: 99999;
	}

	.main-navigation ul ul ul {
		top: 0;
	}

	.main-navigation ul ul ul:before,
	.main-navigation ul ul ul:after {
		border: 0;
	}

	.main-navigation ul ul li,
	.main-navigation .sub-menu li {
		border-bottom: 1px solid #484653;
	}

	.main-navigation ul ul a {
		width: 13.6875em;
	}

	.main-navigation li:hover > ul,
	.main-navigation li.focus > ul {
		right: auto;
		left: 0;
		opacity: 1;
	}

	.main-navigation ul ul li:hover > ul,
	.main-navigation ul ul li.focus > ul {
		right: auto;
		left: 100%;
	}

	.main-navigation .menu-item-has-children > a {
		margin: 0;
	}

	.main-navigation ul ul .menu-item-has-children > a {
		padding-right: 2.0625em;
	}
}

span.excerpt_part {
	display: block;
	margin-bottom: 10px;
}

.maahaaste span {
	vertical-align: middle;
	padding-left: 10px;
}

.hakutulos a {
	color: #555;
}

.haku_otsake {
	font-weight: bolder;
}

.hakutulos .loput {
	display: none;
}

.taxonomy-description,
.page-header p {
	text-align: left;
}

cite {
	font-size: 0.7em;
}

.arvostelukappaleet,
.kauppalinkit_info {
	font-size: 0.7em;
	color: #555;
}

.arvostelukappaleet {
	margin-top: 1.5em;
}

.leveat_kauppalinkit p {
	margin-bottom: 0;
}

.mailpoet_lomake {
	background-color: #f0f0f0;
	border: thin solid #ccc;
	border-left: 0px;
	border-right: 0px;
	margin-bottom: 3em;
}

.korostus {
	background-color: #dedede;
	padding: 1.25em 1.375em;
}

@media (prefers-color-scheme: dark) {
	body {
		background-color: #121212;
		color: #cccccc;
	}

	.hero,
	.site-header,
	.main-navigation.toggled .primary-menu-wrapper {
		background-color: #5c0000;
	}

	a.button,
	button,
	input[type="button"],
	input[type="reset"],
	input[type="submit"] {
		background-color: #333;
		color: #ffcd00;
	}

	.site-title,
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	a,
	a:visited,
	.hakutulos a {
		color: #cccccc;
	}

	.main-navigation a {
		color: #ffffff;
	}

	.content-area {
		background-color: #121212;
		border-color: #444444;
	}

	img.logo {
		background-color: #eeeeee;
	}

	.arvostelukappaleet,
	.kauppalinkit_info {
		color: #bbbbbb;
	}

	img.adlibris {
		background: none;
	}

	.entry-terms > a {
		background-color: #242424;
		color: #cccccc;
	}

	.icon-wrapper {
		background-color: #242424;
		color: #cccccc;
	}

	.relevanssi_related_post:hover .hover {
		background-color: #242424;
		color: #cccccc;
	}

	input {
		color: white;
		background-color: #3b3b3b;
	}

	.site-footer {
		color: #bbbbbb;
	}

	div.mailpoet_form_slide_in {
		background-color: #111;
	}

	h2.mailpoet-heading {
		color: #cccccc !important;
	}

	.mailpoet_lomake {
		background: #222222;
	}

	div.mailpoet_form_html a {
		color: #cccccc;
	}

	.korostus {
		background: #242424;
	}

	blockquote {
		border-color: #ccc;
	}
}

.haastattelu {
	display: grid;
	grid-template-columns: 80% 20%;
	margin-top: 2.5em;
	padding-bottom: 0;
}

.wp-block-separator {
	border: none;
}

.suosituimmat {
	text-align: left;
	padding: 0 10px;
}

blockquote {
	font-size: 1em;
}

.adlibris_elementti {
	background-color: #f0f0f0;
	line-height: 40px;
	border-radius: 2px;
	font-weight: 600;
}

.adlibris_elementti img {
	width: 96px;
	height: 40px;
	vertical-align: middle;
}

.taxonomy-description {
	font-style: normal;
}

figcaption {
	font-size: 0.8em;
	text-align: left;
}

.entry-content p, .entry-summary, li {
	hyphens: auto;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
}

.aakkoslista {
	font-size: 1.1em;
	margin-bottom: 1em;
}

.kuvaus {
	font-variant: small-caps;
	font-size: 90%;
}

figure.wp-block-image {
	margin-bottom: 1em;
}

.wp-block-image figcaption {
    padding-bottom: 0.5em;
    border-bottom: 1px solid #999;
}

.uutuushaku {
	margin-bottom: 1em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

span.kuvausteksti::before {
    content: '— ';
}

.relevanssi_related_post {
	margin: 0 auto;
}

.relevanssi_related_post img {
	max-height: 300px;
	width: auto;
}