body {
	width: 100vw;
	height: 100vh; /* fallback */
	height: 100svh; /* new svh unit, min viewport height, for mobiles */
	display: flex;
	overflow: hidden;
	flex-flow: column nowrap;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: Arial, sans-serif;
}
#header {
	display: flex;
	flex-flow: column nowrap;
	background-color: #336666;
	color: white;
	height: 136px;	
}	
	
#header #banner {
	flex: 1;
	background: left center/contain no-repeat url(ukogl_2026_onshore-horiz.svg); /* NEED TO ADJUST MARGINS OF SVG! */
	display: inline-flex;
	align-items: center;
	margin: 12px 8px;	
}
@media screen and (max-width:550px) {
	#header #banner {
		margin: 0 8px;
	}
}

#header #strap {
	font-size: 8pt;	
	margin-left: 8px;
	margin-bottom: 24px;
	color: #efefef;
}
@media screen and (max-width:550px) {
	#header #strap {
		margin-bottom: 4px;
	}
}

#header #menu {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: center;
	box-sizing: border-box;
}
		
#header #menu a {
	flex: 1;
	padding: 4px;
	color: white;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	font-size: 10pt;
}
#header #menu a:first-child {
	text-align: left;
	padding-left: 10px;
}
#header #menu a:last-child {
	text-align: right;
	padding-right: 10px;
}
	
@media screen and (max-width:900px) {
	#header #menu a {
		font-size: 8pt;
	}
}
	
#header #menu a:hover {
	background-color: white;
	color: black;
}
		
@media screen and (max-width:550px)  {
	#header #menu {
		margin: 12px;
		flex-flow: row wrap;
		gap: 12px;
		justify-content: space-around;
	}
	#header #menu a,
	#header #menu a:first-child,
	#header #menu a:last-child {
		text-align: center;
		padding-left: 0;
		padding-right: 0;
	}
}		

#slide-controls {
	position: absolute;	
	display: none;
	top: 8px;
	right: 8px;
	width: 80px;
	height: 24px;
	padding: 4px;	
	z-index: 3;
	flex-flow: row nowrap;
	gap: 4px;
	background: white;
	opacity: 0.5;
}
#slide-controls:hover {
	opacity: 0.9;
}
	
#slide-controls span {
	display: block;
	width: 24px;
	height: 24px;
	background-color: white;
	cursor: pointer;
	background: left top/contain no-repeat;
}
#slide-controls #prev-slide {
	background-image: url(previous.svg);
}
#slide-controls #next-slide {
	background-image: url(skip.svg);
}
#slide-controls #pause-animation {
	background-image: url(pause.svg);
}
#slides.active #slide-controls {
	display: flex;
}	
#slides.paused #slide-controls #pause-animation {
	background-image: url(play.svg);
}

#slides {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-flow: row nowrap;
	position: relative;

	transition: margin-left 2s;
}
	
#slides p {
	margin: 8px;
}
#slides p span {
	padding: 16px;
	display: inline-block;
	background-color: rgba(0,0,0,0.3);
	color: white;
}
	
#slides .slide {
	height: 100%;
	width: 100%;
	min-width: 100vw;
	overflow: hidden;
	font-size: 24pt;
	color: black;	
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
}
#slides .slide p {
	text-align: center;
	margin-top: auto; /* first para is centered, 2nd is bottom-aligned */
}

@media screen and (max-width:550px) {
	#slides .slide {
		font-size: 14pt;
	}
}
@media screen and (max-height:400px) {
	#slides .slide {
		font-size: 12pt;
	}
}

#slides .slide	p {
	max-width: 500px;
}
#slides .slide p.sub {
	max-width: 400px;
	font-size: 14pt;
}

@media screen and (max-height:400px) {
	#slides .slide p.sub {
		font-size: 10pt;
	}
}

#slides .slide p.sub span:hover {
	background-color: rgba(255,255,255,0.9);
}
#slides .slide p.sub	a {
	text-decoration: none;
	color: inherit;
}
#slides .slide p.sub a:hover {
	text-decoration: underline;
}
	
#slides #slide-1 {
	background: center/cover no-repeat url(kimmeridge-vista-lowres.jpg);
}
	
#slides #slide-2 {
	background: top left/cover no-repeat url(seismic-greyscale-background.png);
}
	
#slides #slide-3 {
	background: top left/cover no-repeat url(webmap-zoomed.jpg);
}
	
#slides #slide-4 {
	justify-content: space-between;
	background: top left/cover no-repeat url(bamford-edge-lowres.jpg);
}
#slides #slide-5 {
	background: top left/cover no-repeat url(bempton-basemap-background.jpg);
	flex-flow: row;
	justify-content: space-between;
}
#slides #slide-5 .column {
	flex: 1;
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

#slides #slide-5 p {
	text-align: left;
}

#slides #slide-5 img {
	padding: 8px
}
#slides #slide-5 img.gif {
	display: block;
}
#slides #slide-5 img.frame {
	display: none;
}
		
#slides #slide-5 #pause-gif {
	display: block;
	width: 24px;
	height: 24px;
	cursor: pointer;
	background: left top/contain no-repeat white;
	background-image: url(pause.svg);
	opacity: 0.5;
}
#slides #slide-5 #pause-gif:hover {
	opacity: 0.9;
}
#slides #slide-5 .gif.paused #pause-gif {
	background-image: url(play.svg);
}
#slides #slide-5 .gif.paused img.gif {
	display: none;
}
#slides #slide-5 .gif.paused img.frame {
	display: block;
}
		
@media screen and (max-width:700px) {
	#slides #slide-5 {
		flex-flow: column;
	}
	#slides #slide-5 .column img {
		max-width: 80%;
	}
}	
	
#slides .blank {
	background: black;
	position: absolute;
	display: block;
	height: 0;
	z-index: 2;
	opacity: 0;
	top: 0;
	left: 0;
	transition: opacity 1s;
}
	
#slides.loop {
	transition: unset; /* unset main marginLeft transition when switching from slide 5 to 1 (or 1 back to 5) */
}
#slides.loop .blank {
	height: 100%;
	opacity: 1;
}

#footer {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	flex-flow: column;
	align-items: stretch;
	gap: 8px;
	padding: 8px;
	box-sizing: border-box;
}
	
#footer div {
	display: flex;
	flex-flow: row;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font-size: 10pt;
}
	
#footer div.smallprint {
	font-size: 8pt;
	justify-content: center;
}
	
#footer #donate {
	max-width: 360px;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 8px;
}

#footer #donate a.caf_donate {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	background-color: firebrick;
	border: 1px solid firebrick;
	padding: 4px;
	color: white !important;
	text-decoration: none !important;
	text-shadow: 2px 3px #444444;
	font-weight: bold;
	font-size: 18px !important;
	width: 90px;
}
	
#footer #lynx {
	background: center right/contain no-repeat url(lynx_logo-small.png);
	display: flex;
	align-items: center;
	padding-right: 80px;
	height: 100%;
	max-width: 260px;
	color: black;
	text-decoration: none;
}
	
@media screen and (max-width:700px) {
	#footer div {
		flex-flow: column;
		align-items: stretch;
	}
	#footer #donate, 
	#footer #lynx {
		max-width: unset;
		min-height: 40px;
		padding-bottom: 8px;
		border-bottom: 1px solid grey;
	}
}

