* {
	box-sizing: border-box;	
}

html, body {
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	position: relative;
	font-size: 16px;
}
html {
  scroll-behavior: smooth;
}
#map {
	height: 100%;
	width: 100%;
}

.material-symbols-outlined{
    display: inline-flex;
    vertical-align: middle;
}

/* --- MENU ---- */
#menu {
	height: 40px;
	display: inline-block;
	background-color: #ffffff;
	font-family: 'Roboto', sans-serif;
	font-size: 1em;
	color: #666666;
	padding: 10px;
	position: absolute;
	left: -5px;
	top: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	z-index: 0;
	cursor: pointer;
}


#menu-title {
	width: 60px;
	display: inline-block;
}

#menu-items {
	left: -5px;
	top: 80px;
	position: absolute;
	display: inline-block;
}


.menu-item {
	background-color: #ffffff;
	font-family: 'Roboto', sans-serif;
	font-size: 1em;
	color: #666666;
	padding: 6px;
	padding-left: 16px;
	padding-right: 16px;
	border-radius: 10px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	z-index: 0;
	cursor: pointer;
	width: fit-content;
	display: none;
	margin-bottom: 8px;
}
	
.menu-item a {
	color: #FFFFFF;
	text-decoration: none;
}

.menu-item:hover {
	box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.4);
}
#kofi
{
	background-color: #29abe0;
	color: #FFFFFF;
}

/* --- LOSSE ELEMENTEN --- */
#jaarweergave {
	position: absolute;
	top: 12px;
	left: 80px;
	font-size: 3em;
	font-family: 'Roboto', serif;
	font-weight: bold;
	color: #333333;
	padding: 5px;
	text-shadow: -1px 1px 0 #fff, 1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff;	
}
#mapoverlay /* Basis voor de knoppen onderaan de map, inclusief pull-up */
{
	width: 65%;
	height: 1px;
	position: absolute;
	left: 0px;
	bottom: 0px;
}
#audio_tts {
	position: relative;
	bottom: 100px;
	left: 100px;
}
#settingbuttons {	
	position: absolute;
	margin: auto;
	bottom: 12px;
	left: 0px;
	right: 0px;
	text-align: center;
	color: #666666;
	width: fit-content;	
	cursor: pointer;
	border-radius: 10px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);	
	background-color: #ffffff;	
	padding: 10px;
	font-size: 1em;
	line-height: 1em;
	height: 40px;
	transition: 2s;
	font-family: 'Roboto', sans-serif;
}
#ttsToggle {
	color: #da1f1a;
	font-size: 24px;
	vertical-align: middle;
}
#ttsToggle_wrapper {
    display: inline-block;
	transform: scaleX(-1);
}


/* --- LEGENDA ---- */

#legenda {
	position: absolute;
	top: 60px;
	left: 80px;
	font-size: 0.8em;
	font-family: 'Roboto', sans-serif;
	color: #111111;
	line-height: 8px;
	padding: 5px;
	line-height: 30px;
	text-shadow: -1px 1px 0 #fff, 1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff;	
	list-style-type: none;
	margin: 0px;
}

.legenda_item {
	display: none;
	height: 18px;
}

.legenda_naam {
	display: inline;
}

.legenda_afkorting {
	display: none;
}


/* ---------TIMELINE-------------*/

#timeline {
	width: 36%;
	height: 100%;
	padding: 5px;
	margin: 0px;
	overflow: auto;
	position: absolute;
	right: 0px;
	top: 0px;
	list-style-type: none;
}

#show_line
{
	position: absolute;
	right: 36%;
	top: calc(30% + 30px);
	color: #FF0000;
}

#timeline li {
	list-style-type: none;
	display: block;
	font-family: 'Roboto', sans-serif;
	line-height: 1.5;
	font-size: 1em;
	padding: 10px;
	margin-top: 12px;
	border-radius: 10px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	transition: 0.3s;
	position: relative;		
	backdrop-filter: blur(15px) brightness(120%);
	padding-bottom: 10px;

}

.timeline_era {
	color: #FFFFFF;
}
.timeline_era h1, #timeline_footer h1 {
	font-size: 1.3em;
	font-family: 'Roboto Slab', serif;
}
	
.timeline_era .backtotop {
	position: absolute;
	right: 10px;
	top: 10px;
	color: #FFFFFF;
	cursor: pointer;
}
.timeline_era p {
	font-style: italic;
}

#timeline .title {
	font-size: 2em;
	font-family: 'Roboto Slab', serif;	
	font-weight: bold;
	margin-top: 10px;
	margin-bottom: 10px;
	cursor: pointer;
}
.timeline_item h2 {
	font-size: 1.1em;
	font-family: 'Roboto Slab', serif;
	font-weight: 900;
	margin-bottom: 5px;
}

