/*!
Theme Name: mesemives-1-0
Theme URI: 
Author: Roll and Art
Author URI: http://rollandart.com/
Description: Custom theme
Version: 1.0.0
License: (C) Copyright 2018
License URI:
Text Domain: mesemives-1-0
Tags: custom-background, custom-logo, custom-menu, featured-images
*/
@import url('https://fonts.googleapis.com/css?family=Bree+Serif&subset=latin-ext');

@media screen {
/* ------------------------------------------------------
@NORMALIZE
------------------------------------------------------ */
* { vertical-align: baseline; margin: 0; padding: 0; font-size: 100%; }
#page * { box-sizing: border-box; }
header, nav, section, article, aside, footer, hgroup { display: block; }
h1, h2, h3, h4, h5, h6, p, li, blockquote, cite, div { cursor: default; }
ol, ul { list-style-type: none; }
a, embed, object, .button, input:focus, textarea:focus, select:focus { outline: none; }
a, a:hover { text-decoration: none; cursor: pointer; }
iframe, fieldset, img { border: 0; }
img, video { max-width: 100%; height: auto; }
	
.skip-link,
.site-description { display: none; }
	
.alignleft { display: inline; float: left; margin-right: 1.5em; }
.alignright { display: inline; float: right; margin-left: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }	

hr { background: url(images/decor-hr.png) left top repeat-x; border: 0; height: 50px; margin-bottom: 1.5em; }
	
/* ------------------------------------------------------
@TYPO BASE
------------------------------------------------------ */
body { font-size: 16px; color: rgba(91,15,5,1.0); 
-webkit-text-size-adjust: none; 
   -moz-text-size-adjust: none; 
    -ms-text-size-adjust: none; 
        text-size-adjust: none;	}
body, input, button { font-family: 'Bree Serif', serif; }

h1 { font-size: 225%; margin-bottom: 20px; }
h2 { font-size: 168.75%; margin-bottom: 20px; }
h3 { font-size: 143.75%; margin-bottom: 10px; }
h4 { font-size: 131.25%; margin-bottom: 10px; }
p { font-size: 100%; margin-bottom: 10px; }
li { font-size: 100%; }

	small, .small { font-size: 80%; }
	big, .big { font-size: 131.25%; }

h1 { font-weight: 400; line-height: 1em; }
h2, h3, h4 { font-weight: 400; line-height: 1.4em; }
p, li { font-weight: 400; line-height: 1.6em; }

strong { font-weight: 800; }

a { color: rgba(190,34,4,1.0); cursor: pointer; }
a:hover { color: rgba(140,26,3,1.0); }
	
a,
a:hover {   
		-webkit-transition: all 0.25s 0s ease;
		   -moz-transition: all 0.25s 0s ease;
		     -o-transition: all 0.25s 0s ease; 
		        transition: all 0.25s 0s ease;        
	}	
	
/* ------------------------------------------------------
@SITE LAYOUT & CUSTOM CONTENT
------------------------------------------------------ */
body { text-align: center; background: rgba(221, 183, 141, 1); }    
	
#fixed-background { position: fixed; z-index: 1; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
#page { position: relative; z-index: 2; }

	/* HEADER */
	#masthead { background: url(images/bg-header.png) top center no-repeat; position: relative; z-index: 3; }
    
	#masthead::before,
	#masthead::after { content: ""; display: block; width: 100%; height: 460px; position: absolute; left: 0; top: 0; right: 0; }    
	#masthead::before { z-index: 1; background: url(images/pine-forest.webp) bottom center repeat-x; }
	#masthead::after { z-index: 2; background: url(images/decor-chains-double.png) bottom center repeat-y; }
    
	.site-branding { position: relative; z-index: 3; padding: 160px 0 25px; }

		.site-title a { display: block; width: 256px; height: 278px; margin: 0 auto; background: url(images/logo-mesemives.png) top center no-repeat; background-size: auto 100%; text-indent: 100%; white-space: nowrap; overflow: hidden; }
	
	#site-navigation { position: relative; z-index: 4; margin-top: -20px; min-height: 116px; background: url(images/bg-nav.png) top center repeat-x; }
	
		.menu-toggle { cursor: pointer; position: relative; z-index: 2; }
	
		#primary-menu { position: relative; z-index: 1; }
		#primary-menu::before { content: url(images/decor-butterfly.png); position: absolute; z-index: -1; top: -68px; left: 60%;	}
	
	
	/* CONTENT */
	#content { position: relative; z-index: 2; max-width: 1000px; padding: 10px 15px 135px; margin: 0 auto; text-align: left; overflow: auto; }
	
		#main { position:  relative; padding: 18px; overflow: auto; }
		
		#main p + h1, 
		#main p + h2, 
		#main p + h3,
		#main h1 + h3,
		#main h2 + h3,
		#main article + article { margin-top: 20px; }
	
		#main ul { margin: 0 0 20px 8px; padding-left: 15px; list-style-type: disc; }
		#main ul ul { margin-bottom: 0; list-style-type: circle; }
		#main ul ol { margin-bottom: 0; }
		#main ol { margin: 0 0 20px 5px; padding-left: 20px; list-style-type: decimal; }
		#main ol ol { margin-bottom: 0; list-style-type: decimal; }
		#main ol ul { margin-bottom: 0; list-style-type: circle; }	
		
		#main figure { float: left; width: 50% !important; }
		#main figure:nth-of-type(2n+1),	
		#main .entry-footer { clear: both; }
	
		.wp-caption { margin-bottom: 1.5em; max-width: 100%; }
		.wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; }
		.wp-caption .wp-caption-text { margin: 0.8075em 0; }
		.wp-caption-text { text-align: center; }
	
		#side-nav { padding: 18px; }
		#side-nav h3 { margin-bottom: 0; }
		#side-nav li a { display: block; padding: 5px 0; }
		#side-nav li + li { background: url(images/decor-line.png) left top repeat-x; }
	
		.widget + .widget { margin-top: 18px; }
		
		.card { background: url(images/bg-card.png) center center no-repeat; background-size: 100% 100%; padding: 10px 18px 20px; }
		.card h3,
		.card p { margin-bottom: 5px; }	
		.card .small { margin-bottom: 0; }	
	
		.widget_search { padding: 0 18px; }
		.widget_search h3 { margin-bottom: 5px; }
		.widget_search .screen-reader-text { display: none; }
		.widget_search input { display: block; width: 100%; padding: 8px; border-radius: 5px; margin-bottom: 5px; -webkit-appearance: none; -moz-appearance: none; appearance: none; box-shadow: 0 0 10px 0 rgba(91,15,5,0.45); }
		.widget_search input.search-field { border: none; color: rgba(221, 183, 141, 1); }
		.widget_search input.search-submit { border: none; background: rgba(190,34,4,1.0); color: rgb(255,255,255); text-shadow: 0 -1px 0 rgba(0,0,0,0.75); }
		.widget_search input.search-submit:hover { background: rgba(140,26,3,1.0); }
	
		.links { padding: 8px 18px; }
		.links h3 { margin-bottom: 0; }
		.links li a { display: block; padding: 5px 0; }
		.links li + li { background: url(images/decor-line.png) left top repeat-x; }
	
	.iframe-holder { max-width: 100%; padding: 10px 0 15px 0; margin-bottom: 10px; overflow-x: auto; position: relative; }
	.iframe-holder::before,
	.iframe-holder::after { content: ""; display: block; width: 100%; height: 2px; position: absolute; z-index: 2; background: url(images/decor-line.png) left center repeat-x; }
	.iframe-holder::before { top: 0; }
	.iframe-holder::after { bottom: 0; }
	
	/* FOOTER */
	#colophon { background: rgba(206,130,72,1) url(images/bg-footer.jpg) top center repeat-x; min-height: 180px; padding: 70px 15px 30px; position: relative; z-index: 1; }	
	#colophon::before { content: ""; display: block; width: 100%; height: 180px; position: absolute; top: -180px; left: 0; right: 0; }
	#colophon::before { z-index: 1; background: url(images/decor-footer-right-new.webp) 55% bottom no-repeat; }
	/*#colophon::after { z-index: 2; background: url(images/decor-footer-left.png) 25% bottom no-repeat; }*/
	
	#colophon p { margin-bottom: 5px; }    	
}

