/*
Theme Name: kahdeksantoista
Theme URI: https://nardusmedia.fi
Author: Pertti Muikku
Author URI: https://nardusmedia.fi/
Description: Theme for kahdeksantoista.
Version: 1.0
License: 
License URI: 
Tags:
Text Domain: suomi-israel
*/


/* =raamattutunnit
-------------------------------------------------------------- */

.raamattutunnit {
	width: 100%;
}

.raamattutunnit td{
	padding: 10px;
}

.raamattutunnit tr:nth-child(even) {
	background: #ccc;
}

.raamattutunnit tr:nth-child(odd) {
	background: #FFF;
}

.raamattutunnit td:first-child(odd) {
	width 80%;
	text-align: left;
}
.raamattutunnit td:nth-child(even) {
	width 20%;
	text-align: center;
}
.raamattutunnit a:link, .raamattutunnit a:visited, .raamattutunnit a:active {
	color: #005a9c;
	text-decoration: none;
}
.raamattutunnit a:hover {
	text-decoration: underline;
	
}


/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
        white-space: nowrap;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* MUUT 
-------------------------------------------------------------- */

body {
	background-color: #fff;
	padding: 0px;
	margin: 0px;
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
	font-size: 16px;
	line-height: 160%;
	color: #555;
}
.ylapalkki{
	background-color: #fff;
	padding: 0px;
	margin: 0px;
	background-image: url('images/ylapalkintausta.jpg');
	background-repeat:repeat-x;
}

.vasen-palkki {
	float: left;
	padding: 0px;
	margin: 0px;
}
.sisalto {
    max-width: 700px;
	float: left;
	padding: 15px;
	padding-top: 0px;
}
hr { 
    display: block;
    margin-top: 40px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    border-style: inset;
    border-width: 1px;
	color: #555;
} 

a:link, a:visited, a:active {
	color: #005a9c;
	text-decoration: none;
}
a:hover {
	text-decoration: none;
	color: rgba(232,179,75,1.00);
}

.logo {
    position: absolute;
	top: 5px;
    left: 10px;
	z-index: 10;
}
.logo img {
	width: 50px;
	height: 50px;
	border: none;
}
h1 {
	margin-top: 10px;
	margin-right: 0;
	margin-left: 0;
	margin-bottom: 10px;
	font-size: 26px;
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
	color: #005a9c;
	line-height: 160%;
}

h2 {
	margin-top: 30px;
	margin-right: 0;
	margin-left: 0;
	margin-bottom: 10px;
	font-size: 22px;
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
	color: #005a9c;
}
h3 {
	margin-top: 30px;
	margin-right: 0;
	margin-left: 0;
	margin-bottom: 10px;
	font-size: 18px;
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
	color: #005a9c;
}
h4 {
	margin-top: 30px;
	margin-right: 0;
	margin-left: 0;
	margin-bottom: 10px;
	font-size: 18px;
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
	color: #005a9c;
}
h6 {
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
	font-size: 16px;
	line-height: 160%;
	color: #555;
	font-weight: bold;
}
.footeri {

	height: 50px;
}
.sivuston-nimi-menussa {
	display: none;
}

/* MENU BOOTSTRAP
-------------------------------------------------------------- */

.navbar > .container,
.navbar > .container-fluid {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 10px;
}
.bg-light {
  background-color: #f8f9fa !important;
  background-color: #fff !important;
}
.navbar {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 0px;
}
.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.navbar-toggler:hover, .navbar-toggler:focus {
  text-decoration: none;
}

.navbar-toggler:not(:disabled):not(.disabled) {
  cursor: pointer;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: "";
  background: no-repeat center center;
  background-size: 100% 100%;
}
.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}

.navbar-brand:hover, .navbar-brand:focus {
  text-decoration: none;
}
.navbar ul{
	padding: 0px;
	padding-top: 10px;
	margin: 0px;
	background: #fff;
	width: 180px;
}
.navbar li a {
	padding: 0px;
	margin: 0px;
	margin-bottom: 5px;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: #292b2c;
  text-align: left;
  list-style: none;
  background-color: #fff;
  -webkit-background-clip: padding-box;
          background-clip: padding-box;
  border: 0px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}


@media screen and (max-width: 767px) {
	
.ylapalkki{
	background-color: #fff;
	padding: 0px;
	margin: 0px;
	background-image: url('images/ylapalkintausta.jpg');
	background-repeat:repeat-x;
	display: none;
}
.ylapalkki-mobiili{
	background-color: #fff;
	padding: 0px;
	margin: 0px;
	background-image: url('images/ylapalkintausta.jpg');
	background-repeat:repeat-x;
	height: 18px;
}
	
.sivuston-nimi-menussa {
	font-size: 22px;
	display: inline-block;
	font-family: 'EB Garamond', serif;
	color: #722f37;
}

.vasen-palkki {
	width: 100%;
	float: none;
	display: block;
}
/* MENU BOOTSTRAP
-------------------------------------------------------------- */
.vasen-palkki {
  width: 100%;
}

.navbar > .container,
.navbar > .container-fluid {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 10px;
	width: 100%;
}
	
.bg-light {
  background-color: #f8f9fa !important;
  /*background-color: #fff !important;*/
}
.navbar {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 0px;
	
}
	
/* Mobiili-navigaation täppi */
.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  background-color: #fff;
}

.navbar-toggler:hover, .navbar-toggler:focus {
  text-decoration: none;
}

.navbar-toggler:not(:disabled):not(.disabled) {
  cursor: pointer;
	
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: "";
  background: no-repeat center center;
  background-size: 100% 100%;
  
}
/* sivuston nimi */
.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
 
}

.navbar-brand:hover, .navbar-brand:focus {
  text-decoration: none;
}
.navbar ul{
	padding: 0px;
	padding-top: 10px;
	margin: 0px;
	background: #fff;
	width: 180px;
	background-color: #f8f9fa;
    width: 100%;
	text-align: left;
	border: none;
}
.navbar li {
	border: 0px;
	border-top: 1px;
	border-style: solid;
	width: 100%;
	border-color: #005a9c;
}
.navbar li a {
	padding: 10px;
	margin: 0px;
	width: 100%;
	background-color: #f8f9fa;
	text-align: left;
	color: #005a9c;
}
.navbar li a:hover {
	color: rgba(232,179,75,1.00);
}
.sisalto {
    width: 100%;
	float: left;
	padding: 15px;
	padding-top: 0px;
}
  .container {
    padding-right: 15px;
    padding-left: 15px;
	  max-width: 100%;
  }

}



