/*
Theme Name: Humanists UK: Understanding Humanism
Theme URI: http://understandinghumanism.org.uk
Author: Andrew West
Author URI: http://understandinghumanism.org.uk
Description:
Version: 3.0

*/

@import url('https://fonts.googleapis.com/css?family=Rubik:400,400i,500,500i,700,700i,900,900i');

body {
	font-family: "Rubik",-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

h1, h1 a {
	color: #4c4184 !important;
	text-transform:uppercase;
	padding-bottom: 10px;
}

h1 {
	font-weight: 600 !important;
}

a, a:visited, a:active {
	color: #4c4184;
}

.dropdown-menu a, .dropdown-menu a:visited, .dropdown-menu a:active {
	color: inherit;
	background-color: inherit;
}

/* ----------- helper classes ----------- */

.green {
	color: #00c7b1;
}

.orange {
	color: #E87722;
}

.purple {
	color: #702F8A;
}

.blue {
	color: #4C4184;
}

.white {
	color: white;
}

.yellow {
	color: #ffcc33;
}

.bg-blue {
	background-color: #4C4184;
	color: white;
}

.bg-purple {
	background-color: #702F8A;
	color: white;
}

.bg-orange {
	background-color: #E87722;
	color: white;
}

.bg-green {
	background-color: #00c7b1;
	color: white;
}

.bg-yellow {
	background-color: #ffcc33;
	color:black;
}

.bg-blue .card-title a, .bg-purple .card-title a, .bg-orange .card-title a, .bg-green .card-title a, .bg-yellow .card-title a {
	color: white;
}

.bg-yellow .card-title a {
	color: black;
}

.bg-yellow a.btn {
	color: black;
}

.bg-yellow a.btn:hover {
	color: white;
}


.card-title a {
	color: black;
}

div.redBackground a, div.redBackground a:hover, div.redBackground a:active, div.redBackground a:visited {
	color:black;
}

div.redBackground div h1.frontPageBannerLeftHeader {
	color:black !important;
}

div.redBackground p, div.redBackground div {
	color:black;
}

div.redBackground h3 {
	border-bottom-color:black;
	color:black;
}

div.redBackground .boxItem {
	border: 1px solid black;
}

.whiteBackground {
	background-color: white;
}

.blueOutline {
	border-color: #4C4184;
}

.purpleOutline {
	border-color: #702F8A;
}

.orangeOutline {
	border-color: #f1724c;
}

.greenOutline {
	border-color: #00c7b1;
}

.redOutline {
	border-color: #FFCC33;
}

.whiteOutline {
	border-color: white;
}

.link-blue a,.link-blue a:visited, .link-blue a:active, .blueText {
	color:#4C4184 !important;
}

.link-purple a,.link-purple a:visited, .link-purple a:active, .purpleText {
	color:#702F8A !important;
}

.link-orange a,.link-orange a:visited, .link-orange a:active, .orangeText {
	color:#f1724c !important;
}

.link-green a,.link-green a:visited, .link-green a:active, .greenText {
	color:#00c7b1 !important;
}

.link-red a,.link-red a:visited, .link-red a:active, .redText {
	color:#FFCC33 !important;
}

.link-white a,.link-white a:visited, .link-white a:active, .whiteText {
	color:white !important;
}

/**
//Hacks for outline button in banner
 */
.banner-right a:visited {
	color:white;
}

.banner-right .btn-outline-light:hover {
	color: black;
}
/**
End of hacks
 */


.topBar {
	background-color: #4c4184;
	padding:0.5em;
	margin-bottom:1em;
	color:white;
	font-size:14px;
}

.bottomBar h3 {
	margin-top: 10px !important;
}

.bottomBar {
	background-color: #4c4184;
	padding:0.5em;
	margin-top:1em;
	color:white;
	font-size:14px;
}

.topBar a, .topBar a:visited, .topBar a:active, .bottomBar a, .bottomBar a:visited, .bottomBar a:active {
	color:white;
}


@media (max-width:568px) {
	.logo {
		width: 100% !important;
	}
}

.logo {
	width: 368px;
	overflow:visible;
	margin-top:7px;
}


@media (min-width:768px) {
	.menu {
		padding-top:90px;
	}
}


.menu a {
	color: #00c7b1;
	padding-right:1em;
}

.mainBannerLeft {
	height: 300px;
}

.mainBannerRight {
	height: 300px;
}

.topBanner {
	border-bottom: 1px solid #00c7b1;
	padding-bottom:1em;
}

.frontPageTable {
	clear:right;
}

.frontPageTable, .frontPageTable td td {
	text-align:center;
}

.frontPageTable td {
	width: 33%;
}

.alignleft {
	padding: 0 15px 15px 0;
	float: left;
}

.alignright {
	padding: 0 0 15px 15px;
	float: right;
}

.aligncenter {
	display: block;
	clear: both;
	margin-left: auto;
	margin-right: auto;
}

blockquote {
	font-size:16px !important;
	margin-left: 3rem;
}

.block, .block a, .block a:visited, .block a:active, .block a:hover {
	color:white;
}

.block a, .block a:visited, .block a:active, .block a:hover {
	text-decoration:underline;
}

.mainBody a, .mainBody a:visited, .mainBody a:active, .mainBody a:hover {
	text-decoration:underline;
}

.mainBody h1 a, .mainBody h1 a:visited, .mainBody h1 a:active {
	text-decoration:none;
}

.block {
	padding: 0 15px 15px 15px;
	border: 10px solid white; /* shut up it works */
	/*background-image: url("https://understandinghumanism.org.uk/wp-content/themes/h4s/images/blockBackground.png");*/
	background-position: right bottom;
	background-repeat: no-repeat;
}

.block h3 {
	padding-bottom: 5px;
	margin-bottom: 5px;
	border-bottom: 1px solid white;
}

.frontPageBlock {
	height: 225px !important;
}

.frontPageBlock h3 {
	text-transform:uppercase;
}


.toolkitBlock {
	min-height: 550px !important;
}

.regularBlock {
	/*height: auto !important;*/
}

.toolkitBlockDownloadLink {
	text-decoration: underline;
}

.schoolSpeakerBlock a {
	text-decoration: underline;
}

#gallery-1 img {
	border: none !important;
	max-width: 100%;
	height: auto;
	padding: 5px;
}

