html {
	scroll-behavior: smooth;
}


body, html {
	font-size: 22px;
	line-height: 40px;
	font-family: "Open Sans"!important;
	font-weight: 300;
}


body {
	padding-top: 80px!important;
	margin:0;
}

.reddish {
	color: #ff5555ff;
}

.big-text {
	font-size: 26px;
	color: grey;
}


h1 {
	line-height: 50px
}

a {
	text-decoration: none!important;
	color: inherit!important;
}

	p a {
		color: #ff5555ff!important;

	}

nav {
	height: 90px;
	width: 100%;
	top:0;
	position: fixed;
	display: flex;
	flex-wrap:wrap;
	justify-content: space-between;
	align-items: center;
	background-color: white;
	padding: 4px 20px 0 20px;
	box-sizing: border-box;
	box-shadow: 0 0 7px #eee;
	transition: height .3s;
	z-index: 5000;
}

	#logo {
		font-weight:700;
		font-size:1.2rem;
	}

		#logo img {
			width: 45px;
		}

	#menu {
		padding:0;
		margin:0;
	}

		#menu-toggle-input {
			display: none;
		}

		#menu-toggle {
			display: none;
			font-size: 1.6rem;
		}

			#menu-toggle-off {
				display: none;
			}

				#menu-toggle-input:checked ~ #menu-toggle #menu-toggle-off {
					display: initial;
				}

				#menu-toggle-input:checked ~ #menu-toggle #menu-toggle-on {
					display: none;
				}

				#menu-toggle-input:checked ~ #menu-toggle ~ #menu {
					display: block;
				}

		

		#menu li {
			list-style-type: none;
			display: inline;
			font-weight: 600;
			text-transform: uppercase;
			font-size: .7rem;
			margin: 0 10px;
		}

			#contact-button {
				color: white;
				background-color: #ff5555ff;
				border-radius: 18px;
				padding: 7px 15px;
				transition: background-color .3s;
				text-align: center;
			}

				#contact-button:hover {
					background-color: red;
				}

header {

	position: relative;
	display: flex;
	justify-content: center;
}

	.hero-images {
		position: relative;
	}

		.hero-images picture:not(:first-child) {
			position: absolute;
			top: 0;
			left: 0;
			max-width: 100%;
		}

			.hero-images picture img {
				max-width: 100%;
			}

	.header-text {
		position: absolute;
		width: 100%;
		height: 100%;
		text-shadow: 0 0 10px rgba(0,0,0,.8);
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
	}


		.header-title {
			font-weight: 900;
			text-transform: uppercase;
			font-size: 2.5rem;
			text-align: center;
			line-height: 3rem;
			color:white;
			margin-bottom:30px;
			z-index: 1000;
		}


		.header-subtitle {
			color:white;
			font-size:1.4rem;
			text-align: center;
			z-index: 1000;
			font-weight: 600;
			text-shadow: 0px 0px 10px rgba(0,0,0,1);
		}

	#content {
		padding: 20px;
		padding-bottom: 0;
		max-width:1630px;
		margin:0 auto;
	}


section {
		padding: 90px 0 0px 0;
}

	.text-content {
		max-width:1000px;
		margin: 0 auto;
		text-align: center;
		margin: 20px auto;
	}

		.text-content a {
			text-decoration: underline;
			color: #f55;
		}


	#intro {
		padding-top: 25px;
	}




.section-heading {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 1.3rem;
	text-align: center;
	color: #424242;
}


	hr {
		width: 150px;
		border:none;
		border-top: 4px solid #f46b6b;
		margin-bottom: 30px;
	}

.flex-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

	.flex-item {
		width: 375px;
		margin: 18px;
		margin-bottom: 25px;
	}

		.flex-item img {
			display: block;
			width:100%;
			height: auto;
			margin-bottom: 15px;
			box-shadow: 2px 2px 5px rgba(0,0,0,.2);
			transition: transform .3s;
		}

			.flex-item img:hover {
				transform: scale(1.1);
			}

		.item-title {
			font-weight: 600;
			text-transform: uppercase;
			display: block;
		}

		.item-description {
			margin-top: 5px;
			font-size: 20px;
			line-height: 35px;
		}

		.item-link {
			font-weight:700;
			text-transform: uppercase;
			color: #f46b6b;
			font-size: .8rem;
			transition: color .3s;
		}

		.item-date {
			margin: 5px;
		}

			.item-link:hover {
				color: red;
			}

#Blog {
	background-color: #f4f4f4;
}

#partners-section {
	padding-bottom: 40px;
}

	#partners-section .flex-content,
	#bio-section .flex-content {
		justify-content: space-evenly;
	}

		#partners-section .flex-content img {
			align-self: center;
			filter: grayscale(1);
			opacity: .9;
			margin: 20px 50px;
		}

#bio-section {
	background-image: url("../img/logo-bw.svg");
	box-shadow: 0 0 7px #bbb;
	margin-bottom: 0;
	padding-bottom: 50px;
}

	#bio-section img {
		border-radius: 50%;
	}

footer {
	/*background-color: #f46b6b;*/
	background-color:  #333;
	color: white;
	padding: 20px;
	display: flex;
	align-items: center;
	flex-wrap:wrap;
	justify-content: space-between;
}

	#footer-title {
		font-size: 1.6rem;
		font-weight: 700;
	}


/*Fading in section-content */
/* TODO uncomment when I get my js file back */
.section-content {
	opacity: 0;
	transition: opacity 1.5s;
}

.section-content.content-visible {
	opacity: 1;
}

/*****************************************************************************
*                              WAGTAIL EMBEDS                                *
*****************************************************************************/

.responsive-object {
    position: relative;
}

.responsive-object iframe,
.responsive-object object,
.responsive-object embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*****************************************************************************
*                               LINKED IMAGE                               *
****************************************************************************
*/

.linked-image {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

	.linked-image img:last-of-type {
		position: absolute;
		width: 90px;
		transition: transform .3s;
	}


		.linked-image:hover img:last-of-type {
			transform: scale(1.2);
		}


/*****************************************************************************
*                                MAIL CHIMP                                  *
*****************************************************************************/

	#mc_embed_signup{
		background:#fff; 
		clear:left; 
		font:14px Helvetica,Arial,sans-serif;  
		width:600px; 
		max-width: 100%;
	   	border: 1px solid lightgrey;
	   	margin: 30px auto 0 auto;
	   	box-shadow:  0 0 11px lightgrey;
	}


/*media queries*/

@media (max-width:840px){

	body {
		font-size: 18px;
	}

/*	header {
		height: 325px;
		padding:5px;
	}

		#header-text {
			font-size:2.5rem;
		}


		#header-subtext {
			font-size:1rem;
		}*/

	#menu {
		background-color: white;
		padding: 10px;
		position: fixed;
		right: 5px;
		top: 75px;
		display: none;

	}

		#menu li {
			display: block;
			padding: 20px;
		}

		#menu-toggle {
			display: initial;
		}

	.flex-item {
		margin-bottom: 45px;
	}

	section {
		padding-top:50px;
	}

}
