/*
Theme Name: Tectonic Mechanism
Author: Stephanie Boucher of Applegreen Websites
Author URI: http://www.applegreenwebsites.com
Description: Theme developed for CH Eaton for his tectonic mechanism replacement theory
Date started: July 2019
Version: 1.0
*/



/*Reset info ===========================================================*/

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
		margin: 0;
		padding: 0;
		border: 0;
		font-size: 100%;
		font: inherit;
		vertical-align: baseline; }
	article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
		display: block; }
	body {
		line-height: 1; }
	ol, ul {
		list-style: none; }
	p {
		margin: 1.2em 0; /*returns normal margins to <p>, Applegreen */
		line-height: 155%;
		font-size: 95%;
	} 
/* giving <ul> a margin of 0 in the <nav> element is essential for the drop-down menu to work, if there is one. */


/* general styles for naked foods =======================================*/

* { /* needed for mobile nav  */
  box-sizing: border-box
}
body {
	background: #fff;
	}

h1, h2 {
	color: #444; /* dark grey */
	text-align: center;
	font-family: 'Montserrat', sans-serif;
}
h2 {
	text-align: left;
}

h3 {
	font-family: 'Montserrat', sans-serif;
	color: #0087be;
}
p, form label, table, .wp-caption-text, li {
	 color: #474747;
	 font-family: 'Roboto', sans-serif;
}
table {
	color: #000;
}
a {
	color: #2482c5;
}
a:hover {
	text-decoration: none;
}
.bold, strong, b {
	font-weight: bold;
}
.italic, em, i {
	font-style: italic;
}
sup {
    vertical-align: super;
    font-size: smaller;
} 
.clear {
		clear: both;
}
.offscreen { /* for skip navigation link */
	position:absolute;
	left:-10000px;
	top:auto;
	width:1px;
	height:1px;
	overflow:hidden;
}

/* mobile styles=========================================================*/

.site-title {
	text-align: center;
	font-family: montserrat;
	font-size: 150%;
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 20px;
}
p.site-title a {
	text-decoration: none;
	color: #444;
}
p.site-title a:hover {
	text-decoration: underline;
}
.site-description {
	text-align: center;
	font-family: montserrat;
	font-size: 100%;
	margin-top: 0;
	padding-top: 10px;
	font-weight: 300;
}

/* navigation */

