/*
 Theme Name:   Thame Green Living
 Theme URI:    https://www.thamegreenliving.org.uk/
 Description:  WordPress theme for Thame Green Living
 Author:       Mark Stockley <mark@compoundeye.co.uk>
 Author URI:   https://www.compoundeye.co.uk
 Template:     generatepress
 Version:      0.0.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  tgl
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap');

@font-face {
	font-family: 'lethergosolid';
	src: url('./fonts/lethergosolid.woff2') format('woff2'),
		 url('./fonts/lethergosolid.woff') format('woff');
}

@font-face {
	font-family: "Berlin Sans FB";
	src: url("//db.onlinewebfonts.com/t/fe2027c27b6a24505f548c6fd2e1076d.woff2") format("woff2"),
		 url("//db.onlinewebfonts.com/t/fe2027c27b6a24505f548c6fd2e1076d.woff") format("woff");
}

body {
	background-color: #fff;
}

.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .one-container .container, .separate-containers .paging-navigation, .inside-page-header {
	background-color: transparent;
}

body {
	font-size: 16px;
}

.page header.entry-header {
	display: flex;
	/* justify-content: center; */
}

.page header.entry-header h1,
.post-type-archive-tgl-project header.page-header h1 {
	color: #64cbbb;
	text-align:left;
}

h2 {
	font-size: 1.1rem;
	font-weight: 600;
}

.data-protection {
	font-size: .75em;
}

body.home {
	background:
		url('/wp-content/themes/tgl/img/bg.svg'),
		linear-gradient(160deg, #fff 50%, rgba(189,201,95,1) 50%);

	background-repeat:
		no-repeat,
		no-repeat;
	background-size:
		100vw auto,
		auto;
	background-position:
		center 50%;
	background-color: #fff;
}

h1,
body.home h2,
body.home h3,
body.home h4,
body.home h5,
body.home h6,
body.home .three-steps,
body.home .cta a,
.glp + p a,
input[type=submit],
.main-navigation .main-nav ul li a,
button.menu-toggle {
	font-family: lethergosolid, sans-serif;
	text-transform: uppercase !important;
	font-weight: 400;
}

h1,
body.home h2,
body.home h3,
body.home h4,
body.home h5,
body.home h6,
body.home .three-steps,
body.home .cta a,
.glp + p a,
input[type=submit],
.main-navigation .main-nav ul li a,
button.menu-toggle {
	letter-spacing: 0.02em;
}

body.home .cta a,
.glp + p a,
input[type=submit] {
	overflow: hidden;
}

body.home .wp-block-columns {
	margin-bottom: 0;
}

.site-header,
.main-navigation, .main-navigation ul ul {
	background-color: transparent;
}

.site-header .header-image {
	max-width: 70px;
}

.menu-toggle .mobile-menu {
	background-color: #5c9e08;
	padding: 0 .5em;
}

.main-navigation .main-nav ul li a,
.main-navigation .main-nav ul ul li a,
button.menu-toggle,
button.menu-toggle:hover,
button.menu-toggle:focus {
	color: #6d9e30;
}

button.menu-toggle {
	font-size: 1.5em;
	white-space: nowrap;
}

.main-navigation .main-nav ul li a {
	font-size: 1rem;
	line-height: 2rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.main-navigation li {
	white-space: nowrap;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	background-color: #6d9e30;
}

.inside-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 30px;
}

.inside-header:after {
	display: none !important;
}

.site-logo {
	margin: 0 !important;
}

.home h1 {
	font-size: 3em;
	text-align: center;
}

.home .three-steps {
	margin: 0 auto 1em auto;
	transform: rotate(1deg);
	color: white;
	font-size: 1em;
	background-color: #a5bf00;
	text-align: center;
}

.home h2:first-letter {
	font-size: 1.5em;
	display: block;
	font-family: "Berlin Sans FB", lethergosolid, sans-serif;
}

.home h2 {
	font-size: 2.5rem;
	color: #5ba000;
	white-space: nowrap;
}

.home #page {
	background-color: transparent;
}

.home .wp-block-image img {
	-webkit-box-shadow: 8px 16px 0 -3px rgba(0,0,0,0.35);
	-moz-box-shadow: 8px 16px 0 -3px rgba(0,0,0,0.35);
	box-shadow: 8px 16px 0 -3px rgba(0,0,0,0.35);
}