/* ------------------------------------------------------
@RESPONSIVE OPTIONS
------------------------------------------------------ */
/* MIN-MAX VALUES */
@media screen 
and (min-width: 481px)	
and (max-width: 1023px) {	
	#secondary-menu { overflow: auto; }
	#secondary-menu li { float: left; width: 48%; }
	#secondary-menu li:nth-of-type(2n+1) { clear: both; margin-right: 4%; }
	#secondary-menu li:nth-of-type(2) { background: none; }
	
	.card,
	.widget_search { float: left; width: 50%; }
	.widget_search { margin-top: 10px !important; }
	.links { clear: both; }
}

/* MIN VALUES */
@media screen 
and (max-width: 767px) {
	#masthead,
	.site-branding,
	.site-title a,
	#primary-menu li {    
		-webkit-transition: all 0.5s 0s ease;
		   -moz-transition: all 0.5s 0s ease;
		     -o-transition: all 0.5s 0s ease; 
		        transition: all 0.5s 0s ease;        
	}    
	#masthead { background-image: url(images/bg-header-small.png); }
	
	.site-branding { padding: 25px; }
	#masthead::before { height: 200px; background-size: cover; }
	#masthead::after,    
	.site-title a { max-height: 145px; }
	
	#site-navigation { min-height: 90px; background-size: auto 80px; }
    
	.menu-toggle { display: block; width: 100%; padding: 20px 20px 30px; -webkit-appearance: none; -moz-appearance: none; appearance: none; border: none; background: none; font-size: 143.75%; color: rgba(255,255,255,1.0); text-shadow: 0 -3px 0 rgba(0,0,0,0.75); }
	.menu-toggle:hover { color: rgba(255,186,0,0.6); }
	
	#primary-menu { font-size: 100%; margin-top: -8px; padding: 0 33px; }	
	#primary-menu li { height: 0; opacity: 0; overflow: hidden; }
	#primary-menu li + li { background: url(images/decor-line.png) top center repeat-x; }
	#primary-menu a { display: block; padding: 15px; }
	#primary-menu::before { top: -120px;}
	
	.toggled .menu-toggle { color: rgba(255,186,0,1.0); }
	.toggled #primary-menu li { height: 55px; opacity: 100; }

	.entry-title { text-align: center; }
	
	.entry-content p img { width: auto; max-height: 200px; }
}
@media screen 
and (max-width: 640px) {
	.alignleft,
	.alignright { float: none; clear: both; display: block; margin-left: auto; margin-right: auto; }
	#main figure { float: none; width: 100% !important; margin: 0 auto; }
}

