/*
Theme Name: BFG-BUK 2023
Author: James Beach
Description: This template is custom made to modernise the look of the BFG sites - with the addition of author and date to posts for BUK
Version: 1.0.0
Tags: bfg,buk
*/

/* Use normalise.css to provide consistent results across browsers */
@import url("normalise.css");

body {
	font-family: 'Open Sans', sans-serif;
	font-size: 16px; /* For legacy browsers that don't support rem values */
	font-size: 1rem;
	font-weight: 300;
	color: #444444;
	line-height: 1.4;
	word-wrap: break-word;
	margin: 0;
	padding-top:0px !important; /* Prevent Adsense from adding space to the top of the page */
}

p, h1, h2, h3, h4, h5, h6 {
	/* Allows margin on full width articles */
	margin-left: 15px;
	margin-right: 15px;
}

.last-updated {
    font-size: small;
    display:block;
    width:100%;
    text-align:center;
    margin-left: 15px;
	margin-right: 15px;
}

a {
	color: inherit; /* Prevents blue hyperlinks - link match the text they are in instead */
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
	color: #0a264f;
}

h1 {
	font-size: 42px;
	font-size: 2.63rem;
	margin: 0.67em 0 0 0;
}

.bfglogofont {
	font-family: 'Open Sans Condensed', sans-serif;
}

@media (max-width: 800px) {
	h1 {
	font-size: 32px;
	font-size: 2rem;
	}
}

@media (max-width: 1200px) {
	h1 {
	font-size: 35px;
	font-size: 2.2rem;
	}
}

h2 a {
	text-decoration: none; /* Used for blog index*/
}

h2 a:hover {
	text-decoration: underline;
}

svg, img, embed, object {
    display: block;
    height: auto;
    max-width: 100%;
}

.custom-logo {
	max-width: 200px;
	max-height: 150px;
	width: auto;
	height: auto;
}

.custom-logo:hover {
	transform: scale(0.9);
}

.header {
	width:calc(100% - 4px);
	padding: 2px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	background: #ffffff;
	/*position: fixed;*/
	/*z-index: 10;*/
	max-height: 80px;
}

.top-navbar {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
}

.menu-item a {
	text-decoration: none;
	color: #444444;
}

.menu-item a:hover {
	text-decoration: underline;
}

.generic-button {
	max-width: 220px;
	padding: 10px 30px;
	color: #ffffff;
	font-size: 16px;
	font-size: 1rem;
	font-weight: 400;
	border: 0px;
	outline: none;
	box-shadow: 0 6px 10px 1px rgba(0, 0, 0, .14);
	border-radius: 2px;
	text-align: center;
	background-color: #0a264f;
}

.generic-button:hover {
	background-color: #aaaaaa;
}

/* Footer menu */
#footer-widget-1 .widget_nav_menu ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding-inline-start: 0px;
	justify-content: center;
}

#footer-widget-1 .widget_nav_menu li {
	list-style:none;
	margin: 15px 10px;
	text-align: center;
}

#footer-widget-1 .widget_nav_menu li a {
	text-decoration: none;
	text-transform:uppercase;
	font-size: 12px;
	font-size: 0.75rem;
	padding: 15px 15px;
	color: #fff;
}

.menu-footer-menu-container ul li ul {
	/*display: none; /* hide any mega menu child elements */
}

#footer-widget-1 .widget_nav_menu {
	padding: 0 20px 0px 20px;
}

@media (min-width: 400px) {
	.menu-topnavbar-menu-container {
		float: right;
	}

	.menu-topnavbar-menu-container ul {
		display: flex;
		padding-inline-start: 0px;
	}

	.menu-topnavbar-menu-container li {
		list-style:none;
		margin: 5px 10px;
		text-align: center;
	}

	.menu-topnavbar-menu-container li a {
		text-decoration: none;
		text-transform:uppercase;
		font-size: 12px;
		font-size: 0.75rem;
		padding: 15px 15px;
		color: #444;
	}

	.menu-topnavbar-menu-container ul li ul {
		display: none; /* hide any mega menu child elements */
	}


}
.fullpage-flex-container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	position: relative;
}

.content-width-restriction {
	/*width: calc(100% - 30px);*/
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	/*padding-left: 15px;
	padding-right: 15px;*/
}

.article-header-text-area {
	text-align:center;
	min-height: 0px; /* 100 originally - 70 if not showing as image*/
	vertical-align: middle;	
}

.article-header-text-area-extra-height {
	min-height: 70px; 
}

.article-header-imagery {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: -1;
	background-position: center center;
	background-size: cover;
	max-height: 218px; /*350 - 250 looks right only when logged in */
}

