/**
 *
 * Simple CSS for a better default style.
 * Example page (everything is optional):
 *
 * 	<header>
 * 		<h1>My HEADER</h1>
 * 		<nav>
 * 			<a href=".">Link 1</a>
 * 			<a href=".">Link 2</a>
 * 			<a href=".">Link 3</a>
 * 		</nav>
 * 	</header>
 * 	<article>
 * 		<h1>Main title</h1>
 * 		Some <strong>demo</strong> text...
 * 		<pre><code>
 * 			bash$ _
 * 		</code></pre>
 * 	</article>
 *
 * Note: <header>, <nav> and <article> can be replaced with classes, too.
 *
 **/

/* Body of the page */
body {
	padding: 20px !important;
	margin: 10px !important;
}

/* Header bar (optional) */
header, .header {
	display: inline-block;
	width: calc(100% + 60px);
	min-height: 50px;
	margin: -30px 30px 30px -30px;
}
header > nav, .header > .nav {
	float: right;
	padding: 15px;
}
header h1, .header h1 { 
	float: left;
	padding: 8px;
	margin: 0;
	border: none;
}
header > nav > a, .header > .nav > a {
	text-decoration-line: none;
	padding: 5px;
}

/* Article (main element, but optional) */
article::before, .article::before {
	display: block;
	content: "_";
	width: calc(100% - 20px);
	height: calc(100% - 10px);
	color: transparent;
	border: 10px solid;
	position: fixed;
	left: 0;
	top: 0;
	z-index: -1;
}

article, .article {
	max-width: 920px;
	margin: auto;
	border-radius: 20px;
	padding: 20px;
	box-shadow: 10px 10px 15px 10px #0008;
	margin-bottom: 30px;
}

article > h1, .article > h1 {
	text-transform: uppercase;
	margin: -20px -20px 20px -20px;
	display: block;
	border-radius: 20px 20px 0px 0px;
	padding: 10px;
}

/* Fonts: headers and tables without serif */
h1, h2, h3, h4, h5, h6,
table { 
	font-family: Verdana, "Bitstream Vera Sans", "DejaVu Sans", 
		Tahoma, Geneva, Arial, Sans-serif;
}

/* Headers (including ul/ol with classes .h .hN */
h1 { text-align: center; }
h1, h2, h3, h4, h5, h6 { 
	font-weight: 700;
	border-bottom: 1px solid;
}
h1, .h1 > ::marker { font-size: 2.0rem; }
h2, .h2 > ::marker { font-size: 1.8rem; }
h3, .h3 > ::marker { font-size: 1.6rem; }
h4, .h4 > ::marker { font-size: 1.4rem; }
h5, .h5 > ::marker { font-size: 1.2rem; }
h6, .h6 > ::marker { font-size: 1.0rem; }
ul.h, ol.h { padding-inline-start: 60px; }

/* Normal text */
p {
	width: 100%;
	text-align: justify;
}

/* lists */
ul {
	line-height: 2em;
}

/* Code */
code {
	padding: 0 5px 2px;
	line-height: 1em;
	font-weight: 400;
	border-radius: 3px;
}

pre {
	overflow-x: auto;
	margin: 1.5em 0 3em;
	padding: 20px;
	max-width: 100%;
	border: 1px solid;
	border-radius: 5px;
}

pre code {
	padding: 0;
	line-height: inherit;
	background: transparent;
}

/* Tables */
table {
	margin: .5em 2.5em 2.5em 2.5em;
	max-width: 100%;
	width: auto;
	border-collapse: collapse;
	border-spacing: 0;
	display: block;
	overflow-x: auto;
}

table th, table td {
	border: 1px solid;
	margin: 0;
	padding: 6px 12px;
}

table th {
	text-transform: uppercase;
}

/* Small screens rules: 640 - 768 - 1024 - 1200 */

@media screen and (max-width:  640px) {
	article, .article, article > h1, .article > h1 { 
		border-radius: 0 !important;
	}
	body { 
		padding: 0 !important;
		margin: 0 !important;
	}
}

@media screen and (max-width: 768px) {
	ul, ol { padding-inline-start: 10px !important; }
	h1, h2, h3, h4, h5, h6,
	li::marker { 
		font-size: initial !important;
	}
	table { 
		padding: 0 !important;
		margin: 0 !important;
	}
}

