/* Basic layout */

body {
  margin: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size:0.9em;
  background:#050f3c url(bg.jpg);
}

main {
	background-color: #fff;
	padding-bottom: 1.5em;
}

h1 {
	margin: 1.6em 0 0.3em;
	padding: 0 10px;
	font-size: 1.5em;
}

h2 {
	margin: 1.6em 0 0.3em;
	padding: 0 10px;
	font-size: 1.2em;
}

h3 {
	margin: 1.6em 0 0.3em;
	padding: 0 10px;
	font-size: 1em;
}

.dualh h1 {
	margin-bottom: 0;
}
.dualh h2 {
	margin: 0;
}

p {
	margin: 0.4em 0 1.5em;
	padding: 0 10px;
}

main a {
	color:#039;
	text-decoration:none;
	font-weight:bold;
}

main a:hover {
	color:#AAA;
	text-decoration:underline;
}

a.ref {
	color:inherit;
	text-decoration:underline;
	font-weight:normal;
	font-style:italic;
}

a.ref:hover {
	color:#AAA;
	text-decoration:none;
	font-weight:normal;
	font-style:italic;
}

.fullbox {
    padding: 10px;
    border-top: 3px solid #bbb;
    border-bottom: 3px solid #bbb;
    background: #ddd;
    color: #999;
}

.smallnote {
	font-size: 80%;
	color: #999;
}

.sidenote {
	color: #999;
}

.nobr {
	display: inline-block;
}

.center {
	text-align: center;
}

.box {
	padding:10px;
	margin:10px;
	background:#DDD;
	border:2px solid #BBB;
	-webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px;
	text-align:left;
}
.inner {
	margin:5px;
	padding:5px;
	background:#BBB;
}

.scale {
	max-width: 100%;
	max-height: 100%;
}

.floatl { float:left; }
.floatr { float:right; }