.home .wp-block-group.discover {
	margin-bottom: 0;
}

.home .wp-block-group.discover .wp-block-column:first-child,
.home .wp-block-group.do .wp-block-column:last-child,
.home .wp-block-group.volunteer .wp-block-column:first-child {
	display: flex;
}

.home .wp-block-group.discover .wp-block-column:first-child,
.home .wp-block-group.volunteer .wp-block-column:first-child {
	flex-direction: column;
	align-items: flex-end;
	padding-right: 3em;
}

.home .wp-block-group.volunteer .wp-block-column:first-child {
	padding-right: 0;
}

.home .wp-block-group.do .wp-block-column:last-child {
	flex-direction: row-reverse;
	justify-content: flex-end;
	padding-left: 3em;
	margin: 0;
}

.home .wp-block-image.glp img {
	transform: rotate(-5deg);
}

/*.home .wp-block-group.do .wp-block-column:last-child .wp-block-image {
	flex-basis: 50%;
}*/

.home .wp-block-group.do .wp-block-image.digging img,
.home .wp-block-group.do .wp-block-image.cycling img {
	position: relative;
	border: 1em solid #fff;
	max-height: 600px;
	width: auto;
}

.home .wp-block-group.do .wp-block-image.digging img {
	z-index: 1;
	transform: translate(0, 0) rotate(2deg);
}

.home .wp-block-group.do .wp-block-image.cycling img {
	transform: translate(0em, 2em) rotate(6deg);
	-webkit-box-shadow: 4px 8px 0 -3px rgba(0,0,0,0.35);
	-moz-box-shadow: 4px 8px 0 -3px rgba(0,0,0,0.35);
	box-shadow: 4px 8px 0 -3px rgba(0,0,0,0.35);
}

.site-footer {
	display: flex;
	flex-direction: column;
}

.site-footer .social {
	list-style: none;
	display: flex;
	margin: 0;
	justify-content: center;
	margin-bottom: 1em;
}

body.home .site-footer .social svg {
	fill: #fff;
}

.site-footer .social svg {
	margin: 0 .5em;
	fill: #64cbbb;
}

.site-footer .credits img {
	height: 8rem;
	margin-left: 2rem;
}

.site-info {
	background-color: transparent;
	color: #5ba000;
}

.site-info a, .site-info a:visited {
	color: inherit;
}

.glp + p {
	position: relative; /* maintain the correct z-index */
	margin-top: -2em;
	margin-left: 2em;
}

.cta {
	text-align: center;
}

.cta a,
.glp + p a {
	display: inline-block;
	white-space: nowrap;
}

.cta a,
.cta a:hover,
.cta a:visited,
.glp + p a,
.glp + p a:hover,
.glp + p a:visited,
input[type=submit] {
	color: #fff;
	background-color: #0a65a0;
	padding: .75em 1em;
}

body.home .wp-block-group.volunteer .opt_in_to_news .wpcf7-list-item-label,
.volunteer .wpcf7-list-item-label,
.question .wpcf7-list-item-label,
.news .wpcf7-list-item-label {
	display: none;
}

body.home .wp-block-group.volunteer .opt_in_to_news span.wpcf7-list-item {
	margin: 0;
}

body.home .wp-block-group.volunteer .opt_in_to_news input[type="checkbox"] {
	transform: scale(1.5);
	margin-right: .5em;
}

body.home .wp-block-group.volunteer input[type=text],
body.home .wp-block-group.volunteer input[type=email],
body.home .wp-block-group.volunteer textarea {
	opacity: 0.9;
	width: 100%;
}

body.home .wp-block-group.volunteer input[type=text]:focus,
body.home .wp-block-group.volunteer input[type=email]:focus,
body.home .wp-block-group.volunteer textarea:focus {
	opacity: 1;
}

.home .wp-block-group.volunteer form p:last-of-type {
	text-align: center;
}

.site-info {
	color: inherit;
	font-size: inherit;
}

.site-info .copyright-bar > * {
	display: block;
}

.site-info .copyright-bar .creator {
	font-size: .75em;
}

/* Pledge page */
body.pledge .comment,
.comment-list > .comment:first-child,
body.pledge .comments-area #commentform {
	-webkit-box-shadow: 8px 16px 0 -3px rgba(0,0,0,0.5);
	-moz-box-shadow: 8px 16px 0 -3px rgba(0,0,0,0.5);
	box-shadow: 8px 16px 0 -3px rgba(0,0,0,0.5);
	transform: rotate(1.25deg);
	margin-bottom: 3em;
	background-color: #dbd379; /* RGB(188, 201, 96)*/;
	min-width: 40%;
	max-width: 60%;
	margin-left: auto;
	margin-right: auto;
	padding: 2em;
}