#timeline_profile {
	background-color: #EB5202;
	color: #ffffff;
}
#timeline_profile a {
	color: #ffffff;
}
#timeline_header, #timeline_footer {
	background-color: #333333;
	color: #ffffff;
}
#timeline_header {
	position: relative;
}
#timeline_header a {
	color: #FFFFFF;
}
#timeline_header .eralink
{
	display: inline-block;
	border-radius: 10px;
	color: #FFFFFF;
	padding: 4px;
	margin: 4px;
	box-shadow: 0 0px 2px 0 rgba(255, 255, 255, 0.4);
}
#timeline_header .eralink:hover {
	cursor: pointer;
}

#timeline_header #grootscherm {
	display: inline;
}
#timeline_header .kleinscherm {
	display: none;
}

#kofi-desc
{
	font-size: 12px;
	font-style: italic;
}

.timeline_item {
	background-color: rgba(255, 255, 255, .4);
	color: #000000;	
	border: 0px solid;
	cursor: pointer;
	text-rendering: optimizeLegibility;
	font-weight: 400;
	color: #333333;
}
.timeline_item[data-active="1"] {
	background-color: rgba(255, 255, 255, 1);
	box-shadow: 0 8px 16px 0 rgba(255, 0, 0, 0.1);
}
.timeline_item:hover {
	box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.8);
}

.timeline_item img {
	display: none;
	max-width: 100%;
}


#timeline_footer #initall {
	background-color: #ffffff;
	color: #333333;
	padding: 5px;
	width: 200px;
	height: 30px;
	box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4);
	border-radius: 10px;
	margin-bottom: 10px;
	cursor: pointer;
	transition: 0.3s;
}

#timeline_footer #initall:hover {
	background-color: #0964f7;
	color: #FFFFFF;
}
#timeline_footer #disclaimer {
	font-size: 0.8em;
	line-height: 0.8em;
}
.progressbar {
  position: absolute;
  bottom: 5px;
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
  background-color: #ffffff;
  display: none;
  height: 1px;
}
.progressbar .progress {
  width: 1%;
  height: 100%;
  background-color: #666666;
}


/* ------- JAARBALK ---------------*/

#jaarstats
{
	position: absolute; 
	left: 0%;
	top: 0px;
	font-family: 'Roboto', sans-serif;
	font-size: 0.8em;
	color: #333333;
	background-color: rgba(255, 255,255, .3);	
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	height: 100%;
	width: 60px;
	padding: 0px;
	padding-top: 80px;
	text-align: center;
	list-style-type: none;
	margin: 0px;
	backdrop-filter: blur(20px);
}
#jaarstats .jaarbalkcontainer_leeg, #jaarstats .jaarbalkcontainer
{
	width: 100%;
	margin: 0px;
	padding: 0px;
}
#jaarstats .jaarbalkcontainer
{
	cursor: pointer;
	position: relative;
}
#jaarstats .jaarbalkcontainer[data-active="1"], #jaarstats .jaarbalkcontainer[data-hovered="1"]
{
	background-color: rgba(255, 0, 0, 1);
}

#jaarstats .jaarbalk
{
	position:relative;
	height: 100%;
	width: 1px;
	margin-left:0;
	margin-right:auto;	
	border-radius: 2px;
	pointer-events: none;
	background-color: #FFFFFF;
}
#jaarstats .jaarbalkcontainer[data-active="1"] .jaarbalk, #jaarstats .jaarbalkcontainer[data-hovered="1"] .jaarbalk
{
	background-color: #0964f7;
}

@media only screen and (max-height: 500px) {
	#jaarstats
	{
		display: none;
	}
}


/* -----WINDOWS (VANUIT MENU)-------*/

.window {
	
	font-weight: 400;	
	font-family: 'Roboto', sans-serif;
	line-height: 1.5;
	font-size: 1em;
	color: #ffffff;
	text-rendering: optimizeLegibility;
	
	background-color: rgba(51, 51, 51, 0.6);
	backdrop-filter: blur(20px);
	border-radius: 10px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	transition: 0.3s;
	width: 70%;
	height: 70%;
	position: absolute;
	top: 15%;
	left: 15%;
	display: none;
	z-index: 9;
}

.window .close-button {
	position: absolute;
	top: 10px;
	right: 25px;
	font-size: 1.5em;
	cursor: pointer;
}

.window-content {
	position: absolute;
	height: 100%;
	overflow: auto;
	width: 100%;
	padding: 20px;
}

.window a {
	color: #ffffff;
	text-decoration: underline;
}

