/* --------- Variable ---------- */

:root{
--green : rgb(0, 100, 61);
--yellow: rgb(251, 244, 190);
--grey: rgb(18, 18, 18);
--titlefont: "Monaco", monospace;
--textfont: "Marr", sans-serif;
--textsizeweb : 1em;
}

body.web{
	font-size: 20px;
}

body.web .layout {
  display: flex;
}

body.home a::after, body.web a::after{
  content: "";
}

body.web header {
	padding: 10px 10px 10px 20px;
	margin-bottom: 50px;
	width: 18%;
	position: sticky; 
	left: 0;
/*	top: 470px;*/
	top:20px;
	height: calc(100vh - 40px);
	overflow-y: scroll;
}


body.web header h1{
	font-size: 1.2em;
}

body.web #toc{
	font-size: 1em;
	margin-top: 20px;
}

body.web #toc #toc-heading{
	border-bottom: 1px solid var(--green);
	color: var(--green);
	margin-bottom: 20px;
}

body.web #toc li{
	list-style: none;
	margin-bottom: 10px;
	text-align: left;
	font-size: 16px;
	hyphens: none;
}

body.web #toc li a{
	color: var(--green);
	text-decoration: none;
}

body.web #toc li a:hover{
	text-decoration: underline;
}

body.web #toc li a.active {
  text-decoration: underline;
}

body.web .cover {
	position: relative;
	height: 50vh;
	width: 100%;
	top:-21px;
	overflow: hidden;
}

body.web .cover figure{
	width: 100%;
	height: 50vh;
	top: 0;
	left:0;
	overflow: hidden;
}

body.web .cover h2{
	top: 20px;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	position: relative;
}

body.web .cover h2 span{
	position: relative;
	left:0 !important;
}

body.web .cover h1{
	position: relative;
	transform: none;
	width: 70%;
	min-width: 500px;
	margin: auto;
	top:50%;
	transform: translateY(-70%);
	left:0;
}


body.web main{
	max-width: 680px;
	margin:auto;
	margin-top: 20px;
	flex-grow: 1;
	width: 100%;
}

body.web main .chapter {
	margin-bottom: 50px;
	padding-bottom: 50px;
	border-bottom: 1px solid var(--green);
}

body.web main .logbook-content p, 
body.web main .story-content p,
body.web .content p,
body.web main .logbook-content li, 
body.web main .story-content li,
body.web .content li{
	font-size: var(--textsizeweb);
}

body.web .logbook figure{
	width: 100%;
}

body.web figcaption p, body.web figcaption{
	font-size: 15px !important;
}

body.web .chapter{
	margin-top: 0;
}

body.web .chapter .content{
	margin-top: 0;
}

body.web .chapter .content h2:first-child{
	margin-top: 48px;
}

body.web .logbook h2{
	font-size: 1.5em;
	margin-top: 40px;
	border-top: 1px dotted #000;
	padding-top: 40px;
	line-height: 1.3;
}

body.web .burger-menu {
  position: fixed;
  top: 0px;
  left: 0px;
  border: none;
  font-size: 30px;
/*  border-radius: 10px;*/
  padding: 0px 6px 6px;
  background-color: var(--green);
  color: white;
  cursor: pointer;
  z-index: 1100;
  display: none;
}

/* --------- Responsive Styles ---------- */
@media only screen and (max-width: 1080px) {
  body.web .layout {
    display: block;
  }

  body.web .cover{
  	top: 48px;
  	height: 45vh;
  }

	body.web .cover figure{
		height: 45vh;
	}

	body.web .cover h1{
  	font-size: 40px;
  	width: 97%;
  	min-width: 0;
  	line-height: 2.3;
  	transform: none;
  	top: 10px;
  }

  body.web .cover h2{
  	font-size: 20px;
  	top:0px;
  }

	body.web .burger-menu {
		display: block;
	}

  body.web header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 30px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px;
    background-color: var(--green);
  	color: white;
  	z-index: 1000;
  }

  body.web header h1{
  	font-size: 15px;
  	text-align: center;
  	color: #FFF;
  	width: calc(100% - 80px);
  	padding-left: 40px;
  	padding-right: 40px;
  }

  body.web #toc.open {
    transform: translateX(0);
    transition: transform 0.5s ease;
/*    display: block;*/
  }

  body.web #toc {
/*    display: none;*/
    position: fixed;
    top:25px;
    left:0;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    height: calc(100vh - 40px) !important;
    padding: 20px !important;
		background-color: #FFF;
    z-index: 1000;
  }

  body.web main {
  	margin-top: 80px;
    padding: 0px 20px;
    width: calc(100% - 40px);
  }
  
  body.web main .logbook-content p, 
  body.web main .story-content p, 
  body.web .content p, 
  body.web main .logbook-content li, 
  body.web main .story-content li, 
  body.web .content li{
  	font-size: 0.85em;
  }

  body.web .content h2{
  	font-size: 25px;
  } 

  .chapter .content h3{
  	font-size: 20px;
  }
}

@media only screen and (max-width: 768px) {
	
	body.web header h1{
  	font-size: 12px;
  }

  body.web .cover h1{
  	font-size: 20px;
  	line-height: 2.7;
  }

  body.web .cover h2{
  	font-size: 13px;
  }

}








