/*
 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
*/

.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;
	width: auto;
	margin: 0 auto 1em;
	display: block;
}

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

.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-summary img {
	height: 200px;
	width: auto;
	float: left;
	margin: 0 1em 1em 0;
}

.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 {
	width: 980px;
	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;
}

.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 {
		float: none;
		clear: both;
		overflow: auto;
		width: auto;
		height: auto;
	}
	
	.ylabanneri {
		display: none;
	}

	.mobiilibanneri {
		display: block;
	}
	
	.entry-summary img {
		float: none;
		margin: 0 auto 1em;
		display: block;
	}
	
	.matala, .korkea {
		height: auto;
	}
	
	.footer-widgets-wrapper li, .front-page-widgets-wrapper li {
		padding-bottom: 0.5em;
	}
}

.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: .88888em;
    color: #fff;
    margin: 2px 0 2px 0;
    padding: .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: .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;
}

.site-main .ylabanneri {
	margin-left: -80px;
}

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;
}

  .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: 120px;
	height: 50px;
	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;
}

#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: 100px;
	vertical-align: middle;
}

h1, .site-title {
	font-size: 2.6em;
}

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

.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%;
}

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