html {
	overflow-y: scroll;
}

html, body {
	margin: 0;
	padding: 0;
	font-family: sans-serif;
}

p, h1, h2, h3, h4 {
	margin: 0;
	padding: 0;
	margin-bottom: 1rem;
}

p {
	line-height: 1.5;
}

h1 {
	font-size: 140%;
}

h2 {
	font-size: 130%;
}

h3 {
	font-size: 120%;
}

h4 {
	font-size: 110%;
}

a {
	color: #048104;
}

div#banner {
	background-color: #EFF3DA;
}

div#banner img {
	display: block;
}

div#banner h1 {
	padding: 0;
	margin: 0;
}

img.logo {
	width: 500px;
	height: auto;
	max-width: 100%;
}

div#menu-container {
	background-image: url(/images/menu-tint.png);
	background-position: bottom;
	background-repeat: repeat-x;
	/* height: 32px; */
	overflow: hidden;
}

div#content {
	overflow: hidden;
	display: table;
	border-collapse: collapse;
	width: 100%;
}

div#main {
	display: table-cell;
	vertical-align: top;
	padding-right: 4px;
	border-right: 1px solid #ccc;
	width: 100%;
}

div#calendar-sidebar {
	display: table-cell;
	vertical-align: top;
	padding-left: 4px;
	border-left: 1px solid #ccc;
}

div#calendar-sidebar h2 {
	white-space: nowrap;
}

div#calendar-sidebar div {
	margin-bottom: 4px;
}

div.event_band {
	background-color: #EFF3DA;
	padding: 8px;
	padding-bottom: 0px;
	border-radius: 0.5rem;
	margin-bottom: 8px;
}	

div.event_band div, div#full_event div {
	margin-bottom: 8px;
}

.calendar_date {
	font-weight: bold;
	color: #81252A;
}

.calendar_name {
	font-weight: bold;
}

.calendar_name a {
	color: black;
	text-decoration: none;
}

.calendar_name a:hover {
	text-decoration: underline;
}

.calendar_speaker {
	background-color: #EEE;
	padding: 2px;
	overflow: hidden;
}

.calendar_speaker_image {
	width: 32px;
	height: auto;
	vertical-align: middle;
}

div#full_event .calendar_speaker {
	padding: 4px;
}

div#full_event .calendar_speaker_image {
	width: 128px;
	height: auto;
	float: left;
	padding-right: 4px;
}

.calendar_location {
	background-image: url(/images/markers/location-marker.png);
	background-repeat: no-repeat;
	padding-left: 20px;
}

.calendar_time {
	background-image: url(/images/markers/time-marker.png);
	background-repeat: no-repeat;
	padding-left: 20px;
}

.calendar_contact {
	background-image: url(/images/markers/contact-marker.png);
	background-repeat: no-repeat;
	padding-left: 20px;
}

.calendar_links {
	font-size: 90%;
	padding-bottom: 1rem;
}

.calendar_links a {
	font-weight: bold;
	color: orange;
}

div#full_event .calendar_links {
	font-size: 120%;
}

div#footer {
	color: #999;
	font-size: smaller;
	text-align: center;
}

div#footer a {
	color: #999;
}

div.limited-width {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
}

div.padded {
	padding: 4px;
}

.qf_error_text {
	display: block;
}

/* mobile optimisations */

@media screen and (min-width: 961px)
{
	div#menu-container a {
		display: block;
		float: left;
		color: #333;
		text-transform: uppercase;
		text-decoration: none;
		letter-spacing: 1px;
		padding-top: 8px;
		padding-left: 16px;
		padding-right: 16px;
		padding-bottom: 11px;
		font-size: 80%;
		height: 13px;
	}

	div#menu-container a.selected {
		background: linear-gradient(0deg, #048104 0px, #048104 6px, white 6px);
	}
	
	div#menu {
		display: block !important;
	}

	.mobile {
		display: none !important;
	}

}