@media (max-width: 950px) {
	.article-header-text-area {
	min-height: 0px;
	}
	
	.article-header-text-area-extra-height {
	min-height: 70px; 
	}
	
	.has-large-font-size {
	font-size: 30px !important; /* Canvas overide for smaller screens */
	}
}

@media (max-width: 650px) {
	
	.has-large-font-size {
	font-size: 25px !important;  /* Canvas overide for smaller screens */
	}
}

@media (max-width: 550px) {
	.article-header-text-area-extra-height {
	min-height: 50px;
	}
}

.article-and-footer-flex-container {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto; /* both a child flex and a parent */
}

.full-page-article {
	flex: 1 0 auto; /* flex-grow: 1; flex-shrink: 0; flex-basis: auto; */
	/*padding: 0px 30px;*/
	background: #fff;
	/*padding-bottom: 20px;*/
	/*width: calc(100% - 60px);*/
	width: 100%;
	overflow: hidden;
}

.footer-wrapper {
	color: #ffffff;
	background: #0a264f; /* liked with 323232 */
	text-align: center;
	padding: 25px 10px 25px 10px;
	font-size: 13px;
	font-size: 0.81rem;
}

@media screen and (min-width: 1350px) {
	/* Add the floating page look on wide windows */
	.full-page-article {
		border-radius: 10px;
		border: 1px #999;
		box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
		margin-bottom: -110px;
		z-index: 2;
	}
	
	.notopradius {
		border-top-left-radius: 0px;
		border-top-right-radius: 0px;
	}

	.content-width-restriction {
		max-width: 1200px;
	}

	.footer-wrapper {
		padding: 125px 10px 25px 10px;
	}
}

.scroll-to-top-button {
	position: fixed;
	bottom: 15px;
	right: 15px;
	z-index: 999;
	opacity: 0;
	transition: opacity .25s ease-in-out;
	-moz-transition: opacity .25s ease-in-out;
	-webkit-transition: opacity .25s ease-in-out;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	text-align: center;
	line-height: 50px;
	font-size: 20px;
	font-size: 1.25rem;
	background-color: #999999;
	-webkit-box-shadow: none;
	box-shadow: none;
}

.parallax {
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.search-form {
	width: 90%;
	max-width: 380px;
	margin: auto auto;
}


/* Blog index */
	.blog-index-article-container {
		margin-top: 30px;
		margin-bottom: 40px;
	}
	
	.blog-index-article-container:hover {
		filter: brightness(90%);
		background:#ffffff;
	}

@media screen and (min-width: 650px)  and (max-width: 800px){
	.blog-index-article-container {
		overflow:auto;display: flex;flex-direction: row;
	}

	.blog-index-article-top-image, .blog-index-article-image {
		flex-basis: 50%;
	}

	.blog-index-article-top-text, .blog-index-article-text {
		flex-basis: 50%;
	}
}

@media screen and (min-width: 800px) {
	.blog-index-article-container {
		overflow:auto;margin-bottom:10px;display: flex;flex-direction: row;
	}

	.blog-index-article-top-image {
		order: 2;flex-basis: 67%;
	}

	.blog-index-article-top-text {
		order:1;flex-basis: 33%;
	}

	.blog-index-article-image {
		flex-basis: 50%;
	}

	.blog-index-article-text {
		flex-basis: 50%;
	}
}

/* Index page other than blog index (e.g. search results) */
	.general-index-article-container {
		padding-bottom: 50px;
	}

@media screen and (min-width: 650px)  and (max-width: 800px){
	.general-index-article-container {
		overflow:auto;margin-bottom:10px;display: flex;flex-direction: row;
	}

	.general-index-article-image {
		flex-basis: 20%;
	}

	.general-index-article-text {
		flex-basis: 80%;
	}
}

@media screen and (min-width: 800px) {
	.general-index-article-container {
		overflow:auto;margin-bottom:10px;display: flex;flex-direction: row;
	}

	.general-index-article-image {
		flex-basis: 20%;
	}

	.general-index-article-text {
		flex-basis: 80%;
	}
}

/* Fix for Media and Text elements where the text area ends up with padding in addition to the article padding making odd alignment */
.wp-block-media-text .wp-block-media-text__content {
	padding: 0px;
}

/* Fix for Cover elements as they use 100% height, which is not supported in Firefox unless the parent has an explicitly set height itself, which article doesn't  */
.wp-block-cover {
	height: unset;
	padding: 0px;
}

/* Override option */
.nolinkdecoration a {
	text-decoration: none; /* Used for blog index*/
}
