:root {
	--text-colour: #333;
	--bg-colour: #faf4ef;
	--bg-colour-alt: #edeefc;
	--bg-colour-menu: #eee2d6;
	--bg-image: url(/images/blobs.svg);
	--font-size: 16px;
	--margin: 0;
	--padding: 0 1rem;
}

@font-face {
	font-family: segoe-light;
	src: url(/fonts/segoeuil.woff2); 
}

@font-face {
	font-family: segoe-regular;
	src: url(/fonts/segoeui.woff2); 
}

@font-face {
	font-family: segoe-semibold;
	src: url(/fonts/seguisb.woff2); 
}

* {
	box-sizing: border-box;
}

html {
	font-size: var( --font-size );
	color: var( --text-colour );
}

body {
	font-family: segoe-light, sans-serif;
	background-color: var( --bg-colour );
/*	padding: var( --padding ); */
	margin: var( --margin );
}

h1 {
	font-family: segoe-semibold, sans-serif;
}

p {
	font-family: segoe-regular, sans-serif;
	font-size: 1rem;
	padding-top: 1rem;
}

.hamburger-nav {
	display: none;
}

.responsive {
	width: 100%;
	height: auto;
}

.responsive-height {
	width: auto;
	height: 75%;
}

.sticky {
	position: sticky;
	top: 0;
	z-index: 1000;
	display: flex;
	justify-content: space-around;
	background-color: var( --bg-colour );
	padding: 1rem;
	margin: 0;
	width: 100%;
}

.logo-line {
	flex: 0 0 240px;
	background-color: var( --bg-colour );
	padding: 1.5rem 0;
	img {
		width: 220px;
	}
}

.menu-item {
	font-family: segoe-light; 
	font-size: 1.1rem;
	padding-right: 1rem;
	align-self: center;
	a {
		text-decoration: none;
		color: inherit;
	}
	a:hover {
		border-bottom: 3px solid var( --text-colour );
	}
}

.menu-item-active {
	font-family: segoe-semibold; 
	font-size: 1rem;
}

.menu-search {
	flex: 0 0 20%;
}

input[type=text], input[type=number], input[type=search], input[type=date], select {
	font-family: segoe-light; 
	font-size: 1.1rem;
	color: #666;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0.5rem 2rem 0.5rem 1rem;
	box-sizing: border-box;
}
	
input[type=text]:focus, input[type=search]:focus {
		border: 1px solid #86b7ff;
		outline: none;
}

.input-with-icon {
		position: relative; 
		display: flex; 
		flex-direction: column; 
}
 
.input-with-icon i {
		position: absolute;
		right: 1.5rem;
		top: 0.75rem;
		color: gray;
}

/*  Slider checkbox  */
.form-group {
	margin: 1rem 0;
}

.switch-label {
	flex: 3;
}

.switch-container {
	display: flex; 
	justify-content: space-between; 
	gap: 2rem;
}

.switch {
	display: inline-block;
	height: 1.5rem;
	position: relative;
	width: 2.5rem;
}

.switch input {
	display:none;
}

.slider {
	background-color: #ccc;
	bottom: 0;
	cursor: pointer;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	transition: .4s;
}

.slider:before {
	background-color: #fff;
	bottom: 0.25rem;
	content: "";
	height: 1rem;
	left: 0.2rem;
	position: absolute;
	transition: .4s;
	width: 1rem;
}

input:checked + .slider {
	background-color: #84a17c;
}

input:checked + .slider:before {
	transform: translateX(1.1rem);
}

.slider.round {
	border-radius: 1.2rem;
}

.slider.round:before {
	border-radius: 50%;
}

/*  Display  */
.hidden {
	display: none;
}

.shown-block {
	display: block;
}

.shown-inline-block {
	display: inline-block;
}

.invisible {
	visibility: hidden;
}

.visible {
	visibility: visible;
}

/*  Colours  */
.white-text {
	color: #fff;
}

.error-text, .red-text {
	color: #E73434;
}