/* new */

.frontPageKSBox {
	text-align:center;
	color: white;
	margin-bottom: 10px;
}

@media (min-width: 1200px) {
	.frontPageKSBox {
		min-width: 150px;
	}
}

@media (max-width: 1199px) {
	.frontPageKSBox {
		min-width: auto;
	}
}



.frontPageKSBox a, .frontPageKSBox a:active, .frontPageKSBox a:hover, .frontPageKSBox a:visited {
	color:white;
}

.frontPageKSBox:last {
	margin-right: 0px;
}

.frontPageKSBoxText {
	padding: 10px;
	margin-bottom: 5px;
}

.frontPageKSBoxText p {
	padding: 0;
	margin: 0;
}

.frontPageKSBoxText .meta {
	font-size: 14px !important;
}

.frontPageKSBoxButton {
	padding: 10px;
	border-width: 1px;
	border-style: solid;
	margin-top: 15px;
}

.frontPageKSBoxImage img {
	max-width: 100%;
	height: 150px;
}

.frontPageTRHeader h1 {
	text-align:center;
	font-size:32px !important;
	padding: 25px 0 25px 0;
}

.frontPageBannerLeftHeader {
	font-size: 18px;
	text-transform: uppercase;
	color:white !important;
	margin-top: 10px;
}

.frontPageBannerButton {
	border-width: 1px;
	border-style: solid;
	text-align:center;
	padding-top: 10px;
	padding-bottom:10px;
}

.frontPageBannerRightText {
	/*font-size: 20px !important;*/
	/*text-transform: uppercase;*/
	padding-bottom: 10px;
}

.frontPageBannerRight .frontPageBannerButton {
	margin-top: 15px;
}

.frontPageBannerRight {
	padding:15px;
}

.frontPageBannerLeftImage {
	width: 100%;
	height: 150px;
}

.frontPageKeyStages {
	margin-bottom: 25px;
	text-align:center;
}

.frontPageKeyStagesRow, .frontPageKeyStages, .frontPageKeyStageBoxes {
	display:table;
	margin: 0 auto;
}

.frontPageKeyStagesRow {
	padding-bottom:30px;
}

.frontPageUpdateBoxText {
	padding: 5px;
	font-size: 16px;
}

.frontPageUpdateBoxText a, .frontPageUpdateBoxText a:hover, .frontPageUpdateBoxText a:visited, .frontPageUpdateBoxText a:active {
	color:white;
	text-decoration:underline;
}

.frontPageUpdateBox {
	border: 5px solid white;
}

