:root {
	color-scheme: light dark;
	
	--theme-color: #86c086;
	--theme-color-light: #E6ffE6;
	--theme-color-transparent: #86c08600;
	--theme-color-rgb: 200, 200, 200;
	
	--theme-color-2: #C4A5E3;
	--theme-color-2-light: #c7b5d8;
	--theme-color-2-dark: #9582b7;
	--theme-color-2-transparent: #B0696900;
	--theme-color-2-rgb: 196, 165, 227;
	
	--header-height: max(0.5in, 5vw);
	--header-img-margin: calc(var(--header-height) / 10);
	
	--table-row-alternate: light-dark(var(--theme-color-light), #1E1E1E);
	
	--doc-height: 100dvh;
	
	--main-height: calc( var(--doc-height) - var(--header-height) - 2 * var(--header-img-margin) );
	
	--footer-height: 0.3in;
	--footer-text-size: max(0.15in, 0.8vw);
	--footer-text-margin: calc( ( var(--footer-height) - var(--footer-text-size) ) / 2 );
	
	--bg-primary: #ffffff;
	--bg-page: #ffffff;
	
	--text-primary: gray;
	--text-caption: gainsboro;
	--small-color: light-dark(#C0C0C0, dimgray);
	
	--bg-primary-dark: #1A1A1A;
	--bg-page-dark: black;
	--text-primary-dark: darkgray;
	
	--footer-text-color: light-dark(white, dimgray);
	
	--button-color-dark: #222222;
}

body, html {
	height: auto;
	font-family: "Hubballi";
	max-width: 100dvw;
	margin: 0;
}

body {
	background-color: var(--bg-page);
	background-image: url(../images/bg.jpg);
	background-attachment: fixed;
	background-size: cover;
	backdrop-filter: blur(8px);
	filter: blur(0);
	padding: 0;
	margin: 0;
	display: flex;
	min-height: 100vh;
	flex-direction: column;
	justify-content: flex-start;
}

header {
	position: sticky;
	display: inline;
	top: 0dvh;
	background-color: var(--theme-color);
	width: 100%;
	z-index: 5;
}
nav img {
	height: calc( var(--header-height) / 2 );
	margin: var(--header-img-margin);
	position: absolute;
	left: var(--header-img-margin);
	display: block;
}

nav, footer {
	box-shadow: 0 0 2em 0em rgba(0, 0, 0, 0.5);
	background-color: var(--theme-color);
}

nav {
	position: sticky;
	top: 0dvh;
	width: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: right;
	text-align: center;
	z-index: 5;
	font-family: 'Satisfy', script;
}

.hamburger {
	display: inline-block;
	margin: calc(0.1 * var(--header-height) + var(--header-img-margin));
	width: calc(0.8 * var(--header-height));
	height: calc(0.8 * var(--header-height));
	aspect-ratio: 1;
	cursor: pointer;
}

.bar1, .bar2, .bar3 {
	width: 80%;
	height: 10%;
	margin: 10% auto;
	
	background-color: white;
	border-radius: 6px;
	
	transition: 0.2s;
}

.bar1 {
	margin-top: 25%;
}

.toggled .bar1 {
  transform: translate(0, 200%) rotate(-45deg);
}

.toggled .bar2 {opacity: 0;}

.toggled .bar3 {
  transform: translate(0, -200%) rotate(45deg);
}

#recaptcha {
	width: 304px;
	margin: 1em auto;
}

#recaptcha iframe {
}