.success-text, .green-text {
	color: #84a17c;
}

.blue-text {
		color: #6495ed;
}

.grey-text {
		color: #bbb;
}

.dark-grey-text {
	color: var( --text-colour );
}

/*  Slideout. */
#slideout {
		z-index: 10000;
		background: #666;
		color: #333;
		border-left: 1px solid #222;
		border-radius: 5px;
		position: fixed;
		left: 35%;
		top: calc( -100% + -20px );
		margin-right: 2%;
		width: 30%;
		height: 8rem;
		-webkit-transition-duration: 0.7s;
		-moz-transition-duration: 0.7s;
		-o-transition-duration: 0.7s;
		transition-duration: 0.7s;
}

.slideout-content {
		width: calc( 100% - 4rem );
		height: calc( 100% - 4rem );
		margin: 2rem auto;
		padding: 1rem 1rem 0 1rem;
		border-radius: 4px; 
		color: #333;
		background-color: #fff;
}

#slideout.on {
	top: 0;
}

/* Responsive menu rules */
@media only screen and (max-width: 1024px) {
	.desktop-nav {
		display: none;
	}
	.hamburger-nav {
		display: flex;
		padding: 2rem;
		width: calc( 100% - 4rem );
	}
	.hamburger-logo-link {
		justify-self: start; 
		flex: 0 0 30%;
	}
	.hamburger-logo {
			width: 220px; 
			height: 100px;
	}
	.hamburger-search {
		justify-self: start; 
		flex: 0 0 50%;
		padding-top: 2rem;
	}
	.hamburger-links-container {
		justify-self: end; 
		flex: 0 0 20%;
	}
	#hamburger-links {
		display: none;
		position: absolute;
		top: 120px;
		right: 3rem;
		z-index: 1000;
		background-color: #333;
		color: #eee;
		padding: 2rem;
		font-size: 1.4rem;
		width: 50%;
		span.menu-item {
			display: block;
			line-height: 3.5rem;
		}
	}
	#hamburger-toggle {
		font-size: 3.5rem; 
		padding-right: 1rem; 
		padding-top: 1.5rem;
	}
	#site-search-h {
		font-size: 2rem;
	}
	.input-with-icon {
		position: relative; 
		display: flex; 
		flex-direction: column; 
		font-size: 1.2rem;
	}
	.input-with-icon i {
		position: absolute;
		right: 1.5rem;
		top: 3rem;
		font-size: 1.8rem;
		color: gray;
	}
	#slideout {
		width: 60%;
		left: 20%;
	}
}

@media only screen and (max-width: 480px) {
	.desktop-nav {
		display: none;
	}
	.hamburger-nav {
		display: flex;
		padding: 2rem;
		width: calc( 100% - 4rem );
	}
	.hamburger-logo-link {
		justify-self: start; 
		flex: 0 0 35%;
	}
	.hamburger-logo {
			width: 79px; 
			height: 36px;
	}
	.hamburger-search {
		justify-self: start; 
		flex: 0 0 45%;
		padding-top: 0;
	}
	.hamburger-links-container {
		justify-self: end; 
		flex: 0 0 20%;
	}
	#hamburger-links {
		display: none;
		position: absolute;
		top: 80px;
		right: 3.5rem;
		z-index: 1000;
		background-color: #333;
		color: #eee;
		padding: 2rem;
		font-size: 1rem;
		width: 50%;
		span.menu-item {
			display: block;
			line-height: 2.7rem;
		}
	}
	#hamburger-toggle {
		font-size: 2rem; 
		padding-right: 1rem; 
		padding-top: 0.3rem;
	}
	#site-search-h {
		font-size: 1.3rem;
	}
	.input-with-icon {
			position: relative; 
			display: flex; 
			flex-direction: column; 
			font-size: 1.3rem;
	}
	.input-with-icon i {
			position: absolute;
			font-size: 1.5rem;
			right: 1.1rem;
			top: 0.8rem;
			color: gray;
	}
	#slideout {
		width: 80%;
		left: 10%;
	}
}