.carousel-caption {
	position: relative;
	left: auto;
	right: auto;
	width:100%;
	/*padding:10px;
    text-align:left;
    text-shadow: none;*/
}

.carouselText {
	padding: 15px 0 15px 15px;
}

.carouselImage {
	max-height: 200px;
}

.carouselText h1 {
	margin: 0;
}

.frontPageBannerLeft {
	padding-left:0px;
	padding-bottom:0px;
	padding-right:0px;
	margin-bottom:-20px; /* ugly hack */
}

.mainContent {
	padding-top: 10px;
}

.frontPageBannerButtonLearnMore {
	/*margin-top:33px !important;*/
}

.block h3 small {
	color: inherit !important;
	font-size: 55%;
}

.regularBlock h3 a,.regularBlock h3 a:active,.regularBlock h3 a:visited {
	text-decoration:none !important;
}

.regularBlock h3 a:hover {
	text-decoration:underline !important;
}

.suitableFor {
	font-size: 75%;
	color: white;
}

.block h2 small {
	color: inherit !important;
	font-size: 65%;
}

.downloadLink {
	text-decoration: underline;
}

hr.blockHR {
	border: 0;
	height: 1px;
	background-image: linear-gradient(to right, rgba(255, 255, 255, 75), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

hr.blockHRInverted {
	border: 0;
	height: 1px;
	background-image: linear-gradient(to right, rgba(0, 0, 0, 75), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.boxItem {
	padding: 10px;
	border: 1px solid white;
	margin-bottom: 10px;
}

.boxItem h3 {
	margin-top: 5px;
	font-size: 22px;
}

.boxItem h4 {
	font-weight: bold;
}

.mainFeaturedImage {
	margin-top:20px;
}

.mainFeaturedImage img {
	width:100%;
}

.mainBody {
	font-size: 18px;
}

.themeDescription {
	font-size: 20px;
	margin-bottom: 15px;
}

.themePageDescription {
	font-size: 16px;
	margin-bottom: 15px;
}

.themePageDescription ul {
	padding-top: 15px;
	padding-bottom: 15px;

}

.label, label {
	color: inherit !important;
	font-size: 100% !important;
	font-weight: inherit !important;
	padding: 0 !important;
}

.HumanistPerspectivesBlock, .otherResourcesBlock, .externalResourcesBlock {
	float:right;
}

.newicon {
	margin-top: -1px;
	margin-bottom: -1px;
	margin-right:10px;
	height:35px;
}

/* On screens that are 600px or less, reinstate the padding on either side of the UH logo */
@media screen and (max-width: 600px) {
	.logo {
		padding-left:15px;
		padding-right:15px;
	}
}


#pagenumbers {
	font-size: 24px;
}

.yt-hd-thumbnail-outer-container {
	margin-left:auto;
	margin-right:auto;
	/*max-width:100%;*/
}


.videoWrapper {
	position: relative;
	padding-bottom: 48.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Adjust height of uniform size blocks on video page, depending on desktop/mobile */

.filmsblock {
	height: 510px;
}


@media screen and (max-width: 600px) {
	.filmsblock {
		height: 475px;
	}
}

.text-right {
	text-align: right!important;
}

.resourcesBox {
	hyphens:auto;
}

/**
Temp - brought over from new site
 */

.centeredImage img {
	height: auto;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover;
	margin-left: 50%;
	transform: translateX(-50%)
}

.centeredImage250px img {
	height: auto;
	object-fit: cover;
	margin-left: 50%;
	transform: translateX(-50%)
}

@media(min-width: 768px) {
	.centeredImage250px img {
		height:125px;
		object-fit: cover;
		margin-left: 50%;
		transform: translateX(-50%)
	}
}

@media(min-width: 992px) {
	.centeredImage250px img {
		height:166.665px;
		object-fit: cover;
		margin-left: 50%;
		transform: translateX(-50%)
	}
}

@media(min-width: 1200px) {
	.centeredImage250px img {
		height:208.333325px;
		object-fit: cover;
		margin-left: 50%;
		transform: translateX(-50%)
	}
}

@media(min-width: 1600px) {
	.centeredImage250px img {
		height:250px;
		object-fit: cover;
		margin-left: 50%;
		transform: translateX(-50%)
	}
}

.centeredImage250px {
	overflow: hidden
}

html b,
html strong {
	font-weight: bold;
}

#__next > div > div > div, .r-1udh08x {
	max-height:362px !important;
}

.max25 {
	max-width: 25%;
}

.max50 {
	max-width: 50%;
}