body.pledge .comments-area .comment-respond {
	margin-bottom: 3em;
}

body.pledge .comments-area #comments {
	display: flex;
	flex-direction: column-reverse;
}

body.pledge .comments-area #commentform {
	display: flex;
	flex-wrap: wrap;
	max-width: 80%;
	transform: rotate(-1.25deg);
}

body.pledge .comments-area #commentform .comment-form-comment {
	flex-basis: 100%;
}

body.pledge .comments-area #commentform #author,
body.pledge .comments-area #commentform #email {
	flex-basis: calc(50% - .5em);
}

body.pledge .comments-area #commentform #author {
	margin-right: 1em;
}

body.pledge .comments-area #commentform #email,
body.pledge .comments-area #commentform #author,
body.pledge .comments-area #commentform .comment-form-comment #comment {
	background-color: rgba(255,255,255,.5);
	border: 1px solid #767675;
}

body.pledge .comment-author cite a {
	color: inherit;
	pointer-events: none;
}

body.pledge .comment-awaiting-moderation {
	margin: 2em auto -1em auto;
}

body.pledge .comment.glp-spaces {
	background-color: #eef3d0; /*a5bf00*/;
}

body.pledge .comment.glp-air {
	background-color: #dbdbdb; /*4d4d4d*/;
}

body.pledge .comment.glp-water {
	background-color: #cceaf7; /*#009ad9*/;
}

body.pledge .comment.glp-waste {
	background-color: #ffebcc; /*#ff9e00*/;
}

body.pledge .comment.glp-energy {
	background-color: #f9b2b5; /*#eb000a*/;
}

body.pledge ol.comment-list {
	display: flex;
	flex-wrap: wrap;
}

body.pledge li.comment:nth-child(2n) {
	transform: rotate(-.5deg) translate(1em,-.5em);
}

body.pledge li.comment:nth-child(3n) {
	transform: rotate(.5deg) translate(-.75em,-.25em);
}

body.pledge li.comment:nth-child(4n) {
	transform: rotate(-.5deg) translate(-.5em,-.5em);
}

body.pledge li.comment:nth-child(5n) {
	transform: rotate(1.25deg) translate(.5em,.5em);
}

body.pledge li.comment:nth-child(6n) {
	transform: rotate(-1deg);
}

body.pledge .comment-body {
	display: flex;
	flex-direction: column-reverse;
	padding: 0;
}

body.pledge .comment-body .comment-content {
	flex-basis: 75%;
	margin: 0 0 1em 0;
	border: none;
	padding: 0;
}

body.pledge .comment-body .comment-meta {
	flex-basis: 100%;
	display: flex;
	flex-direction: column;
}

body.pledge .comment-body .comment-meta img {
	display: none;
}

body.pledge .comment-body .comment-meta .entry-meta.comment-metadata a,
body.pledge .comment-body .comment-meta .entry-meta.comment-metadata a:hover,
body.pledge .comment-body .comment-meta .entry-meta.comment-metadata a:visited {
	font-size: .75em;
	color: inherit;
}

/* About Us page */
body.page-id-74 .entry-content .wp-block-columns {
	margin: 0;
	padding: 0;
}

body.page-id-74 .entry-content h3 {
	white-space: nowrap;
	font-size: 1.1rem;
}

/* Documents page */
body.page-id-151 .wp-block-columns {
	margin-left: auto;
	margin-right: auto;
}

body.page-id-151 .entry-content img {
	transform: rotate(-2deg);
	-webkit-box-shadow: 6px 8px 0 -3px rgba(0,0,0,0.35);
	-moz-box-shadow: 6px 8px 0 -3px rgba(0,0,0,0.35);
	box-shadow: 6px 8px 0 -3px rgba(0,0,0,0.35);
}

/* Contact Us page */
body.page-id-155 input[type=text],
body.page-id-155 input[type=email],
body.page-id-155 select {
	min-width: 50%;
}

body.page-id-155 input[type=text],
body.page-id-155 input[type=email],
body.page-id-155 textarea {
	border: 1px solid #767675;
}