nav {
  background-color: #80cbe1; /* nav background */
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

nav a {
  display: inline-block;
  padding: 8px 16px;
  color: #444; /* dark grey menu items on mobile */
  text-decoration: none;
}



nav ul {
  margin: 0;
  padding: 14px 0;
  list-style: none;
  background: #9abad9; /* blue of mobile menu dropdown background */
  width: 100%;
}

nav li > ul {
  margin: 0;
  padding: 0;
  background: #d6ebff;  /*sets desktop dropdown and submenu for mobile */
  height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

nav li > ul a {
  color: #3366cc; /* blue menu items on mobile drop-down and menu sub-items */
}

.plus,
.minus {
  float: right;
  padding: 6px 16px 6px 30px;
  font-weight: 700;
  color: #444;
  font-size: 20px;
}

.plus:hover,
.minus:hover {
  cursor: pointer;
}

.minus {
  display: none;
}

.open .plus {
  display: none;
}

.open .minus {
  display: block;
}

nav .open > ul {
  margin: 8px 0;
  padding: 12px 0;
  height: auto;
}

.menu-top-menu-container {
  display: none
}

.tadaa .menu-top-menu-container {
  display: block;
}

.menu-button {
  display: block;
  position: relative;
  top: 0;
  width: 48px;
  height: 48px;
  cursor: pointer;
  background-color: transparent;
  -webkit-transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99), -webkit-transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
}

.tadaa .menu-button {
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

.bread {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  -webkit-transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 10;
}

.bread-top {
  -webkit-transition: -webkit-transform 0.25s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: -webkit-transform 0.25s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: transform 0.25s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: transform 0.25s cubic-bezier(0.4, 0.01, 0.165, 0.99), -webkit-transform 0.25s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  -webkit-transform: rotate(0);
  -ms-transform: rotate(0);
  transform: rotate(0);
  z-index: 20;
}

.tadaa .bread-top {
  -webkit-transition: -webkit-transform 0.25s 0.2s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: -webkit-transform 0.25s 0.2s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: transform 0.25s 0.2s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: transform 0.25s 0.2s cubic-bezier(0.4, 0.01, 0.165, 0.99), -webkit-transform 0.25s 0.2s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.bread-bottom {
  -webkit-transition: -webkit-transform 0.25s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: -webkit-transform 0.25s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: transform 0.25s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: transform 0.25s cubic-bezier(0.4, 0.01, 0.165, 0.99), -webkit-transform 0.25s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  -webkit-transform: rotate(0);
  -ms-transform: rotate(0);
  transform: rotate(0);
}

.tadaa .bread-bottom {
  -webkit-transition: -webkit-transform 0.25s 0.2s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: -webkit-transform 0.25s 0.2s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: transform 0.25s 0.2s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition: transform 0.25s 0.2s cubic-bezier(0.4, 0.01, 0.165, 0.99), -webkit-transform 0.25s 0.2s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.ham {
  display: block;
  width: 18px;
  height: 2px;
  background: #0072a0; /* colour of bottom two mobile menu lines */
  position: absolute;
  left: 15px;
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
  z-index: 0;
}

.ham-top {
  top: 23px;
  -webkit-transition: -webkit-transform 0.2s 0.2s;
  transition: -webkit-transform 0.2s 0.2s;
  transition: transform 0.2s 0.2s;
  transition: transform 0.2s 0.2s, -webkit-transform 0.2s 0.2s;
  -webkit-transform: translateY(-4px);
  -ms-transform: translateY(-4px);
  transform: translateY(-4px);
}

.tadaa .ham-top {
  -webkit-transform: translateY(0px);
  -ms-transform: translateY(0px);
  transform: translateY(0px);
  -webkit-transition-delay: 0;
  transition-delay: 0;
}

.ham-bottom {
  bottom: 23px;
  -webkit-transform: translateY(4px);
  -ms-transform: translateY(4px);
  transform: translateY(4px);
}

.tadaa .ham-bottom {
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
  -webkit-transform: translateY(0px);
  -ms-transform: translateY(0px);
  transform: translateY(0px);
}

.mustard {
	display: block;
  width: 18px;
  height: 2px;
  background: #0072a0; /* colour of top mobile menu line */
  position: absolute;
  left: 15px;
  top: 11px;
}

.tadaa .mustard { /* makes .mustard disappear when clicked */
	display: none;
}

/* end of navigation */

h1 {
	font-size: 130%;
	line-height: 130%;
}
h3 {
	line-height: 135%;
}

.lower-container {
	max-width: 1200px;
	margin: 0 auto;
	background: #fff;
	padding: 20px 2% 10px 2%;
}
.lower-container ul {
	margin: 6px 0 6px 5%;
}
.lower-container li {
	list-style-type: disc;
	font-size: 95%;
	line-height: 150%;
	margin-left: 2%;
}

body#correspondence h1 {
	text-align: left;
}

.post-content-container {
	margin-top: 20px;
}
.post-content {
	border-bottom: 1px dashed #ddd;
	margin-bottom: 30px;
}
.post-content:last-child {
	border-bottom: none;
}

.entry-title {
	font-size: 110%;
	margin-bottom: 8px;
}

.widget-title {
	line-height: 140%;
}
.widget {
	margin-bottom: 20px;
}
.meta {
	font-weight: 300;
	font-style: italic;
	font-size: 90%;
	color: #767676;
}

h2.entry-title a {
	color: #444;
	text-decoration: none;
}
h2.entry-title a:hover {
	color: #2482c5;
	text-decoration: underline;
}

.full-width {
	max-width: 1000px;
	margin: 0 auto;
}

/* search box styling */
.search-box {
	margin-top: 4px;
	float: left;
	margin-bottom: 6px;
	display: none;
}
input[type="search"] {
	border: 1px solid #b1b1b1;
	border-radius: 3px;
	height: 24px;
	padding-left: 2px;
}
input[type="submit"] {
	border-radius: 3px;
	height: 23px;
	background: #0078d7;
	color: #fff;
	font-size: 90%;
	font-family: 'Roboto', sans-serif !important;
	border: 1px solid #005292;
}
input[type="submit"]:hover {
	background: #006bbf;
	border: 1px solid #005292;
}

.screen-reader-text { /* Text meant only for screen readers, removes the words "Search for" */
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* WP Galleries===================================================*/

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	margin: 0 0 1.5em;
	padding: 0 0.5em 0 0;
	width: 50%;
}

.gallery-columns-1 .gallery-item {
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus,
.widget-area .gallery-item a,
.widget-area .gallery-item a:hover,
.widget-area .gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

	/* translate sidebar widget */
	ul#sortable.ui-sortable {
		min-width: 150px;
	}

/* WP images ==================================================*/

img,
video {
	height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
}

img.alignright,
img.alignleft,
img.aligncenter,
.alignright,
.alignleft,
.aligncenter { 
	display: block; 
	margin: 20px auto;
}

footer {
	 clear: both;
	 background: rgba(255,255,255,0.7);
	 min-height: 100px;
	 width: 98%;
	padding: 10px 4%;
	 margin: 20px auto 0 auto;
}
 footer p {
	 color: #333;
	 text-align: center;
	 font-weight: 300;
 }
 .footer-pipe {
	 margin: 0 1%;
 }

/*================ media queries for larger screen sizes====*/

@media screen and (min-width:600px) {
	.site-title {
		font-size: 180%;
		padding-top: 40px;
	}
	.site-description {	
		padding-top: 10px;
		padding-bottom: 20px;
	}
	h1 {
		font-size: 150%;
	}
	
	.post-content-container {
		float: left;
		width: 63%;
		margin-right: 5%;
	}
	.sidebar {
		width: 27%;
		float: left;
		margin-top: 20px;
		padding-left: 3%;
		border-left: 1px dashed #ddd;
	}
	.widget {
		margin-bottom: 40px;
	}
	
			/* Gallery Columns */

	.gallery-item {
		max-width: 25%;
	}

	.gallery-columns-1 .gallery-item {
		max-width: 100%;
	}

	.gallery-columns-2 .gallery-item {
		max-width: 50%;
	}

	.gallery-columns-3 .gallery-item {
		max-width: 33.33%;
	}

	.gallery-columns-4 .gallery-item {
		max-width: 25%;
	}
}

@media screen and (min-width:800px) { /* navigation changes */
	
	
  nav {
    min-height: 46px;
    padding: 0 8px;
	text-align: center;
	background: #fff;
	font-size: 110%;
  }
  .menu-button {
    display: none;
  }
  .menu-top-menu-container { /* top-menu is the name given to the menu in the theme */
    display: block;
  }
  nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #9abad9;
    width: 100%;
  }
  nav ul:not(.sub-menu) {
    background-color: transparent;
  }
  nav ul:not(.sub-menu) > li {
    display: inline-block;
    margin-top: 6px;
	border-bottom: 2px solid #fff;
  }
  nav ul:not(.sub-menu) > li:hover {
    border-bottom: 2px solid #4dc4e7;
  }
  
  nav ul:not(.sub-menu) > li a {
    color: #0087be; /* top-level menu item color on desktop */
	font-weight: 700;
  }
  nav ul:not(.sub-menu) > li a:hover {
	  color: #4dc4e7; /* hover colour */
  }
  
  nav .menu-item-has-children a::after { /* addes chevron to top menu items with drop-downs */
		border-style: solid;
		border-width: 0 0 0.15em 0.15em;
		content: '';
		display: inline-block;
		height: 0.4em;
		width: 0.4em;
		left: 0.42em;
		position: relative;
		top: 0.18em;
		transform: rotate(-45deg);
		vertical-align: top;		
	}	 
	
	nav .menu-item-has-children li a::after { /* cancels chevron from actual drop-down items */
		border-style: none;
	}
    nav ul.sub-menu { 
	  z-index: 100; /* ensures drop-down is always in front of other content */
  }
  nav ul.sub-menu > li { /* targets drop-down in desktop mode: justifies left */
	  text-align: left;
	  font-size: 87%;
	  line-height: 150%; 
  }

  	nav ul.sub-menu > li a:hover { /* targets desktop drop-down items */
		background-color: rgba(255, 255, 255, 0.4); /* white with reduced opacity */
		color: #000;
	}
		/*  replace this with wordpress current item code */
	body#home .home,
	body#about .about,
	body#correspondence .correspondence,
	body#hiring .hiring,
	body#contact .contact,
	body#extra .extra /*  nonexistant page helps with navigation */
	nav li a { /* specify nav li a, not just a, so that only the top-level link remains highlighted if using a drop-down. Remove the classes on the drop-down menu links, but reinstate them for the mobile menu if doing the Brightside model */
		color: #4dc4e7; /* light blue */
	}
	
	nav ul:not(.sub-menu) .current-menu-item > a,
	nav ul:not(.sub-menu) .current-menu-ancestor > a,
	nav ul:not(.sub-menu) .current_page_item > a,
	nav ul:not(.sub-menu) .current_page_ancestor > a {
		color: #4dc4e7;
	}

  nav .minus,
  nav .plus {
    display: none;
  }
  nav .sub-menu {
  /*  display: none;*/
	visibility: hidden;
	 position: absolute;
	  width: auto;
  }
 nav .menu-item-has-children:hover {
    border-bottom: 2px solid transparent;
  }
  .menu-item-has-children:hover .sub-menu {
  /*  display: block;*/
	visibility: visible;
	  height: auto;
	position: absolute;
	 top: 40px;
	 width: auto;
	   padding: 10px 30px 10px 0;
	   border-bottom: 1px solid #4dc4e7;
  }
 
	
	h1 {
		margin-bottom: 30px;
	}
	
	.two-columns {
		column-count: 2;
		column-gap: 4%;
		column-rule: 1px dashed #cbcbcb;
	}
	.two-columns p {
		margin-top: 0;
		margin-bottom: 1.5em;
	}
	
	.entry-title {
		font-size: 130%;
		margin-bottom: 10px;
	}
	
	/* Gallery Columns */

	.gallery-columns-5 .gallery-item {
		max-width: 20%;
	}
	.gallery-columns-6 .gallery-item {
		max-width: 17%;
	}
	.gallery-columns-7 .gallery-item {
		max-width: 14.28%;
	}
	.gallery-columns-8 .gallery-item {
		max-width: 12.5%;
	}
	.gallery-columns-9 .gallery-item {
		max-width: 11.11%;
	}
	
	/* images */
	
	img.alignright { float: right; margin: 0 0 0.5em 30px; }
	img.alignleft { float: left; margin: 0 2em 1em 0; }
	img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
	.alignright { float: right; margin: 0 0 0.5em 30px;}
	.alignleft { float: left; }
	.aligncenter { display: block; margin-left: auto; margin-right: auto; }
	

	
} 
 
@media screen and (min-width: 1200px) {

	#main {
		padding-top: 5px;
		max-width: 1500px;
	}
	.lower-container {
		padding: 30px 0 20px 0;
	}
	footer {
		border-radius: 0 0 3px 3px;
		max-width: 1500px;
	}
}