/*
Theme Name: John Multilingual
Author: John Dyke
Author URI: https://pentyrch.net
Description: This theme was developed for John's website
Version: 1.5.0
License: All rights reserved by the author. The author exerts his moral rights
 */
 
  /*** patch***/
 table {
 	border:3px solid black;
 	border-collapse:collapse;
 }
td, th {
 	border:1px solid #999;
 	padding: 0.5em
 }

.wp-image-128.size-full, img {
    object-fit: contain;
    height: auto;
}
.wp-block-media-text_media img {
	/*height: 100%;*/
	object-fit: contain;
	   background-size: contain;
}

.wp-block-media-text.is-image-fill .wp-block-media-text__media {
    /*height: 100%;*/
    min-height: 250px;
    background-size: contain;
    background-repeat: no-repeat;
}

/******general ***/
/* latin */

a {
	color: #515294;/*****/
}
.small-thumbnail {
    float: left;
    margin: 0px 10px 10px 0px;
}

.single-post-image {
    float: left;
    margin: 0px 12px 12px 0px;
}
#searchsubmit {
    background-color: #7e1212;
    color: white;
    padding: 5px 8px;
    font-size: 15px;
    line-height: 1.3;
    border-radius: 6px;
    cursor: pointer;
}

#s {
    height: 18px;
    padding: 5px 8px;
    font-size: 15px;
    line-height: 1.1;
    border-radius: 6px;
}
h1, header {
	margin-top: 0;
}
p.warn {
	background: purple;
	color: yellow;
	padding:5em;
	min-height: 4em;
	min-width: 20em;
	font-size: x-large;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 900;
	text-align: center;
}
body {
	background: rgb(255, 255, 153) url(images/newoldpaper.jpg) repeat;
	color:  rgb(57, 26, 78);
	margin: 0;
	padding: 0;
	}
	
/*div.header-search {
    /*position:absolute;
    right: 0.5em;
    top:2em;*//*
    float: right;
    clear: both;
}
div.header-search input#searchsubmit{
	background: #7e1212;
	color:white;
}*/
nav li {
	display: inline-block;
	margin: 0;
	padding: .5em;
	border-bottom: 3px solid white;
	background-color: #7e1212;
}
nav li.current-menu-item a {
	color: rgb(255, 255, 0);
}

nav li li, nav li li a, nav li ul {
	display: block;
	background: #12497e;
	color: white;
	/*visibility: hidden;*/
}
nav li li a {
	width:100%
	margin:0 auto;
	
}
nav li ul {
	display: none;
  position: absolute;
  background-color: none;/*#f9f9f9;
  min-width: 160px;*/
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
li:hover ul,li:focus-within ul, li:focus ul {
	display: block;
}

nav a {
	text-decoration: none;
	display: inline-block;
	color: rgb(255, 255, 255);
	font-weight: 900;
	font-family: Arial, Helvetica, sans-serif;
}
nav a:hover {
	color: rgb(233, 143, 99);
 }
 
.postmeta {
	color: #391a4e;
}
.postmeta a, h2 > a {
	color: #391a4e;
	display: inline-block;
	/*text-decoration: none;
	background-color: white;*/
}
a:hover {
	color: red;
}
/*    small */
@media (max-width: 599px) {

nav ul {
	margin: 0;
	padding: 0;
	background: rgb(57, 26, 78);
	display: block;
}
nav ul li{
	display: block;
}
header h1 img {
	 object-fit: contain;
    height: auto;
    width:	200px;
}
nav#menu-primary-menu
{
	display: block; /*****/
}
nav.navigation-menu > div.mbutt {
	display: block;
	width: 2em;
	margin:0;
	margin-left:auto;
}

nav.navigation-menu > div.mbutt > a{
	color: black;
	display: block;
	margin: 0;
	font-weight: 900;
	font-size: 2em;
	background: rgba(255, 255, 255, .7);
	width: 2em:
}
nav.navigation-menu ul.menu {
	background: none;
	display: none; 
}
div.container {
	margin: 0.5em;
}



}



/*  large ***/
 @media screen and (min-width: 600px) {
 
@font-face {
	font-family: Uncial;
	src: url(images/uncialani.woff);
}
@font-face {
	font-family: Fraktur;
	src: url(images/fraktur.woff);
}
@font-face {
	font-family: OldeEnglish;
	src: url(images/oldeenglish.woff);
}
html:lang(en) h2 {
	font-family: OldeEnglish;
	font-size: 3em;
	font-weight: 500;
}
html:lang(cy) h2 {
	font-family: Uncial;
	font-size: 4em;
	font-weight: normal;
}
html:lang(de) h2 {
	font-family: Fraktur;
	font-size: 4em;
}	
nav.navigation-menu > div.mbutt {
	visibility: hidden;
	display:none;

}

#menu-primary-menu {
	display: block;
}
div.container {
	
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: auto;
	grid-template-areas:
		"header header"
		"menu1 menu1"
		"main1 main1"
		"foot1 foot1"; 

}
header{
	grid-area: header;
	background: rgba(255, 255, 255, .5);
	padding: .5em 2em;
	color: rgb(14, 62, 51);
	text-shadow: #dcdcdc  .2em .2em;
	box-shadow: 10px 10px #6c4d2d;
	font-family: 'Uncial Antiqua', sans-serif;
	border-radius: 0 0 4em 4em;
	display: flex;
  justify-content: center;
}
nav.navigation-menu{
	grid-area:menu1;}

nav.navigation-menu > a{
	color: black;
}
div.articles {
	grid-area: main1;
	padding: 1em;
	padding-left: 220px;
	background: url(images/bigj.png) no-repeat top left;
	min-height: 500px;
/*	column-width: 300px;
	column-count: auto;
	column-rule: 2px solid #c5c5c5;
	column-gap: 2em;*/ /*do columns in Gutenberg*/
} /*******/
body.blog div.articles {
	/*column-count: 1 do cols in guttenberh*/
}
footer {
	grid-area:foot1;

}
nav.navigation-menu > div {
  display: flex;
  justify-content: center;
	margin-top: 20px;
	
}

nav.navigation-menu  ul ul{
	margin: 0;
	padding: 0;
}
nav.navigation-menu > ul {
	padding: 0px 35px 10px 30px;
	margin: 0;
}

 }/**end large*/
 