@media only screen and (max-width: 920px) {
	.desktop-only {
		display: none;
	}
	
	#recaptcha {
		height: 32px;
		margin: 0.5em auto 3em auto;
		transform: scale(0.75);
	}
	
	.navbar * {
		display: inline-block;
		box-sizing: border-box;
	}
	
	.navbar ul, .navbar > a {
		font-size: 0.4in;
		background-color: light-dark(var(--theme-color), var(--button-color-dark));
		color: light-dark(white, var(--text-primary-dark));
		overflow: hidden;
		width: 100%;
		max-height: 125%;
		list-style-type: none;
		text-decoration: none;
		margin: 0;
		padding: 0;
		transition: max-height 0.4s, background-color 0.4s, color 0.4s;
		border-radius: 0.5in;
	}
	
	.navbar ul li {
		margin: 0;
		width: 90%;
	}
	
	.navbar ul li a {
		font-size: 0.3in;
		color: light-dark(var(--theme-color), var(--bg-primary-dark));
		font-family: 'Hubballi';
		text-decoration: none;
	}
	
	.opened.navmenu ul, .navbar a:hover {
		background-color: light-dark(white, var(--theme-color));
		color: light-dark(var(--theme-color), var(--bg-primary-dark));
	}
	
	.opened.navmenu ul {
		max-height: 1500%;
	}
	
	.navmenu ul:first-child:before {
		content: "▾";
		position: absolute;
		left: 85%;
		top: 6px;
	}
	
	.opened.navmenu ul:first-child:before {
		content: "▴";
	}
	
	nav img {
		height: 48px;
	}
	
	.navbar {
		position: absolute;
		top: 100%;
		left: 0%;
		height: 0;
		width: 100dvw;
		background-color: light-dark(var(--theme-color), var(--bg-primary-dark));
		overflow: hidden;
		transition: height 0.25s;
	}
	
	.navmenu, a.navitem {
		position: relative;
		height: 0.6in;
		width: 80%;
		padding-bottom: 12px;
		justify-content: center;
		margin: 0.08in 3% 0.08in 3%;
		background-color: light-dark(var(--theme-color), var(--button-color-dark));
		color: light-dark(white, var(--text-primary-dark));
		border-radius: 0.4in;
	}
	
	.navmenu a {
		padding: auto;
		width: 100%;
	}

	.navbar a:hover {
		color: light-dark(var(--theme-color), var(--bg-primary-dark));
		background-color: light-dark(white, var(--theme-color));
	}
	
	.button {
		width: 60%;
	}
	
	form label {
		width: 100%;
	}
	
	.split {
		display: block;
	}
	.column, .column-left {
		display: block;
		width: 100%;
		
	}
	
	.column a img, .column-left a img {
		width: 100%;
	}
	
	form input, form button, form select, textarea {
		width: 100%;
	}
	
	.capsule h1 {
		font-size: 0.4in;
	}
	.capsule h2 {
		font-size: 0.3in;
	}
	
	.capsule p, .capsule a {
		font-size: 0.22in;
	}
}

@media only screen and (min-width: 920px) {
	.hamburger {
		display: none;
	}
	
	.mobile-only {
		display: none;
	}
	
	.navmenu, .navitem {
		display: flex;
		justify-content: center;
		position: relative;
		width: 11%;
		margin: 0.2em;
		border-radius: 0.5in;
		
		color: light-dark(white, var(--theme-color));
		background-color: none;
		
		font-size: 1.5vw;
		text-align: center;
		text-decoration: none;
		list-style-type: none;	
		line-height: calc(var(--header-height) / 2);
		
	}
	
	.navmenu ul {
		font-family: "Satisfy", script;
		text-align: center;
		position: absolute;
		width: 100%;
		left: 0%;
		top: 0%;
		margin-top: 0%;
		padding-left: 0%;
		display: block;
		list-style-type: none;
		background-color: none;
		border-radius: calc(var(--header-height) / 4);
		overflow: hidden;
		max-height: 100%;
		transition: max-height 0.2s, background-color 0.2s ease 0.2s, color 0.2s ease 0.2s, box-shadow 0.2s;
	}
	
	.navmenu ul li {
		line-height: 2vw;
		font-size: 1.2vw;
	}
	
	.navitem {
		transition: background-color 0.1s, color 0.1s;
	}
	.navitem:hover {
		color: var(--theme-color);
		background-color: light-dark(white, var(--button-color-dark));
		transition: background-color 0.1s, color 0.1s;
	}
	
	.navmenu ul:hover {
		color: var(--theme-color);
		background-color: light-dark(white, var(--button-color-dark));
		box-shadow: 0 0 1em 0em rgba(0, 0, 0, 0.2);
		max-height: 1500%;
		transition: background-color 0.1s, color 0.1s, max-height 0.5s;
	}
	
	.navmenu ul li:first-child {
		padding-top: 0.15in;
	}
	
	.navmenu ul li:last-child {
		padding-bottom: 0.15in;
	}
	
	.navmenu ul li {
		font-family: "Hubballi";
	}
	
	.navmenu ul li a {
		color: light-dark(gray, gray);
		text-decoration: none;
		display: block;
		padding: auto;
	}
	
	.navmenu ul li a:hover {
		color: var(--theme-color);
		text-decoration: none;
	}
	
	.button {
		width: 40%;
	}
	
	div.capsule {
		box-shadow: 0 0 1em 0em rgba(0, 0, 0, 0.1);
	}
	
	.split {
		display: table;
		box-sizing: border-box;
		width: 100%;
	}
	.split:after {
		clear: both;
	}
	
	.column, .column-left {
		display: inline-block;
		width: 48%;
	}
	
	.column {
		margin-left: 1%;
		margin-right: 1%;
	}

	.column-left {
		margin-left: 1%;
		margin-right: 1%;
		float: left;
	}
	
	.column a img, .column-left a img {
		width: 100%;
	}
	
	form label {
		width: 38%;
	}
	
	form input, form button, select, textarea {
		border: none;
		width: 55%;
	}
	
	form input:focus, textarea:focus {
		outline: none !important;
		border: 2px solid var(--theme-color);
		width: 55%;
	}
}

