@import url('https://fonts.googleapis.com/css?family=Asap');

html, body {
	font-family:'Asap',sans-serif;
	margin:0;
	padding:0;
	overflow:hidden;
}

h1 {
	font-size:180%;
}

#map {
	position:absolute;
	width:100vw;
	height:100vh;
	overflow:hidden;
}
#map .map {
	position:relative;
	width:100%;
	height:100%;
}
#map .map.blurred {
	filter:blur(2px);
}

#map .location-pointer {
	cursor:pointer;
	transition:r .25s;
}
#map .location-pointer:hover {
	r:11;
}


#map #marker {
	display:none;
	position:absolute;
	width:15em;
	height:15em;
	
	align-items:center;
	justify-content:center;
	
	background-color:#f00;
	border-radius:50%;
	
	transform:scale(0);
	
	transform-origin:center center;
	transition:transform .4s;
	
	outline:0;
	-webkit-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select:none;
	
	cursor:pointer;
}
#map #marker.ready {
	display:flex;
}
#map #marker.displayed {
	transform:scale(1);
	box-shadow:2em 2em 8em rgba(128,0,0,.25);
}
#map #marker .title {
	position:absolute;
	margin:0;
	padding:0;
	text-align:center;
	color:#fff;
	font-weight:200;
	white-space:nowrap;
	overflow:hidden;
	transition:all .67s;
}

/*
.credits {
	position:absolute;
	right:1em;
	bottom:1em;
	opacity:.1;
	font-size:67%;
	pointer-events:none;
}
*/

#map .coordinates {
	position:absolute;
	z-index:99;
	left:0;
	top:0;
	padding:1em;
	background-color:rgba(255,255,255,.85);
}




/* general styles */
a.button,
i.button {
	display:inline-block;
	width:1.25em;
	height:1.25em;
	border:none;
	cursor:pointer;
	border-radius:50%;
	border:2px solid rgba(228,228,228,.85);
	background-color:rgba(255,255,255,.15);
	background-repeat:no-repeat;
}
a.button.home {
	background-color:#f00;
	border:0;
}
i.button:hover {
	border-color:rgba(228,228,228,1);
}



/* page layout, beyond map */

#page {
	position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
#page header {
	padding:1em;
}


/* topic overview */
#topics {
	overflow-y:auto;
	-webkit-overflow-scrolling:touch;
	overflow-scrolling:touch;
}
#topics a.preview {
	position:relative;
	display:inline-block;
	width:calc(100vw - 2em);
	height:calc(100vw - 2em);
	vertical-align:top;
	background-color:#f00;
	border-radius:50%;
	margin:1em;
	object-fit:cover;
	filter:grayscale(0);
}

@media (min-width: 32em) {
	#topics a.preview {
		width:calc(50vw - 2em);
		height:calc(50vw - 2em);
	}
}
@media (min-width: 48em) {
	#topics a.preview {
		width:calc(33.333vw - 2em);
		height:calc(33.333vw - 2em);
	}
}
@media (min-width: 96em) {
	#topics a.preview {
		width:calc(25vw - 2em);
		height:calc(25vw - 2em);
	}
}
@media (min-width: 128em) {
	#topics a.preview {
		width:calc(20vw - 2em);
		height:calc(20vw - 2em);
	}
}

#topics a.preview img,
#topics a.preview video {
	vertical-align:top;
	width:100%;
	height:100%;
	object-fit:cover;
	border-radius:50%;
}
#topics h1.title {
	font-size: 120%;
    position: absolute;
    top: calc(50% - 1.25em);
    width: 100%;
    text-align: center;
    color: #fff;
    text-shadow:0 0 .33em rgba(0,0,0,.33);
}



/* slideshow */

#slideshow {
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
}
#slideshow article {
	position:relative;
	display: inline-block;
    vertical-align: top;
    width: 100%;
    height:100%;
    text-align: center;
}
#slideshow article:first-child {
	margin-left:0%;
	transition:margin-left .5s;
}

#slideshow article .contents {
	position:relative;
	height:100%;
	display:flex;
    align-items:center;
    justify-content:center;
}


#slideshow h4,
#slideshow h1 {
	font-weight:200;
	margin:0;
	padding:0;
}
#slideshow h4 {
	font-size:100%;
	opacity:.67;
	padding-bottom:1em;
}
#slideshow h1 {
	font-size:225%;
}
#slideshow h4 a {
	color:inherit;
	text-decoration:none;
}

#slideshow article .medium {
	width:auto;
	max-width:100%;
	height:100%;
	object-fit:contain;
}
#slideshow article .text {
	max-width:50em;
	max-height:100%;
	margin:0 auto;
	padding:1em 2.5em;
	text-align:left;
	white-space:normal;
	font-size:150%;
	overflow-y:auto;
	-webkit-overflow-scrolling:touch;
	overflow-scrolling:touch;
}
#caption {
	display:flex;
	height:5em;
	align-items:center;
	justify-content:center;
}

#progressbar {
	position:relative;
	background-color:#eee;
	background-color:#eee;
	width:100%;
	height:0.25em;
}
#progressbar .indicator {
	width:0;
	height:100%;
	background-color:#f00;
	background-color:rgba(128,128,128,1);
	transition:width .5s;
}

i.button.slide {
	display:none;
	position:absolute;
	z-index:2;
	top:calc(50vh - 0.75em);
	background-image:url(arrow.svg);
	background-size:100%;
	mix-blend-mode:difference;
}
i.button.slide.displayed {
	display:block;
}
i.button.slide.back {
	left:1em;
}
i.button.slide.next {
	right:1em;
	transform:rotate(180deg);
}

i.button.play {
	background-image:url(play.svg);
	background-size:100%;
}
i.button.play.playing {
	background-image:url(pause.svg);
}


i.button.display-text {
	position:absolute;
	bottom:4em;
	left:calc(50vw - 0.75em);
}
i.button.hide-text {
	position:absolute;
	top:5em;
	left:calc(50vw - 0.75em);
}

video {
	background:transparent;
}
#slideshow article audio.medium {
	width:calc(100vw - 6em);
}

