@font-face {
	font-family: "Monosten";
	src: url("font.woff") format("woff"),
		url("font.woff2") format("woff2");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "VT323";
	src: url("VT323-Regular.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
}

* {
	margin: 0px;
	padding: 0px;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}



body {
	font-family: Monosten, monospace;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,130,255,1);
	color: rgba(0,0,0,1);
    background-color: #fff;	

    overflow: hidden;
}

body.in-view {
	overflow: scroll;
}

button {
	background: white;
	border: 1px solid black;
	padding: 10px;
	border-radius: 14px;
}

h2 {
	font-family: VT323;
	margin-bottom: 20px;
}

p {
	margin-bottom: 20px;
}

ul {
	padding-left: 20px;
}


#logo {
	position: fixed;
	top: 20px;
	left: 20px;
	width: 300px;
	height: auto;
	z-index: 1000;
	transform-origin: top left;
	transition: 500ms ease;
}

body.in-view #logo {
	transform: scale(.7);
}

nav {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	justify-content: end;
	z-index: 1000;
}

nav ul li {
	display: inline-block;
	list-style-type: none;
}

nav ul li a {
	display: inline-block;
	background: black;
	color: white;
	padding: 10px;
	margin-left: 10px;
	text-decoration: none;
}

nav ul li a:hover {
	background: magenta;
}

#map-controls {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 100000;
	display: flex;
	align-items: flex-end;

	transition: all 1000ms ease;

}

#map-controls button {
	margin-left: 10px;
}

#page {
}


#slider {
	position: fixed;
	bottom: 10px;
	left: 20px;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: space-between;

	transition: all 1000ms ease;
}

body.in-view #slider, body.in-view #map-controls {
	opacity: 0;
	pointer-events: none;
	transform: scale(.9);
}

#slider input[type="range"]{
	color:red;
	margin-left: 10px;
	background: #d3d3d3;
	outline: none;
}

#slider button {
	background: white;
	border: 1px solid black;
	padding: 10px;
	border-radius: 14px;
}

#reset-button {
	margin-left: 10px;
}

/* background to hold map */

#background {
    left: 0px;
    top: 0px;
    position: fixed;
    width: 100vw;
    height: calc(170vh - 0px);
    background: linear-gradient(180deg, #D9D9D9 0%, #737373 100%);
    background: url(map-trace.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: all 1000ms ease;
}


/* Container for your map image */
#map-container {
	left: 0px;
	top: 0px;
	position: absolute;
	width: 100vw;
	height: 100vh;
}

body.in-view #map-container {
	opacity: .4;
}

body.in-view .marker {
	background: rgb(255,220,220);
}

#about {
	font-size: 28px;
	padding: 200px 20px 250px;
	z-index: 100000;
	position: relative;
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-column-gap: 40px;
	width: calc(100vw - 80px);
	margin-top: 100vh;
}

#about h2 {
	-webkit-text-stroke: 1px black;
	color: white;
	font-size: 74px;
}

#about a {
	color: black;
}

#about div:first-of-type {
	font-weight: 500;
}

#about div:last-of-type, #about h3 {
	font-size: 20px;
}

#about ul {
	margin: 20px 0px;
}

#about ul li{
	list-style-type: circle;
}

#about figure {
	position: absolute;
	width: 220px;
	margin: 0;
	mix-blend-mode: multiply;
	opacity: 1;					
}

#about figure img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;	
}

#about figure figcaption {
	text-align: left;
	font-size: 16px;
	line-height: 18px;
	margin-top: 10px;
	transform: rotate(-90deg) translateX(10px) translateY(-130%);
	transform-origin: top left;
}

#about figure.small {
	width: 80px;
}

#about figure.medium {
	width: 170px;
}

#about figure.big {
	width: 400px;
}

#about figure.tall {
	width: 300px;
}



/* Marker styling */
.marker {
	position: absolute;
	width: 34px;
	height: 34px;
	background-color: rgba(255, 132, 255, 1);
	background-size: contain;
	transform: translate(-50%, -100%); /* tip of pin at the lat/lon */
	cursor: pointer;
	border-radius: 100%;
/*			mix-blend-mode: multiply;*/
}

.first-marker {
	background-color: rgba(255, 0, 255, 1);
	background-size: contain;
	border: 1px solid white;
	z-index: 100;
}

/* Simple tooltip on hover */
.first-marker.marker:hover::after {
	content: attr(data-name);
	position: absolute;
	top: -60px;
	left: 50%;
	transform: translateX(-50%);
	color: black;
	padding: 2px 6px;
	border-radius: 3px;
	white-space: nowrap;
	background-color: white;
	background-image: url('pyeongsang.png');
	background-size: contain;
	height: 50px;
	width: 50px;
	z-index: 1000000;
}

#things {
	position: sticky;
	margin-top: 100px;
	top: 20px;
	left: 20px;
	width: 480px;
	z-index: 1000;
	background: white;
	color: black;
	border: 1px solid black;
}

.thing {
	border-top: 1px solid black;
}

.thing-title {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid black;
	padding: 10px 15px;
}

.thing-title h2 {
	display: inline-block;
	font-size: 20px;
	line-height: 20px;
	margin: 0px;
}

.thing img, .thing .meta {
	display: none;
}

.thing.active img, .thing.active .meta {
	display: block;
}

.meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 5px;
}

@media only screen and (max-width: 500px) {

	html {
		font-size: 13px;
	}

	#logo {
		width: 200px;
	}

	#background {
		height: 50vh;
		top: 20vh;
	}

	#map-container {
		width: 90vw;
		left: 5vw;
		height: 40vw;
		top: 10vh;
	}

	#slider {
		display: flex;
		flex-direction: column-reverse;
		justify-content: left;
		align-items: flex-start;
		/*top: 20px;
		right: 20px;
		bottom: auto;
		left: auto;*/
	}

	#slider input[type="range"] {
		writing-mode: vertical-lr;
		direction: rtl;
		vertical-align: bottom;
		margin: 0px 0px 0px 4px;
	}

	#slider label { display: none; }

	#reset-button {
		margin: 0px 0px 10px 0px;
	}

	.marker {
		width: 16px;
		height: 16px;
	}

	#about {
		font-size: 16px;
		line-height: 22px;
		padding: 200px 20px 250px;
		z-index: 100000;
		position: relative;
		display: block;
		width: calc(100vw);
		margin-top: 100vh;
	}

	#about div:first-of-type {
		margin-bottom: 40px;
	}

	#about div:last-of-type, #about h3 {
		font-size: 14px;
	}

	#about h2 {
		font-size: 54px;
		line-height: 48px;
	}

	#about figure figcaption {
		font-size: 12px;
		line-height: 14px;
		background: #ddd;
		display: inline-block;
		padding: 2px;
		border-radius: 2px;
	}

	#about figure.small {
		width: 50px;
	}

	#about figure.medium {
		width: 100px;
	}

	#about figure.big {
		width: 150px;
	}

	#about figure.tall {
		width: 120px;
	}

}