@media screen and (max-width: 960px)
{
	div#menu-container {
		overflow: visible !important;
		height: 32px !important;
	}

	div#main {
		display: block;
		border-right: 0;
	}
	
	div#calendar-sidebar {
		display: block;
		border-left: 0;
		padding: 4px;
		margin-left: -4px;
		margin-right: -4px;
		background-color: #DDD;
	}
	
	.desktop {
		display: none !important;
	}
	
	a.menu-button {
		padding-left: 30px;
		background-image: url(/images/menu-button.png);
		background-position: top left;
		background-repeat: no-repeat;
		color: #333;
		text-transform: uppercase;
		text-decoration: none;
		letter-spacing: 3px;
		padding-top: 5px;
		margin-left: 4px;
		height: 24px;
		display: block;
		float: left;
		font-size: 80%;
		margin-top: 3px;
	}
	
	a.menu-button {
		padding-left: 30px;
		background-image: url(/images/menu-button.png);
		background-position: top left;
		background-repeat: no-repeat;
		color: #333;
		text-transform: uppercase;
		text-decoration: none;
		letter-spacing: 3px;
		padding-top: 5px;
		margin-left: 4px;
		height: 24px;
		display: block;
		float: left;
		font-size: 80%;
		margin-top: 3px;
	}

	a#events-button {
		padding-right: 30px;
		background-image: url(/images/events-button.png);
		background-position: top right;
		background-repeat: no-repeat;
		color: #333;
		text-transform: uppercase;
		text-decoration: none;
		letter-spacing: 3px;
		padding-top: 5px;
		margin-right: 4px;
		height: 24px;
		display: block;
		float: right;
		font-size: 80%;
		margin-top: 3px;
	}
	
	div#menu {
		display: none;
		position: absolute;
		top: 32px;
		left: 0;
		z-index: 1;
		background-color: #CCC;
		padding: 4px;
	}
	
	div#menu a {
		display: block;
		text-transform: uppercase;
		text-decoration: none;
		letter-spacing: 3px;
		color: #333;
		line-height: 1.5;
		font-size: 120%;
	}
		
	div#calendar-sidebar .calendar_speaker_image {
		width: 64px !important;
	}

	p.sotm-image img {
		box-shadow: none !important;
	}
	
	div.gallery a {
		width: calc(50vw - 18px) !important;
		height: calc(50vw - 18px) !important;
	}
	
	div.species_listing>a>img {
		width: 120px !important;
	}	

	a.species_description.hidden {
		display: none !important;
	}

	div.welcome-gallery a {
		display: block;
		width: calc(100% / 3 - 4px) !important;
		aspect-ratio: 1;
		background-size: cover;
		background-position: center;
		float: left;
		position: relative;
		border-radius: 0.5rem;
		margin-right: 4px;
		margin-bottom: 4px;
	}
}

/* some custom styles for images etc */

img.hero {
	width: 100% !important;
	height: auto !important;
}

img.left50 {
	width: 50% !important;
	height: auto !important;
	float: left !important;
	padding-right: 4px;
	padding-bottom: 1rem;
}
	
img.right50 {
	width: 50% !important;
	height: auto !important;
	float: right !important;
	padding-left: 4px;
	padding-bottom: 1rem;
}

div.sotm, div.gallery, div.species_list {
	background-color: #EFF3DA;
	padding: 4px;
	text-align: center;
	border-radius: 8px;
	margin-bottom: 4px;
	overflow: hidden;
}

p.sotm-image {
	padding-bottom: 0;
}

p.sotm-image img {
	width: 100%;
	max-width: 600px;
	border-radius: 4px;
	box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

p.sotm-title {
	font-weight: bold;
	font-size: larger;
}

p.sotm-image-title {
	font-weight: bold;
}

div.gallery {
	display: inline-block;
	width: auto;
	max-width: 100%;
	margin-bottom: 12px;
}

div.gallery a {
	display: block;
	width: 140px;
	height: 140px;
	background-size: cover;
	background-position: center;
	float: left;
	margin: 4px;
	border-radius: 0.25rem;
	position: relative;
}

div.welcome-gallery {
	display: inline-block;
	width: 100%;
	max-width: 100%;
	margin-bottom: 12px;
}

div.welcome-gallery a {
	display: block;
	width: calc(100% / 6 - 4px);
	aspect-ratio: 1;
	background-size: cover;
	background-position: center;
	float: left;
	position: relative;
	border-radius: 0.5rem;
	margin-right: 4px;
}


div.species_list {
	text-align: left;
}

div.species_listing {
	overflow: hidden;
	padding: 4px;
	display: flex;
}

div.species_listing>a {
}

div.species_listing>a>img {
	display: block;
	border-radius: 0.25rem;
	width: 210px;
	height: auto;
}

div.species_details {
	padding-left: 8px;
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
}

a.species_name {
	display: block;
	font-weight: bold;
	color: black;
	text-decoration: none;
	font-size: larger;
}

a.expand_species {
	display: block;
}

a.species_description {
	display: block;
	color: black;
	text-decoration: none;
}

a.species_description.hidden {
	display: block;
	background: linear-gradient(0deg, #00000000, #000000ff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	height: 5rem;
}

div.species_list_toolbar {
	padding: 4px;
}

div.species_list_toolbar input {
	font: 12pt sans-serif;
	background-image: url(/images/search-lens.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left;
	padding-left: 1.5rem;
	border: 0.25rem solid white;
	border-radius: 0.25rem;
}

div.species_list_toolbar a {
	display: none;
	color: black;
	text-decoration: none;
}

div.species_list_toolbar button {
	margin-top: 4px;
}

div#no-species {
	padding: 4px;
	display: none;
}