@font-face {
    font-family: sans-serif;
    src: local("Trebuchet MS")
}

html {
	scroll-behavior: smooth;
}

body { 
	margin: 0;
	padding: 0;
	background: linear-gradient(to bottom, #000000, #1d1914, #1d1914);
	background-attachment: fixed;
	color: rgba(157, 149, 131, 0.4);
	font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

* { 
	box-sizing: border-box;
	scrollbar-color: rgba(157, 149, 131, 0.4) #1d1914;
}

*::-webkit-scrollbar { width: 15px; }
*::-webkit-scrollbar-track { background: #1d1914; }
*::-webkit-scrollbar-thumb { background-color: rgba(157, 149, 131, 0.4); border: transparent; }

img { max-width: 100% }

nav {
	display: flex;
	flex-wrap: wrap;
	text-align: right;
	justify-content: flex-end;
	margin-bottom: 2rem;
}

.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-content {
  display: none;
  position: absolute;
  z-index: 1;
  background: black;
  font-family: inherit;
  position: absolute;
  top: calc(100% - 0.5rem)
}

.dropdown-content a {
  float: none;
  display: block;
  font-size: 20px;
  white-space: nowrap;
}

.dropbtn:hover {
  background-color: rgba(157, 149, 131, 0.4);
  color: #9d9583;
}


.dropdown:hover .dropdown-content {
  display: block;
}

main {
	margin: 10px auto;
	max-width: 60rem;
}

section {
	margin: 2em auto;
	padding: 1em 2em;
	background: rgba(90, 84, 71,0.2);
	box-shadow: 0 6px 8px black, 0 15px 20px #110f0c;
	outline-offset: 0px;
	max-width: calc(100% - 10px);
}


 nav a, .up a {
	color: rgba(157, 149, 131, 0.4);
	display: block;
	border: 3px rgba(90, 84, 71,0.3) solid;
	margin: 10px;
	padding: 2px 5px 2px 50px;
	text-decoration: none;
	font-size: 30px;
	background-color: rgb(0,0,0,0);
	font-weight: 400;
	font-family: trebuchet ms;
}

hr {
	border: none;
	border-top: 1px solid rgba(204, 194, 170, 0.4);
}

header {
	flex-direction: column;
	font-size: 50px;
	margin: 10px;
	display: flex;
	justify-content: space-between;
	font-weight: normal;
	color: rgba(157, 149, 131, 0.4);
	max-width: calc(100% - 20px);
}


h1, h2, h3, h4, h5, h6, p, table, details, cite, pre, blockquote {
	margin: 0.7rem 0;
}

h1, h2, h3, h4, h5, h6, dl {
	font-family: 'trebuchet ms'; 
	font-weight: bold;
	font-style: italic;
	text-transform: uppercase;
}

h1, h2, h3, h4, h5, h6 {
	text-shadow: 0px 3px 2px #110f0c;
}

a { color: rgba(204, 194, 170, 0.4); padding: 2px 4px; font-weight: bold;
	
}

ul, ol {
	margin: 1rem 0 1rem 1.5rem;
}

dl { margin: 1rem 0; }

dt { 
	background: linear-gradient(to right, rgba(238, 222, 184, 0.4) 40%, rgba(53, 47, 35, 0));
	padding: 0.5rem 0.7rem;
	color: #1d1914;
	margin: 0.5rem 0rem;
}

dd { padding: 1rem; }

ul ul, ol ol { 
	margin: 0 0 0 2rem;
}

p, table,  ul, ol, dl {
	font-size: 1rem;
	line-height: 1.5;
}

a:hover, .dropdown-content a:hover { 
	background-color: rgba(157, 149, 131, 0.4);
	color:#1d1914;
}

a:visited {
	color: rgba(157, 149, 131, 0.4);
}

h6 { font-size: 1em; }
h5 { font-size: 1.25em; }
h4 { font-size: 1.5em; }
h3 { font-size: 2em; }
h2 { font-size: 3em; }
h1 { font-size: 4.2em; text-align: center; }

blockquote {
	border-left: rgba(157, 149, 131, 0.4) 3px solid;
	padding: 0 1rem;
}

cite { 
	display: block;
	text-align: right;
}

code, pre {
	background-color: rgba(204, 194, 170, 0.4);
	color: rgba(29, 25, 20, 0);
}

details { border: 1px solid; }

details, pre {
	padding: 1em;
}

pre { overflow-x: auto; }

details p { margin: 0.5rem 0 0 2rem; }

table {	border: 3px solid rgba(204, 194, 170, 0.4); margin: 1rem auto; }
tr, td, th { border: 1px solid rgba(204, 194, 170, 0.4); }
td, th { padding: 0.5rem }

figure {  display: table; margin: 0rem 1rem; }

figure img { margin: 5px auto; width: calc(10em + 10vw);}

.o img{
	opacity: 0.4;
}
.o.big img{
	width: calc(10em + 20vw);
	min-width: 30em;
}

figcaption { 
	display: table-caption;
    caption-side: bottom;
    text-align: center;
}

footer { 
	font-size: 0.8em;
	text-align: center; 
	padding: 100px;
	margin: 2rem;
}

.up { position: sticky;
	bottom: 10px; right: 10px; width: fit-content; float: right; }

.flex-box {
    display:flex;
    flex-wrap:wrap;
    margin: 0 auto;
	padding: 0;
	align-items: flex-start;
}

.flex-box section {
	margin: 1em;
	}

.full { flex: 1 1 100%;}
.half { flex: 1 1 calc(50% - 2em); }
.third { flex: 1 1 calc(33% - 2em); }
.twothird { flex: 1 1 calc(66% - 2em); }
.quarter { flex: 1 1 calc(25% - 2em); }
.threequarter { flex: 1 1 calc(75% - 2em); }

@media screen and (max-width: 1270px){
	.up { position: static; width: fit-content; margin: 10px auto; float:none }
	footer {
		padding: 20px
	}
	.o.big img{
		width: calc(25em + 10vw) !important;
		min-width: 100% !important;
	}
}

@media screen and (max-width: 700px){
	header { flex-wrap: wrap; }
	header div { margin: 5px; }
	nav a, button {
		margin: 5px;
		padding: 15px 5px 2px 30px;
		text-decoration: none;
		font-size: 24px;
	}
	section {
		margin: 1em auto;
		padding: 0.5em 1em;
	}
	ul, ol {
		margin: 1rem 0 1rem 0.5rem;
	}
	ul ul, ol ol { 
		margin: 0 0 0 1rem;
	}
	footer {
		padding: 20px;
	}
	figure[style] {
		float: none !important;
		margin: 1rem auto !important;
		max-width: none !important;
	}
	figure.o.big img{
		width: 100% !important;
		max-width: 100% !important;
	}
	
}