
/* body */

@font-face {
	font-family: Maiandra;
		src:	url('/graphics/MaiandraGD.woff2') format('woff2'), 
					url('/graphics/MaiandraGD.woff') format('woff');
		font-weight: normal;
		font-style: normal;
		font-display: swap;
}

html,
body {
	height: 100vh;
	height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;

  font-family: Arial, sans-serif;

  margin: 0;
	min-width: 880px;

  background: url('/images/lotus.png');
  background-blend-mode: screen;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* header */

header {
	position: sticky;
	top: 0;
	left: 0;
  z-index: 1;

	display: grid;
	grid-template-columns: auto 640px auto;
	justify-content: center;

	color: #004646;
  background-color: #D7D7F4;

  overflow: hidden;
  isolation: isolate;
}

header::before {
  content: "";

  position: absolute;
  top: 0;
  bottom: 0;

  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 620px;

  z-index: -1;

  background-image: url('/images/header-lotus.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.5;

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 50%,
    black 50%,
    transparent 100%
  );
  mask-repeat: no-repeat;
  mask-position: center;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 50%,
    black 50%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;

  transition: all 0.5s;
}

.logo-header {
	display: grid;
	grid-template-columns: 220px 100px 220px;
	
  justify-content: center;

  transition: all 0.5s;
}

.logo-box {
	display: flex;
	justify-content: center;
}

.logo-image {
	width: 100%;

  margin-top: 12px;
  margin-bottom: 12px;

  transition: all 0.5s;
}

.header-text {
	font-family: Maiandra;
	font-size: 1.2em;
	font-weight: bold;

	text-align: center;
  align-content: center;

  color: #420042;

  transition: all 0.5s;
}

/* navigation menu */

nav {
	position: sticky;
	display: flex;

  align-items: center;
	justify-content: center;
	text-align: bottom;

	font-weight: bold;
  background-color: #D7D7F4;
}

nav ul {
	list-style: none;
	display: flex;
	
	margin-top: 3px;
  margin-bottom: 3px;

  padding: 0;
}

nav ul li {
	margin-left: 10px;
	margin-right: 10px;
}

nav ul li a {
	text-decoration: none;
	font-size: 0.9em;
}

nav ul li a:hover {
	text-decoration: underline;
}

/* sections */

.section-container {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
      
  scrollbar-color: #006464 #D7D7F4;
}

section {
  min-width: 240px;
	position: sticky;
	padding: 10px 10px;

	text-align: center;
	font-size: 1em;

  background-blend-mode: screen;
}

.section-odd {
  background-color: rgba(230, 241, 240, 0.9);
	color: #370137;
}

.section-even {
  background-color: rgba(235, 235, 250, 0.9);
	color: #003737;
}

.section-special {
  background-color: rgba(236, 234, 229, 0.9);
	color: #003737;
}

/* footer */

footer {
	position: sticky;
	bottom: 0;
	left: 0;
	width: 100%;

  display: grid;
  grid-template-columns: 60% 40%;

	align-items: center;

  /* background-color: #D7D7F4; */
	background-image: linear-gradient(to top, #D7D7F4, #F0F0FF);

	color: #004646;
	font-size: 1em;
}

.footer-links {
	text-align: left;
  margin-left: 12px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.footer-icons {
	text-align: right;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-right: 8px;
}

.footer-p {
  vertical-align: middle;
	display: inline;
  font-weight: bold;
  font-size: 0.8em;
  padding-right: 10px;
}

.footer-c {
	padding: 5px 10px 5px 5px;
	display: inline;
	font-family: Maiandra;
  font-size: 0.9em;
}

.footer-icon {
  width: 24px;
  height: 24px; 
  vertical-align: middle;
  padding-left: 4px;
  padding-right: 4px;
}

.jump-top-button {
  position: absolute;
	width: 32px;
	height: 32px;
	
	background-color: #D7D7F4;
	border: none;
	border-radius: 6px;
	
  box-shadow: 0 8px 24px rgba(0,0,0,0.24);

	cursor: pointer;
	
	display: none;
	align-items: center;
	justify-content: center;

  padding-top: 6px;
}

.jump-top-button::before {
	font-size: 12px;
	color: #333; /* dark-gray X */
}

/* links */

a:link { /* unvisited */
	color: #004646;
  text-decoration: none;
}
a:visited { /* visited */
	color: #004646;
  text-decoration: none;
}
a:hover {	/* mouse over */
	color: #004646;
  text-decoration: underline;
}
a:active { /* selected */
	color: #004646;
  text-decoration: none;
}

.link-button {
  background: none;
  border: none;
  color: #004646;
  cursor: pointer;
  font: inherit;
	font-size: 0.9em;
  padding: 0;
}

.link-button:hover {
  text-decoration: underline;
}
