/* ------------------------------ */
/* styles for all mobile devices: */
/* ------------------------------ */
@font-face {
	font-family: 'Dosis';
	src:	url('../fonts/dosis-regular-webfont.eot');
	src:	url('../fonts/dosis-regular-webfont.eot?#iefix') format('embedded-opentype'),
			url('../fonts/dosis-regular-webfont.woff') format('woff'),
			url('../fonts/dosis-regular-webfont.ttf') format('truetype'),
			url('../fonts/dosis-regular-webfont.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}

html, body {
	width: 100%;
	min-height: 100%;
	margin: 0;
	padding: 0;
}
body {
	font-size: 1em;
	font-family: 'Dosis', sans-serif;
	background-color: white;
	color: black;
}
h2 { font-size:22px; }
form h3 { color: #58D3F7; }
hr { color: #58D3F7; }

#wrapper {
	box-sizing: border-box;
	min-height: 100vh;
	margin: 0;
	padding: 0;
}
#logo {
	position: fixed;
	width: 140px;
	height: 80px;
	margin: 20px 0 0 18px;
	z-index: 999;
	text-align: center;
	text-transform: uppercase;
	display: block;
}
#logo img {
	position: absolute; top: 0; left: 0;
	width: 140px;
	z-index: 999;
}
#logo .behind  {
	position: absolute; top: 20px; left: 40px;
	font-size: 0.8em;
	color: black;
	z-index: 800;
}
#logo .below {
	position: absolute; bottom: 0; left: 0;
	width: 140px;
	font-size: 0.8em;
	margin: 0;
}
#logo .below a {
	text-decoration: none;
	color: white;
}
#menu {
	position: fixed; right: 18px; top: 20px;
	z-index: 999;
}
#menu_icon {
	text-align: right;
	display: block;
	cursor: pointer;
}
#menu_content_wrapper {
	display: none;
	height: calc(100vh - 25px);
	overflow-y: auto;
	overflow-x: hidden;
}
#menu_content {
	position: relative;
	background-color: rgba(0,0,0,0.75);
	min-width: 160px;
	padding: 15px;
	color: white;
	border: 1px solid #F8F8F8;
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	border-radius: 15px;
}
#menu_content a {
	text-decoration: none;
	color: white;
}
#menu_content .close {
	text-align: right;
}
#menu_content .closeimg {
	width: 18px;
}
.extlink {
	height: 1em;
}
#menu_content ul {
	padding-left: 15px;
}
#bg, #gal_bg {
	position:fixed;
	top:0;
	left:0;
	z-index: -10;
	/* Preserve aspet ratio */
	width: 100vw;
	height: 100vh;
}
#bg img, #gal_bg img {
	height: 100%; width: 100%; object-fit: cover;
}
#model_content {
	display: flex;
	flex-wrap: wrap;
	max-width: calc(70% - 18px);
	padding-top: 110px;
	margin-left: 18px;
	margin-right: 30%;
	padding-left: 8px;
	padding-right: 8px;
	overflow-x: hidden;
	color: white;
	background-color: rgba(0,0,205,0.5);
	min-height: 100vh;
}
#model_content a {
	color: white;
}
#model_parta {
	order: 1;
}
#model_partb {
	order: 2;
	width: 100%;
}
#model_partc {
	order: 3;
}
.gotop {
	text-align: right;
	font-size: 0.9em;
}
#kenburns {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -2;
}
#kenburns_overlay {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
}
#div_content {
	max-width: 100%;
	padding-top: 140px;
	padding-left: 18px;
	padding-right: 18px;
	color: white;
	background: transparent;
}
.abook {
/*	display: flex; */
	color: white;
	background-color: rgba(0,0,205,0.5);
	border: 1px solid #aaffff;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 20px;
}
.abook a {
	color: white;
}
.abook h2 {
	margin: 0;
	padding: 0;
}
.abook .image {
	max-width: 30%;
	float: left;
	margin-right: 20px;
	margin-bottom: 15px;
}
.abook .image img {
	max-width: 100%;
	height: auto;
}
#page_txt {
	position: absolute; bottom: 0; left: 0;
	background-color: transparent;
	color: white;
	padding: 18px;
}
#page_txt h2 {
	margin: 0; padding: 0;
}
#page_txt a {
	color: white;
}
#text-adjust {
	position: absolute; bottom: 10px; right: 0;
	padding-right: 18px;
	text-align: right;
	color: white;
}
#gal_type {
	position: absolute; top: 80px; right: 0;
	padding-right: 18px;
	text-align: right;
	color: white;
}
#change_gal_type {
	cursor: pointer;
	color: white;
	background: transparent;
}
#gal_minus {
	position: absolute; top: 40vh; left: 18px;
}
#gal_plus {
	position: absolute; top: 40vh; right: 18px;
}
#gal_last, #gal_next {
	border: none;
	padding: 0;
	background: transparent;
	font-size: 4em;
	color: white;
	text-shadow: 2px 2px 2px rgba(0,0,0,0.25);

}
#contrast {
	background: url(../img/contrast.png) left top no-repeat;
	background-size: contain;
	cursor: pointer;
	color: white;
	padding-left: 18px;
	border: none;
}
#hidetxt {
	background: url(../img/show_no.png) left top no-repeat;
	background-size: contain;
	cursor: pointer;
	color: white;
	padding-left: 18px;
	border: none;
}
#showtxt {
	display: none;
	background: url(../img/show.png) left top no-repeat;
	background-size: contain;
	cursor: pointer;
	color: white;
	padding-left: 18px;
	border: none;
}
#contrast, #hidetxt, #showtxt, #change_gal_type {
	border: 1px solid #F8F8F8;
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	border-radius: 15px;
}
form {
	max-width: 400px;
}
#submit-all {
	font-size: 1.5em;
	color: white;
	background-color: #58D3F7;
	border: 1px solid #ccc;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	cursor: pointer;
}
.formfield {
	position: relative;
	max-width: 100%;
}
.formfield .in2 {
	width: 3.5em;
}
.formfield .in4 {
	width: 4.5em;
}
.formfield input, .formfield textarea {
	color: black;
	font-size: 16px;
	box-sizing: border-box;
	padding-top: 1.1em;
	padding-left: 0.6em;
	padding-bottom: 0.1em;
	width: 100%;
	border: 1px solid #ccc;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	background-color: white;
}
.formfield label {
	color: black;
	position: absolute; top: 0.1em; left: 0.6em;
	font-size: 0.8em;
	text-transform: uppercase;
	opacity: 0.8;
}
.formfield:focus-within input, .formfield:focus-within select {
	border-color: #0665ff;
}
.formfield:focus-within label, .formfield:focus-within select {
	opacity: 0.5;
}
.formfield textarea {
	resize: vertical;
}
form table {
	max-width: 100%;
}
.explain {
	font-size: 0.8em;
}
#errors {
	display: none;
	border: 1px solid #ff42e6;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	margin-bottom: 1em;
	padding: 18px;
	background-color: #ba41ff;
}
#page_legal {
	background-color: #00007f;
	color: #aaffff;
	padding-top: 130px;
	padding-left: 18px;
	padding-right: 18px;
	max-width: calc(100vw - 36px);
	min-height: 100vh;
}
#page_legal a {
	color: #aaffff;
}
.onlyPC { display: none; }
/* -------------------------------------- */
/* styles for large (not mobile) devices: */
/* -------------------------------------- */
@media only screen and (min-width: 768px) {
	h2 { font-size:32px; }
	.onlyMov { display: none; }
	.onlyPC { display: initial; }

	#logo {
		position: fixed;
		width: 185px;
		height: 110px;
		margin: 25px 0 0 18px;
	}
	#logo img {
		width: 185px;
		z-index: 999;
	}
	#logo .behind  {
		position: absolute; top: 30px; left: 40px;
	}
	#logo .below {
		width: 185px;
		font-size: 1em;
	}
	#menu {
		position: fixed; right: 18px; top: 25px;
		min-width: 185px;
	}
	#menu_content_wrapper {
		height: calc(100vh - 31px);
	}
	#menu_content {
		min-width: 185px;
	}
	#contrast, #showtxt, #hidetxt {
		padding-left: 23px;
	}
	#model_content {
		padding-top: 130px;
	}
	#div_content {
		padding-top: 150px;
	}
	#gal_type {
		position: absolute; top: calc(80px + 1em); right: 0;
	}
	form {
		max-width: 400px;
		margin: 0 auto;
		border: 1px solid #ccc;
		-webkit-border-radius: 10px;
		-moz-border-radius: 10px;
		border-radius: 10px;
		cursor: pointer;
		padding: 0 15px 15px 15px;
	}
	form table {
		width: 350px;
	}
	.formfield {
		width: 350px;
	}
}
