*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  background: url(../background.avif) no-repeat center center fixed;
  background-size: cover;
  min-width: 360px;
}


@font-face {
  font-family: "Lombardic";
  src: url(../Lombardic.woff2) format("woff2");
}

main {
  position: relative;
  container-type: inline-size; 
  visibility: visible;  
  height: auto; 
  margin: 0 auto;
  width: 100%;
  max-width: 1600px;
}


#wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: auto;
	margin: 2cqh auto -5% auto;
	padding: 4em 8em 6em 4em;
}

table {
	width: 95%;
	margin: 10cqh auto;
	font-family: Merriweather Sans, Arial, sans-serif;
	font-size: 1.1cqw;  /* controls font size scalable base */
}

.itemTitle {
	font-family: Merriweather Sans, Arial, sans-serif;	
	font-size: 170%;
	line-height: 2em;
	padding-left: 2%;
	margin-top: .75em;	
	font-style: italic;
	text-align: left;
	word-spacing: .2em;
	color: #6a4621;
	
	  animation: glow 2s linear 1s;	
	  animation-delay: .5s;
	  animation-duration: 2s;
	  animation-fill-mode: backwards;
	  animation-timing-function: ease-in-out;
	  
	  text-shadow: 
		  1px 3px 5px rgba(0,0,0,0.3), 
          0px -2px 10px rgba(255,255,255,0.3),
		  0px 0px 4px #FFFFFF,
		  18px -8px 30px #ca9052,
		 -18px 8px 30px #b67938,
		 -14px 3px 30px #ca9052,
		  14px -3px 30px #ca9052,
		  16px 8px 30px #8e5e2c, 
		 -18px -8px 30px #6b4721,
		 -16px -4px 30px #ca9052;		 
	}
	
	@keyframes glow {
		0% {
			color: #fead00;
			text-shadow: 0 0 2px #fead00, 0 0 5px #fead00, 0 0 10px #fead00, 0 0 20px #fead00, 0 0 40px #fead00;
		}
		20% {
			text-shadow: 0 0 2px #f39209, 0 0 5px #f39209, 0 0 10px #f39209, 0 0 20px #f39209, 0 0 40px #f39209;
		}			
		50% {
			color: #904d1c;
			text-shadow: 0 0 2px #f0680e, 0 0 5px #f0680e, 0 0 10px #f0680e, 0 0 20px #f0680e, 0 0 40px #f0680e;
		}		
		100% {
			text-shadow: 
		  1px 3px 5px rgba(0,0,0,0.3), 
          0px -2px 10px rgba(255,255,255,0.3),
		  0px 0px 4px #FFFFFF,
		  18px -8px 30px #ca9052,
		 -18px 8px 30px #b67938,
		 -14px 3px 30px #ca9052,
		  14px -3px 30px #ca9052,
		  16px 8px 30px #8e5e2c, 
		 -18px -8px 30px #6b4721,
		 -16px -4px 30px #ca9052;
		}
	}

	.fadein {
		display: inline-block;
		opacity: 0;
		filter: blur(4px);
		animation: fade-in 0.8s 0.1s forwards cubic-bezier(0.11, 0, 0.5, 0);
	}

	@keyframes fade-in {
		100% {
		  opacity: 1;
		  filter: blur(0);
		}
	}

.tl {
    position: relative;
    display: inline-block;
	padding-left: 3px;
}

.tl img {
	width: 1.5cqw;
	max-width: 17px;
}

.cont {
    position: relative;
    display: inline-block;
}

.tx {
    display: none;
    position: absolute;
	width: 440px;
    top: 12px;
    right: .1em;
    z-index: 1;
	padding-top: 24px;
	text-align: center; 
	font-size: 8pt; 
	font-weight: bold;
}

.parchmentchart {
  position: absolute;
  width: 444px;
  height: 290px;
  top: 1%;
  transform: translateZ(0);
  box-shadow: 1px 2px 10px black, 0 0 40px #8f5922 inset;
  border-radius: 20px;
  background: #fffef0;
  z-index: -1;
}

.ct {
    position: absolute;
	margin-top: 10px;
}

.ts {
    position: relative;
    margin-right: .5em;
	font-family: Merriweather Sans, Arial, sans-serif;
	font-size: 110%;
	font-kerning: none;
}

.move {
    position: relative;
	font-family: Merriweather Sans, Arial, sans-serif;
	font-size: 110%;
	font-kerning: none;
	color: black;
}

.ts::before	{
	content: "Historical VGood Value of";
	color: grey;
}	

	#navup {
	  position: absolute;
	  display: flex;
	  top: 5em;
	  right: 12%;
	  height: 4cqh;
	  z-index: 1;
	  align-items: center;
	}

	#navtext {
	  height: 2.6em;
	  padding: 1cqh 2cqw 0 .4cqw;
	}

	#navtext a {
	  font-family: Merriweather Sans, Arial, sans-serif; 
	  font-weight: 700;
  	  font-style: italic;
	  text-shadow: 
		  0px 0px 4px #FFFFFF, 
		  2px -2px 10px #ca9052, 
		 -2px 2px 10px #b67938, 
		  2px 2px 30px #8e5e2c, 
		 -2px 0px 30px #6b4721;
	  text-decoration: none;
	}
	
	.navtext a:hover {
	  color: yellow;
	 -webkit-text-stroke-width: 0px;
	  animation: animation-index .65s ease-in-out infinite alternate;
	}	
	
	#navmain {
	  padding: .4cqh 0 0 0;
	}
	
	#navmain a {
	  font-family: 'Lombardic', Arial; 
	  font-size: 225%;
	  color: #6b4721;
	  text-decoration: none;
	}
	
	#navmain a:hover {
	  color: yellow;
	 -webkit-text-stroke-width: 0px;
	  text-shadow: 
		0px 0px 4px #FFFFFF,
		2px 2px 9px #DDD6C3; 
	  animation: animation-index .65s ease-in-out infinite alternate;
	}		
	
	#mode {
	  padding-left: 2cqw;
	}
	
	#mode img {
	  width: 1.5em;
	  filter: drop-shadow(1px 1px 5px white);
	}
	
	#mode img:hover {	
      filter: drop-shadow(5px 5px 5px white)
		drop-shadow(-5px 5px 5px white)
		drop-shadow(5px -5px 5px white)
		drop-shadow(-5px -5px 5px white);
	}	