.window-content textarea, input {
	font-family: 'Roboto', sans-serif;
	font-size: 1em;
	color: #4C91E8;
	border-radius: 10px;
	border: 0px;
	background-color: #FFFFFF;
	padding: 5px;
}
.window-content textarea {
	height: 100px;	
	width: 80%;
}
.window-content input {
	width: 40%;
}
.window-content input[type=submit] {
	font-weight: bold;
	background-color: #4C91E8;
	color: #ffffff;
}
.window-content input[type=submit]:disabled {
	background-color: #404040;
	color: #7a7a7a;
}

/* ------- EN NU VOOR MOBIEL ------- */
@media only screen and (max-width: 800px) {
	
	/* ----- MENU --------- */
	#menu
	{
		height: 48px;
		line-height: 30px;
		min-width: 48px;
		padding-left: 18px;
	}
	.menu-item
	{
		height: 48px;
		line-height: 30px;
	}
	/* ---- LOSSE ELEMENTEN ------ */
	#mapoverlay {
		width: 100%;
		bottom: 30%;
		height: 50px;
	}
	
	#settingbuttons {
		padding: 5px;
		display: block;
		right: 5px;
		left: auto;
		bottom: auto;
	}
	.settingText {
		font-family: 'Roboto', sans-serif;
		cursor: pointer;
	}
	.settingDesc {
		display: none;
	}
	
	/* -------- LEGENDA ------------- */
	.legenda_naam {
		display: none;
	}
	.legenda_afkorting {
		display: inline;
	}
	#legenda {
		top: 80px;
		left: 10px;
	}
	#jaarweergave {		
		top: 10px;
		left: 50px;
	}

	/* -------- TIMELINE-------------*/	
	#timeline {
		height: 30%;
		width: 100%;
		bottom: 0px;
		left: 0px;
		top: auto;
		right: auto;
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 0px;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	#show_line
	{
	display: none;
	}
	#timeline li {
		height: 100%;
		width: 80%;
		margin-right: 10px;
		margin-top: 0px;
		margin-bottom: 0px;
		overflow-y: auto;
		flex: 0 0 auto;
		min-height: 100%;
	}
	#timeline #timeline_header, #timeline #timeline_footer {		
		width: 80%;		
	}
	#timeline li .title {
		font-size: 1.2em;
	}
	#timeline_header #grootscherm {
		display: none;
	}
	#timeline_header .kleinscherm {
		display: inline;
	}
	.timeline_era .backtotop {
		transform: rotate(-90deg);
	}
	
	.timeline_era h1, #timeline_footer h1, .timeline_item h2, .title  {
		  font-size: 1em;
		  margin: 0px;
		  margin-top: 0px;
		  margin-block: 0px;
		  padding: 0px;
		  padding-bottom: 10px;
		  vertical-align: top;
		  font-weight: bold;
		  line-height: 0.9em;
	}
	
	.timeline_era h1, #timeline_footer h1 {
		margin-top: 4px;
	}
	
	.timeline_era p, .timeline_item .beschrijving_container
	{
		  overflow-y: auto;
		  font-size: 0.8em;
			margin: 0;
	
	}
	#timeline_header .beschrijving_container, #timeline_footer .beschrijving_container
	{
		  overflow: auto;
		  font-size: 0.8em;
		  margin: 0;				
	}
	.progressbar {
	  top: 5px;
	}

	
	
	/* -------- JAARBALK ---------*/
	#jaarstats
	{
		left: 0px; 
		right: 0px;
		top: auto; 
		bottom: 20%;
		height: 40px; 
		text-align: left; 
		width: 100%;
		padding-top: 0px; 
		display: none;  /* TIJDELIJK VERBORGEN */
	}
	#jaarstats #jaarkop-begin
	{
		position: absolute;
		left: 5px;
		top: 5px;
		pointer-events: none;
	}
	#jaarstats #jaarkop-eind
	{
		position: absolute;
		right: 5px;
		top: 5px;
		pointer-events: none;
	}	
	#jaarstats .jaarkop-tussen
	{
		display: none;
	}
	#jaarstats .jaarbalkcontainer_leeg, #jaarstats .jaarbalkcontainer
	{
		height: 100%; 
		width: max-content;
		display: table-cell; 
		vertical-align: bottom; 
	}
	#jaarstats .jaartal
	{
		left: -30px; 
		top: -20px; 
	}
	#jaarstats .jaarbalk
	{
		
		height: 1px;
		width: 1px;
		margin-left: 0;
		margin-right:0;			
		margin-top:auto; 
		margin-bottom:0; 
		width: calc(100vw / 200);
		display: table-cell;
	}
	
	/* ------- WINDOWS -------- */
	.window {
		width: 90%;
		height: 80%;
		top: 10%;
		left: 5%;
		overflow: auto;
	}
}