@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500&display=swap');

:root {
  font-family: Hind, sans-serif;
  font-size: 2vmin;
  font-weight: 300;
  color: rgb(67, 81, 82);
  letter-spacing: 0.04em;
}

* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0 3vw;
  
  --accent-color: #f7941e;
  
  background-image: url('img/bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-attachment: fixed;
  
  -webkit-transition: background-image 400ms ease-in-out;
  transition: background-image 400ms ease-in-out;
}

header {  
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 2.7em 3vw 0.7em;
  
  background: white;
  box-shadow: 0 0.1em 1.2em rgba(67, 81, 82, 0.75);
  
  z-index: 2;
}

header .main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

header h1 {
  text-align: center;
  
  position: relative;
  z-index: 1;
  margin-right: 1em;
}

header h1 img {
  width: 9em;
}

header .loginInfo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  
  position: fixed;
  left: 0em;
  right: 0em;
  top: 0em;
  padding: 0.1em 1em;
  
  z-index: 3;
  
  background-color: #333333;
  color: #efefef;
  
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.6);
}

header .loginInfo button {
  margin-left: 2em;
}

#mainnav {
  font-size: 125%;
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
}

#mainnav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  
  padding: 0;
  margin: 0;
}

#mainnav ul li {
  display: block;
  white-space: nowrap;
  margin: 0.1em 0.6em;
}

#mainnav ul li:first-child {
  display: none;
}

#sidenav {
  display: flex;
  justify-content: center;
  width: 17em;
  margin-top: 0;
  position: fixed;
}

#sidenav ul {
  display: block;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

#sidenav ul li {
  display: block;
  
  padding: 0;
  margin: 0;
  
  font-size: 0;
  color: transparent;
  
  overflow: hidden;
}

#sidenav ul li + li a {
  margin-top: 0.5rem;
}

#sidenav ul li a {
  display: block;
  
  width: 0.7rem;
  height: 0.7rem;
  
  border-radius: 100%;
  
  background-color: #7a8f8f;
}

#sidenav ul li a:hover {
  background-color: #0a6758;
}

#sidenav ul li a.active {
  background-color: var(--accent-color);
}

#sidenav ul li a[href*="?page="] {
  display: none;  
}

main {
  display: flex;
  overflow: hidden;
  
  margin-top: 16em;
  margin-left: 16.5em;
}

#content {
  flex-grow: 1;
  flex-shrink: 1;
  overflow: hidden;
  
  line-height: 1.3em;
}

#content .page {
  display: flex;
  
  position: relative;
  
  max-width: 100%;
  min-height: calc(100vh - 12em);
  
  padding-bottom: 5em;
}

#content .page:last-child {
  min-height: calc(100vh - 16em);
}

#content .page > * {
  flex-basis: 50%;
}

#content .page > .picture {
  margin-right: 5em;
  flex-basis: 40%;
}

#content .page > .picture img {
  position: fixed;
  left: -100vw;
  top: 16em;
  width: 30vw;
  
  border: 0.1em solid var(--accent-color);
  transition: border-color ease-in-out 400ms, opacity ease-in-out 400ms;
}

#content .page > .anchor {
  flex-basis: 0%;
  position: relative;
  top: calc(-3vh - 14.5em);
}

#content .page > .intersectionHelper {
  position: absolute;
  width: 100%;
  top: 0;
  height: calc(100vh - 16em);
  
  pointer-events: none;
  
  z-index: -1;
}

#content .page > .intersectionHelper.bottom {
  top: unset;
  bottom: 0;
}

#content .page ul {
  list-style-type: none;
  padding-left: 0;
}

#content .page ul li {
  position: relative;
  padding-left: 1em;
}

#content .page ul li:before {
  content: '·';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #0a6758;
}

a.active {
  color: var(--accent-color);
}

a[disabled] {
  pointer-events: none;
  opacity: 0.2;
}

h1, h2, h3 {
  font-weight: 500;
  margin: 0;
  color: var(--accent-color);
}

h2 {
  font-size: 125%;
}

h4, h5 {
  font-weight: 500;
}

p {
  margin: 1em 0;
}

em, .em {
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--accent-color);
}

address {
  font-style: unset;
}

button {
  background-color: var(--accent-color);
  color: #ffffff;
  
  border: none;
  border-radius: 0.3em;
  
  font-family: inherit;
  font-size: inherit;
  
  padding: 0.2em 1em;
  line-height: unset;
  
  cursor: pointer;
}