a {
	font-weight: 700;
	text-decoration: none;
}

	a:visited {
		text-decoration: none;
	}
	
.opaque {
	  opacity: .7;
}	

.highlight {
	color: yellow;		
	transition: all 0.2s ease-in-out 0s;
	animation: animation-index .65s ease-in-out infinite alternate;
}

img.tabledivider {
	width: 100%;
	content: url(./tabledivider.png);
	margin: .2em 0;	
	padding: 4px 0 6px 0;
	float: right;
}

.backtop {
	margin: 1em 0 .5em 0;
}

th {
	font-style: italic;
	font-size: 85%;
}
 
	/* header top row */
	th.estcen {
		padding: 0 0 .3% 3px;
		font-size: 80%;		
	}	
	
	/* header bottom row, per column positioning */
	th.c {
		text-align: left;
	}
	
	th.t {
		text-align: left;
		padding-left: .5%;
	}
	
	th.values {
		background-color: rgba(169,133,83,0.2);
		width: 5.2%;
	}
	
	th.change {
		padding-right: .4%;
	}	
	
td {
	font-weight: 300;	
	font-size: 85%;
	line-height: 1.8em;
	vertical-align: top;
	text-align: center;
}

td.text {
	text-align: left;
}

td:nth-child(5){
	padding-left: .5%;
}

td.values::before {
	content: "\24";
	font-family: "Times New Roman", Times, serif;
	font-size: 85%;
	opacity: .7;
	vertical-align: top;
}

td.change {
	padding-right: 1%;
}

td.updated {
	background-color: rgba(169,133,83,0.05);
}

.tooltip {
	display: none;
    position: relative;		
}

	.toolbox {
		display: grid;
		grid-template-columns: repeat(4, auto);
		align-items: center;
		position: absolute;
		width: 180px;
		height: 65px;
		padding: 10px 12px;
		top: 0%; left: 49.5%; transform: translate(-50%, 0);
		z-index: 2;
		color: black;
	}
	
	.prices {
		font-size: 9pt; 
		font-weight: bold;	
	}
	
	.countries {
		font-size: 8pt; 
		font-weight: normal;
	}	
	
	.prices, .countries {
		line-height: 20px;
	}

	.parchmenttool {
	  position: absolute;
	  width: 180px;
	  height: 65px;
	  top: 0%; left: 49.5%; transform: translate(-50%, 0);
	  box-shadow: 1px 2px 10px black, 0 0 20px #8f5922 inset;
	  border-radius: 20px;
	  background: #fffef0;
	  z-index: 1;
	}

/* shift to mobile device layout */
@media screen and (max-width: 580px) {
	
		#wrapper {
			background: #deddd3;
			margin: 1cqw;
			display: flex;
			flex-flow: row wrap; 
			width: 95%;
			margin-left: 2cqw;
			padding: 2em 1em 0em 1em;
		}

		#navup {
			top: 2em;
		}	
			
		#navtext a  {
			font-size: 60%;
			vertical-align: bottom;
		}	
		
		#navmain a  {
			font-size: 130%;
			padding-left: 0.3em;
		}	

		#mode img {	
			padding-left: 0.3em;
			padding-top: 0.2em;
		}
		
		.itemTitle {
			font-size: 70%;
			padding-left: 0;
		}

		.fadein {
			font-size: 130%;
		}	
			
		table {
			margin-top: 1.5em;
			font-size: 12px;	
			min-width: 100%;
			font-family: Arial;			
		}
				
		th, td {
			display: none;
		}	
		
		th.cen, th.updated {
			text-align: center;
			padding-left: 0;
		}		

		th:first-child, td:first-child {
			display:table-cell;
		}
		
		th:nth-child(2), td:nth-child(2) {
			display:table-cell;
		}
		
		th:nth-child(4), td:nth-child(4) {
			display:table-cell;
		}
		
		th.pu {
			padding: 0;
			text-align: center;
		}			
		
		th.estcen {
			display:none;
		}	

		td.updated {
			font-size: 70%;
		}		
		
		.backtop {
			display: none;
		}	
}	


/* disable parchment background on Firefox (it's slow) 
@supports (-moz-appearance:none) {
	#parchment {
		display: none;
	}

	#wrapper {
		box-shadow: 2px 3px 20px black, 0 0 80px #8a4d0f inset;
		margin: 3cqw 1cqw 1cqw 2cqw;
		width: 95%;
		padding: 2em 4em 5em 4em;		
	}	
}
*/

/* Firefox fixes */
@supports (-moz-appearance:none) {
	.parchmentchart {
		right: -1%;
	}
	
	#navup {
	  right: 10%;
	}
}

@media screen and (max-width: 580px) {
	
	#navup {
	  right: 8%;
	}	
}