main {
	height: max(100%, var(--main-height));
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	flex-shrink: 0;
	
}

h1 {
	display: block;
	font-size: 0.75in;
	font-family: 'Satisfy', script;
	text-decoration: none;
	font-weight: 400;
	margin: 10px;
	color: light-dark(var(--theme-color-2), var(--theme-color-2-dark));
	text-align: center;
}

h1:after {
	display:block;
	content: "";
	margin-top: 0;
	margin-bottom: 24px;
	background-image: linear-gradient(to right, var(--theme-color-2-transparent) 10%, var(--theme-color-2) 40%, var(--theme-color-2) 60%, var(--theme-color-2-transparent) 90%);
	width: 100%;
	height: 2px;
}

h2 {
	display: block;
	font-size: 0.4in;
	font-family: 'Satisfy', script;
	text-decoration: none;
	font-weight: 400;
	margin: 10px;
	color: var(--theme-color);
	text-align: center;
}

h2:after {
	display:block;
	content: "";
	margin-top: 0;
	margin-bottom: 24px;
	background-image: linear-gradient(to right, var(--theme-color-transparent) 10%, var(--theme-color) 40%, var(--theme-color) 60%, var(--theme-color-transparent) 90%);
	width: 100%;
	height: 2px;
}

.split + h2 {
	margin-top: 36px;
}

p + h2, small + h2 {
	margin-top: 1em;
}

div.capsule {
	display: block;
	background: white;
	width: max(60%, 3in);
	padding: 1em;
	margin: 1em auto 1em auto;
	border-radius: 0.4in;
	font-size: 0.23in;
}

div.capsule small {
	display: block;
	margin: 0 2% 0 2%;
	color: var(--small-color);
	font-style: italic;
	font-size: 0.2in;
}

div.capsule p, div.capsule ul {
	margin-left: 2%;
	margin-right: 2%;
	text-indent: 32px;
	color: gray;
	list-style-type: disc;
}

div.capsule strong {
	display: block;
	margin-left: 2%;
	margin-right: 2%;
	text-indent: 32px;
}

div.capsule p + p {
	margin-top: 1em;
}

div.capsule li {
	width: 100%;
	text-align: left;
	margin-bottom: 0.5em;
}

div.capsule a.standalone-link {
	display:block;
	text-align:center;
	margin:auto;
}

div.capsule > img:not(.about) {
	text-align: center;
	margin-left: 10%;
	width: 80%;
}

div.capsule img {
	border-radius: 1em;
}

div.capsule table {
	margin-left: 10%;
	margin-top: 2em;
	margin-bottom: 2em;
	width: 80%;
	text-align: center;
	border-collapse: separate;
	border-spacing: 0;
}

div.capsule th {
	color: light-dark(white, gray);
	background-color: light-dark(var(--theme-color), var(--button-color-dark));
	padding: 1em;
}

div.capsule tr, td {
	color: gray;
	padding: 2%;
}

.column img {
	width: 100%;
}

table tr td {
  padding: 5px;
}

table tr th {
  background: #eee;
  text-align: center;
}

form {
	padding: 1em;
	background-color: var(--table-row-alternate);
	border-radius: 1em;
	margin: auto;
	max-width: 600px;
}