body.page-id-155 input[type=submit] {
	font-size: 1.1em;
}

body.page-id-155 span.wpcf7-list-item {
	margin: 0 0 1.5em 0;
}

body.page-id-155 span.wpcf7-list-item input[type="checkbox"] {
	transform: scale(1.5);
	margin: 0 .5em 0 .5em;
}

/* Projects page */
body.page-id-147 .entry-content .icons,
body.page-id-147 .entry-content .icons .wp-block-group__inner-container {
	margin: 0;
	padding: 0;
}

body.page-id-147 .entry-content .icons .wp-block-group__inner-container {
	display: flex;
}

body.page-id-147 .entry-content .icons .wp-block-group__inner-container figure {
	flex-basis: 20%;
	text-align: center;
	overflow: hidden;
}

body.page-id-147 .entry-content .icons .wp-block-group__inner-container figure img {
	/*max-height: 120px;
	max-width: 120px;
	height: auto;
	width: 100%;*/
}

body.page-id-147 .entry-content .icons .wp-block-group__inner-container figure figcaption {
	white-space: break-spaces;
	font-size: 2.5vw;
}

body.error404 .entry-content {
	text-align: center;
}

body.home .solar-streets {
	max-width: 900px;
	margin: -3em auto 0 auto;
}

body.home .solar-streets img {
	transform: rotate(.75deg);
}

@media (min-width: 620px) {
	/*.home h1,*/
	.home .three-steps {
		white-space: nowrap;
	}

	.home h1 {
		font-size: 4.5vw;
	}

	.home .three-steps {
		font-size: 4vw;
		/*margin-top: -5.5vw;*/
	}

	body.page-id-147 .entry-content .icons .wp-block-group__inner-container figure figcaption {
		font-size: 1em;
	}
}

@media (min-width: 769px) {
	.main-navigation ul {
		display: flex;
		padding-left: 20px;
	}

	.main-navigation .main-nav ul li a {
		font-size: 1.1rem;
	}

	.inside-header {
		padding: 40px;
	}
}

@media (min-width: 975px) {
	.home h1 {
		font-size: 3rem;
	}

	.home .three-steps {
		font-size: 2em;
		/*margin-top: -1.1em;*/
	}
}

@media (max-width: 769px) {
	.site-header .header-image {
		max-width: 50px;
	}

	.home .entry-content .wp-block-group:nth-of-type(odd) .wp-block-columns {
		flex-direction: column-reverse;
	}

	.home .entry-content .wp-block-group:nth-of-type(even) .wp-block-columns {
		flex-direction: column;
	}
}

@media (max-width: 781px) {
	body.page-id-151 .entry-content .wp-block-column:first-child {
		flex-basis: 15% !important;
	}

	body.page-id-151 .entry-content .wp-block-column:last-child {
		flex-basis: calc(85% - 32px) !important;
		margin-left: 32px;
	}
}

@media (max-width: 781px) and (min-width: 600px) {

	.home .wp-block-group.discover .wp-block-column:first-child,
	.home .wp-block-group.do .wp-block-column:last-child,
	.home .wp-block-group.volunteer .wp-block-column:first-child {
		padding: 0;
	}

	.home .wp-block-group.discover .wp-block-column:first-child {
		align-items: center;
	}

	.home .wp-block-group.do .wp-block-column:last-child,
	.home .wp-block-group.discover .wp-block-column:first-child {
		justify-content: center;
	}

	.home .wp-block-group.discover .wp-block-column,
	.home .wp-block-group.do .wp-block-column,
	.home .wp-block-group.volunteer .wp-block-column {
		flex-basis: 50% !important;
		margin: 0;
	}

	.home .wp-block-group.volunteer .wp-block-columns {
		flex-direction: column-reverse;
	}

	.home .wp-block-group.volunteer .wp-block-column:first-child {
		align-items: center;
	}

	.home .wp-block-group.volunteer .wp-block-column:first-child input[type=text],
	.home .wp-block-group.volunteer .wp-block-column:first-child input[type=email] {
		width: 100%;
	}

	body.page-id-74 .entry-content .wp-block-column {
		flex-basis: 100% !important;
		margin-left: 0;
	}
}

@media (min-width: 782px) {
	.home .wp-block-group.volunteer .wp-block-column:first-child {
		padding-right: 3em;
	}

	.home .wp-block-group.volunteer .wp-block-column:first-child form {
		max-width: 400px;
	}
}

