:root{
	font-size: 10px;
	--backgroundcolor: #FFFFFF;
	--textcolor: #000000;
	--highlightcolor: #ff7700; 
	--margin: 15px;
	--fontsize: 20px;
}

* {
	margin: 0px;
	padding: 0px;
}

body {
	background-color: var(--backgroundcolor);
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, p, a, div  {
	color: var(--textcolor);
	text-decoration: none;
	font-weight: normal;
	margin: 0px;
	padding: 0px;
}

a:hover {
	color: var(--highlightcolor);
}

.container {
	position: relative;
	width: 100%;
	height: 100%;
}

h1 {
	position: fixed;
	left: var(--margin);
	bottom: var(--margin);
	font-size: var(--fontsize);
	padding-bottom: env(safe-area-inset-bottom);
}

nav {
	position: fixed;
	right: var(--margin);
	top: var(--margin);
	font-size: var(--fontsize);
}

nav a {
	margin-left: 10px;
}

main {
	position: fixed;
	font-size: calc(var(--fontsize)/1);
	left: var(--margin);
	top: var(--margin);
	width: calc(100vw - var(--margin)*5 - 76px);
}

#image-container-container {
	width: 50vw;
	height: 80vh;
	right: calc(var(--margin)*2);
	bottom: calc(var(--margin)*2);
	position: fixed;
}

#image-container {
	width: 100%;
	height: 100%;
	position: relative;
}

#image-container img {
	position: absolute;
	right: 0px;
	bottom: 0px;
	transform-origin: center center;
	max-width: 100%;
	max-height: 100%;
	/* background-color: white; */
}

main p {
	margin-bottom: 10px;
}

@media (orientation: portrait) {
	#image-container-container {
		width: 50vw;
		height: 50vh;
	}
}

@media only screen and (max-width: 350px) {
	#image-container-container {
		bottom: calc(var(--margin)*2 + 23px);
	}
	nav {
		right: var(--margin);
		top: auto;
		bottom: var(--margin);
		padding-bottom: env(safe-area-inset-bottom);
	}
	main {
		width: calc(100vw - var(--margin)*2);
	}
}