form label {
	display: inline-block;
	box-sizing:border-box;
	float: left;
	clear: left;
	text-align: left;
	color: gray;
	font-size: 0.22in;
	margin-top: 0.5em;
}

input[type='text'], input[type='email'], input[type='tel'], select, textarea {
	box-sizing:border-box;
	border-color: gainsboro;
	border-radius: 0.05in;
	display: inline-block;
	float: right;
	height: auto;
	margin-top: 0.5em;
}

form button {
	margin: 1em 10% auto 10%;
	box-sizing:border-box;
	width: 80%;
	height: 2em;
	border-radius: 1.5em;
	border-style: none;
	background-color: light-dark(white, var(--bg-primary-dark));
	color: var(--theme-color);
	font-weight: bold;
	font-size: 0.25in;
	font-family: 'Hubballi';
	cursor: pointer;
}

form button:hover {
	background-color: var(--theme-color);
	color: light-dark(white, var(--bg-primary-dark));
	transition: background-color 0.1s;
}

form button:disabled {
	color: gray;
	background-color: gainsboro;
	cursor: default;
}

/* top-left border-radius */
table tr:first-child th:first-child {
  border-top-left-radius: 1em;
}

/* top-right border-radius */
table tr:first-child th:last-child {
  border-top-right-radius: 1em;
}

/* bottom-left border-radius */
table tr:last-child td:first-child {
  border-bottom-left-radius: 1em;
}

/* bottom-right border-radius */
table tr:last-child td:last-child {
  border-bottom-right-radius: 1em;
}

div.capsule tr:nth-child(even) {
	background-color: var(--table-row-alternate);
}

img.about {
	width: 90%;
	padding: 0 2em 0 2em;
}

main a:not(.button) {
	color: var(--theme-color);
}

.button {
	color: white;
	font-weight: bold;
	font-size: 0.25in;
	text-decoration: none;
	text-align: center;
	
	display:block;
	margin: 2em auto 2em auto;
	padding: 0.15in 0.5in 0.15in 0.5in;
	border-radius: 0.5in;
	box-shadow: 0 0.1em 0.2em 0 rgba(0, 0, 0, 0.25);
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.1s, color 0.1s;
}

.button+.button {
	margin-top: -1em;
}

.button:link, .button:visited {
	background-color: white;
	color: var(--theme-color);
}

.button:hover, .button:active {
	background-color: var(--theme-color);
	color: white;
}

footer {
	position: sticky;
	bottom: 0;
	height: var(--footer-height);
	max-width: 100dvw;
}

footer p, figcaption {
	font-size: var(--footer-text-size);
	line-height: 0.9;
	margin: 0;
	padding: var(--footer-text-margin) 3% 0% 3%;
	text-align: center;
}

footer p {
	color: white;
}

figcaption {
	color: gray;
}

@media only screen and (max-width: 350px) {
	div.capsule {
		width: 75dvw;
	}
	
	div.capsule p {
		font-size: 0.19in;
	}
	
	nav ul li a {
		font-size: 20dvw;
	}
	
	.button {
		padding: 0.15in 0.2in 0.15in 0.2in;
		width: 70%;
	}
}

@media (prefers-color-scheme: dark) {
	body {
		backdrop-filter: blur(8px) brightness(0.2);
	}
	
	div.capsule {
		background-color: var(--bg-primary-dark);
	}
	
	div.capsule p {
		color: var(--text-primary-dark);
	}
	
	.button {
		box-shadow: 0 0.1em 0.2em 0 rgba(0, 0, 0, 1);
	}
	
	.button:link, .button:visited {
		background-color: var(--button-color-dark);
		color: var(--theme-color);
	}
	
	.button:hover {
		background-color: var(--theme-color);
		color: var(--bg-primary-dark);
	}
	
	header, nav, nav ul, footer {
		background-color: var(--bg-primary-dark);
	}
	
	nav img {
		filter: brightness(0.7);
	}
	
	nav ul a {
		color: var(--theme-color);
	}
	
	nav ul a:hover {
		color: var(--bg-primary-dark);
		background-color: var(--button-color-dark);
	}
	
	.bar1, .bar2, .bar3 {
		background-color: var(--text-primary-dark);
	}
	
	footer p {
		color: var(--footer-text-color);
	}
}