/* MIN VALUES */
@media screen 
and (min-width: 768px) {	
	.menu-toggle { display: none; }
	
	#primary-menu { font-size: 131.25%; background: none; }		
	#primary-menu li { display: inline-block; background: none; }
	#primary-menu li + li::before { content:" • "; color: rgba(255,255,255,1.0); }	
	#primary-menu a { display: inline-block; padding: 36px 5px; color: rgba(255,255,255,1.0); text-shadow: 0 -3px 0 rgba(0,0,0,0.75); }	
	#primary-menu a:hover  { color: rgba(255,186,0,0.6); }
	#primary-menu .current-menu-item { background: url(images/small-flower1.webp) 55% 0 no-repeat; background-size: 40px auto; }
	#primary-menu li:nth-of-type(1).current-menu-item { background-image: url(images/small-flower1.webp); }
	#primary-menu li:nth-of-type(2).current-menu-item { background-image: url(images/small-flower2.webp); }
	#primary-menu li:nth-of-type(3).current-menu-item { background-image: url(images/small-flower3.webp); }
	#primary-menu li:nth-of-type(4).current-menu-item { background-image: url(images/small-flower2.webp); }
	#primary-menu li:nth-of-type(5).current-menu-item { background-image: url(images/small-flower1.webp); }


	#primary-menu .current-menu-item a { color: rgba(255,186,0,1.0); }
}

@media screen 
and (min-width: 1024px) {	
	#primary-menu { font-size: 168.75%; }	
	#primary-menu a { padding: 32px 5px; }
	
	#primary { float: left; width: 76.5%; }	
	#secondary { float: right; width: 23%; }
	
		#main { float: right; width: 74.5%; padding: 10px 5px; }
		#side-nav { float: left; width: 24%; padding: 10px 0 0; }
}

/* ORIENTATION VALUES */
@media only screen 
and (orientation: landscape) {
	#fixed-background { background: url(images/bg-body.jpg) top center no-repeat; background-size: cover; }
}
@media only screen 
and (orientation: portrait) {
	#fixed-background { background: url(images/bg-body-portrait.jpg) center center no-repeat; background-size: cover; }
}