.attention { display: inline-block; margin:5px; color:#B00;  padding:3px 3px 3px 23px; background: transparent url(../img/icon_warning.png) 3px 4px no-repeat; }
.note { display: inline-block; margin:5px; color:#FF9; padding:3px 3px 3px 23px; background: transparent url(../img/icon_bulb.png) 3px 1px no-repeat; }

.deprecated { color:#84348c; }
.code { color:#AFA; background:#030; border:2px solid #AFA; padding:2px; font-family:"Lucida Console", Consolas, "Courier New", Courier, monospace; overflow-x:auto; }
.security { color:#9EFFB1; padding:3px 3px 3px 39px; background: #022409 url(../img/cat_security.png) 3px 1px no-repeat; }
.vali { color:#666; font-family:"Courier New", Courier, monospace; padding-right:2px; }
.valn { color:#FFF; font-family:"Courier New", Courier, monospace; font-size:larger; }

.bg0 { background:#CCC; padding:2px; }
.bg1 { background:#EEE; padding:2px; }
.row0 td { background:#CCC; padding:5px; }
.row1 td { background:#EEE; padding:5px;}
.no { color:#C00; font-weight:bold; }
.yes { color:#0B0; font-weight:bold; }

.stars { display:inline-block; height:10px; background: transparent url(../img/icon_star.png) top left repeat-x; text-align:left; }
.stars0 { display:inline-block; height:10px; background: transparent url(../img/icon_star_gray.png) top left repeat-x; }
.starEnd { display:inline-block; height:10px; }
.stdshadow { text-shadow:#666 1px 1px 0; }
.smallnote { color:#999; font-size:10px; }
.tt { color:#039; font-style:italic; }

iframe {
	border: none;
}

/* Lists */

ul {
	margin: 0.4em 0 0.7em;
	padding: 0 10px 0 25px;
	list-style-position: outside;
	list-style-image:url(dot.gif);
}
.ulr {
	list-style-image:url(rdot.gif);
}

.uln {
	list-style: none;
	padding: 0;
}

ol {
	margin: 0.4em 0 0.7em;
	padding: 0 10px 0 25px;
	list-style-position: outside;
	list-style-image: none;
}

.ul3 {
    -moz-column-count: 3;
    -moz-column-gap: 15px;
    -webkit-column-count: 3;
    -webkit-column-gap: 15px;
    column-count: 3;
    column-gap: 15px;
}

@media screen and (max-width: 700px) and (min-width: 500px) {
	.ul3 {
		-moz-column-count: 2;
		-webkit-column-count: 2;
		column-count: 2;
	}
}

@media screen and (max-width: 500px) {
	.ul3 {
		-moz-column-count: 1;
		-webkit-column-count: 1;
		column-count: 1;
	}
}

.ul2 {
    -moz-column-count: 2;
    -moz-column-gap: 15px;
    -webkit-column-count: 2;
    -webkit-column-gap: 15px;
    column-count: 2;
    column-gap: 15px;
}

@media screen and (max-width: 700px) {
	.ul2 {
		-moz-column-count: 1;
		-webkit-column-count: 1;
		column-count: 1;
	}
}

.data {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style:none;
}

.data li:nth-child(odd) {
	background-color: #CCC;
}

.data li {
	padding: 3px;
}

.data li span:nth-child(1) {
	display: inline-block;
	text-align: left;
	width: 100px;
}
.data li span:nth-child(2) {
	display:inline-block;
	text-align:left;
}

/* Link Buttons */

.button {
	display:block;
	background:#BBB;
	background: linear-gradient(to bottom, #EEE,#999);
	border:solid #666 1px;
	margin:10px;
	min-height:26px;
	max-width:300px;
	padding:3px;
	font-size:18px;
	font-weight:bold;
	text-decoration:none;
	text-align:center;
	text-shadow:#FFF 0 0 5px;
	-webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px;
}

.button:hover {
	color:#999;
	text-decoration:none;
}

.bigbutton {
	display:block;
	background:#BBB;
	background: linear-gradient(to bottom, #EEE,#999);
	border:solid #666 2px;
	margin:10px;
	min-height:45px;
	padding-top:5px;
	font-size:30px;
	font-weight:bold;
	text-decoration:none;
	text-align:center;
	text-shadow:#FFF 0 0 10px;
	-webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px;
}

.bigbutton:hover {
	color:#999;
	text-decoration:none;
}

.dlbutton {
	display:block;
	background:#BBB;
	background: linear-gradient(to bottom, #EEE,#999);
	border:solid #666 1px;
	margin:10px;
	min-height:40px;
	padding-top:2px;
	font-size:18px;
	font-weight:bold;
	text-decoration:none;
	text-align:center;
	text-shadow:#FFF 0 0 5px;
	-webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px;
}

.dlbutton:hover {
	color:#999;
	text-decoration:none;
}

.dltiny {
	display:block;
	font-size:0.7em;
	text-shadow:#FFF 0 0 3px;
}

.linkbar {
	padding: 5px 10px 3px 10px;
	list-style-image:none;
	font-size:1em;
	line-height: 2em;
}
.linkbar li { display:inline-block; }
.linkbar li a {
	-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;
	background: #E0E0E0;
	background: linear-gradient(to top,#C0C0C0,#FFF);
	border: 1px solid #999;
	text-align:left;
	padding:2px 3px;
	text-decoration:none;
}
.linkbar li a:hover {
	background:#039;
	border-color:#039;
	color:#EFA;
	text-decoration:none;
}

/* Responsive Video */
.video {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 0;
	height: 0;
	min-width: 200px;
	overflow: hidden;
}

.video iframe,
.video object,
.video embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Responsive Columns */

.row {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}

.flexRow {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}

.col {
	flex-basis: auto;
	margin: 10px;
}

.colGrow1 {
	flex: 1 0;
	margin: 10px;
}

.colGrow2 {
	flex: 2 0;
	margin: 10px;
}

.col50 {
	flex: 45%;
	margin: 10px;
}

.top {
	align-self: flex-start;
}

.flexcenter {
	align-self: center;
}

.btm {
    align-self: flex-end;
}

@media screen and (max-width: 700px) {
	.hidenarrow {
		display: none;
	}
	.flexRow {
		flex-flow:column;
	}
}

/* Centered Full-Bleed https://www.joshwcomeau.com/css/full-bleed/ */

.wrapper {
	display: grid;
	grid-template-columns:
		1fr
		minmax(0, 900px)
		1fr;
}

.wrapper > * {
	grid-column: 2;
}

.full-bleed {
	width: 100%;
	grid-column: 1 / 4;
}

/* Responsive Navbar Dropdown https://www.w3schools.com/howto/howto_js_responsive_navbar_dropdown.asp  */

.topnav {
	background:#222222 url(bg_top.png) top left repeat-x;
	overflow: hidden;
	font-size: 1em;
}

.icon {
	position: absolute;
}

.icon a {
	padding: 0 !important;
	position: relative;
	left: 5px;
	top: 5px;
	display:block;
}
.icon a:hover {
	background: transparent !important;
}

.icon div {
	display:block;
	width: 88px;
	height: 88px;
	background: transparent url(icon.png) no-repeat;
}

.iconpad {
	display: block;
	margin-left: 100px;
}

.topnavsep {
	display:block;
	background:rgb(160, 149, 0) url(bg_sep.png) bottom left;
	height: 25px;
}

.topnavshadow {
	display:block;
	background:#fff url(shadow.png) top left;
	height: 10px;
}

.topnav a {
	float: left;
	display: block;
	color: #f2f2f2;
	text-align: center;
	padding: 0.7em;
	text-decoration: none;
}

.topnav .active {
	background-color: #4CAF50;
	color: white;
}

.topnav .navicon {
	display: none;
}

.dropdown {
	float: left;
	overflow: hidden;
}

.dropdown .dropbtn {
	font-size: 1em;
	border: none;
	outline: none;
	color: white;
	padding: 0.7em;
	background-color: inherit;
	font-family: inherit;
	margin: 0;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #444;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
}

.dropdown-content a {
	float: none;
	color: #f2f2f2;
	padding: 0.7em;
	text-decoration: none;
	display: block;
	text-align: left;
}

.topnav a:hover, .dropdown:hover .dropbtn {
	background-color: #555;
	color: white;
}

.dropdown-content a:hover {
	background-color: #666;
	color: white;
}

.dropdown:hover .dropdown-content {
	display: block;
}

@media screen and (max-width: 700px) {
	.iconpad {
		border-left:#333 2px solid;
	}

	.topnav a:not(:first-child), .dropdown .dropbtn {
		display: none;
	}

	.topnav a.navicon {
		float: right;
		display: block;
	}

	.topnav.responsive { position: relative; }
	.topnav.responsive a.navicon {
		position: absolute;
		right: 0;
		top: 0;
	}
	.topnav.responsive a {
		float: none;
		display: block;
		text-align: left;
	}

	.topnav.responsive .dropdown {float: none;}
	.topnav.responsive .dropdown-content {position: relative;}
	.topnav.responsive .dropdown .dropbtn {
		display: block;
		width: 100%;
		text-align: left;
	}
}

/* Footer */

footer {
	min-height: 50px;
	border-top: 3px solid #bbb;
	background: #ccc url(footer.jpg) bottom left no-repeat;
	padding: 7px 10px 3px 70px;
	color: #888;
	font-size: 0.75em;
	text-align: right;
}

footer a {
	color:#555;
	text-decoration: none;
	font-weight: bold;
}

footer a:hover {
	color:#999;
	text-decoration: underline;
}