/* Christmas Quiz */

body.home .quiz {
	margin: 0 auto 5em auto !important;
	position: relative;
}

body.home .quiz .wp-block-group__inner-container {
	padding: 0;
}

body.home .quiz img {
	border: none;
}

body.home .quiz .text {
	position: absolute;
	top: 0;
	width: 65%;
	padding: 20vw 0 0 1.5em;
	font-size: 2.25vw;
}

body.home .quiz .text,
body.home .quiz .text h2 {
	color: #028135;
}

body.home .quiz .text h2 {
	white-space: normal;
	font-size: 3vw;
	margin-bottom: 1em;
}

body.home .quiz .text h2:first-letter {
	font-size: 1em;
}

@media (max-width: 639px) {
	body.home .quiz img {
		box-shadow: none;
	}
}

@media (min-width: 640px) {
	body.home .quiz {
		transform: rotate(-.5deg);
	}

	body.home .quiz .text {
		padding-top: 25vw;
		padding-left: 2em;
	}

	body.home .quiz img {
		border: 1em solid #FFF;
	}
}

@media (min-width: 1100px) {
	body.home .quiz .text {
		padding-top: 18rem;
		font-size: 24px;
	}

	body.home .quiz .text h2 {
		font-size: 2.5rem;
	}
}

/* Projects */

.post-type-archive-tgl-project main, .blog main {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
}

.post-type-archive-tgl-project main > header, .blog main > header {
	flex-basis: 100%;
	display: flex;
	justify-content: center;
	flex-direction: column;
}

.post-type-archive-tgl-project main > header .filters {
	margin: 1em auto;
}

.post-type-archive-tgl-project main > header .filters .filter {
	padding: 0.25em .5em 0.25em 1em;
	margin-left: 0.25em;
	margin-right: 0.5em;
	border-radius: 0.5em;
	background: #bcc960; /*#b8e1da;*/
}

.post-type-archive-tgl-project main > header .filters .filter a {
	display: inline-block;
	height: 1.25em;
	width: 1.25em;
	line-height: 1.25em;
	text-align: center;
	background: white;
	border-radius: 50%;
	color: #b8e1da;
	margin-left: .5em;
}


.post-type-archive-tgl-project article, .blog article {
	flex-basis: 30%;
	min-width: 320px;
	flex-grow: 1;
	margin: 0 2rem 2rem 0;
	max-width: 495px;
}

.post-type-archive-tgl-project article .inside-article, .blog article .inside-article {
	display: flex;
	flex-direction: column;
}

.post-type-archive-tgl-project article .inside-article > *, .blog article .inside-article > * {
	margin: 0 0 1em 0;
}

.post-type-archive-tgl-project article .inside-article .post-image, .blog article .inside-article .post-image,   {
	order: -1;
}

.post-type-archive-tgl-project article .nav, .blog article .nav {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.nav a {
	height: 3rem;
	line-height: 3em;
	display: block;
}

.nav .area {
	background-size: contain;
	width: 3rem;
}

.nav .area.energy {
	background-image: url(/wp-content/themes/tgl/img/areas/energy.svg);
}

.nav .area.green-spaces {
	background-image: url(/wp-content/themes/tgl/img/areas/green-spaces.svg);
}

.nav .area.waste {
	background-image: url(/wp-content/themes/tgl/img/areas/waste.svg);
}

.nav .area.air {
	background-image: url(/wp-content/themes/tgl/img/areas/air.svg);
}

.nav .area.water {
	background-image: url(/wp-content/themes/tgl/img/areas/water.svg);
}

.nav .link {
	padding: 0 2em;
	border-radius: .5em;
	color: #fff;
	background: #6b9b33;
} 

.entry-meta {display:none;}
.nav-previous { padding-left:10px; width:50%; display:none;}
.nav-next { text-align:right; padding-right:10px; width:50%; display:none;}

.single-tgl-project .inside-article {
	display: flex;
	flex-direction: column;
}

.single-tgl-project .inside-article .featured-image {
	order: 2;
}

.single-tgl-project .inside-article .entry-header {
	order: 1;
}

.single-tgl-project .inside-article .entry-content {
	order: 3;
}

.single-tgl-project .entry-header h1 {
	margin-bottom: .5em;
}

.single-tgl-project .entry-header p {
	font-size: 1.25em;
}
