/*
	main.css
	Copyright 2006-2023 by Christopher Heng. All rights reserved.
*/

body {
	color: black ;
	background-color: white ;
	font-family: Arial, Helvetica, sans-serif ;
	font-size: 1.0em ;
	margin: 0 ;
	padding: 0 ;
}
code {
	font-family: "Courier New", Courier, monospace ;
	font-size: 1em ;
}
img {
	max-width: 100% ;
	width: auto ;
	height: auto ;
}
a:link {
	color: blue ;
	background-color: transparent ;
}
a:visited {
	color: purple ;
	background-color: transparent ;
}
a:hover {
	color: black ;
	background-color: yellow ;
}
a:active {
	color: red ;
	background-color: transparent ;
}

div#toppanel {
	position: absolute ;
	top: 5px ;
	left: 5px ;
	width: 200px ;
}
div#logo {
	width: 144px ;
	margin-left: auto ;
	margin-right: auto ;
}
div#sidepanel {
	position: absolute ;
	top: 145px ;
	left: 5px ;
	width: 200px ;
	text-align: center ;
}
div#maincontent {
	position: absolute ;
	top: 5px ;
	left: 220px ;
	right: 5px ;
	width: auto ;
	line-height: 1.3em ;
	color: black ;
	background-color: white ;
}
div#articletext {
	padding: 8px ;
}

#articletext h1 {
	font-size: 1.5em ;
	line-height: 1.2em ;
}
#articletext h2 {
	font-size: 1.3em ;
	line-height: 1.2em ;
}
#articletext h3 {
	font-size: 1.1em ;
	line-height: 1.2em ;
}
.articlelist li {
	margin-bottom: 1.5em ;
}

div#breadcrumbs {
	margin-top: 4px ;
	margin-bottom: 4px ;
	border: 1px solid black ;
	padding: 4px ;
	color: black ;
	background-color: white ;
}

#footer {
	clear: both ;
	border: 1px solid black ;
	padding: 4px ;
	margin-top: 4px ;
	margin-bottom: 20px ;
	color: black ;
	background-color: white ;
}

h1#toptitle {
	background-color: #487cff ;
	color: yellow ;
	padding: 10px ;
	margin: 1px 1px ;
	font-size: 2em ;
	font-weight: bold ;
	line-height: 1.2em ;
}
h2#subtitle {
	background-color:#004080 ;
	color: white ;
	padding-top: 5px ;
	padding-left: 10px ;
	padding-right: 5px ;
	padding-bottom: 5px ;
	margin: 1px 1px ;
	font-size: 1.1em ;
	line-height: 1.2em ;
}

div#searchtitle {
	background-color: #004080 ;
	color: white ;
	text-align: center ;
	padding: 2px ;
	width: 200px ;
	margin-bottom: 4px ;
}

input.searchentry {
	width: 100px ;
}
p.infobox, div.infobox {
	border: 1px solid blue ;
	padding: 8px ;
}
div.codeblock {
	border: 1px solid green;
	font-family: Consolas, "Courier New", Courier, monospace;
	font-size: 1em ;
	padding: 8px ;
}
@media only screen and (max-width:629px) {

	div#toppanel {
		position: static ;
		top: auto ;
		left: auto ;
		width: auto ;
	}
	div#sidepanel {
		position: static ;
		top: auto ;
		left: auto ;
		width: auto ;
		margin: 10px 5px 5px 5px ;
	}
	div#maincontent {
		position: static ;
		top: auto ;
		left: auto ;
		right: auto ;
		width: auto ;
		margin: 10px 5px 5px 5px ;
	}
	div#searchtitle {
		width: 98% ;
	}
	input.searchentry {
		width: 150px ;
	}
	div#tswcssbuttons, nav#tswcssbuttons {
		/* for some reason, just "#tswcssbuttons" alone won't work in Firefox 115.0.2 */
		width: 100% ;
	}
	textarea#pagelinkcode {
		width: 95% ;
		max-width: 320px ;
		height: 10em ;
	}

}
div#cookienotice {
	position: fixed ;
	left: 0 ;
	bottom: 0 ;
	border: 1px solid #444 ;
	padding: 4px ;
	color: white ;
	background-color: #444 ;
	width: 100% ;
	font-size: 0.9em ;
	z-index: 1 ;
}
a#cookiepolicylink:link, a#cookiepolicylink:visited {
	color: #87ceeb ;
	background-color: transparent ;
}
a#cookiepolicylink:hover, a#cookiepolicylink:active {
	color: yellow ;
	background-color: transparent ;
}
a#cookienoticebutton {
	color: black ;
	background-color: #90ee90 ;
	border: 1px solid #006400 ;
	border-radius: 8px ;
	text-decoration: none ;
	margin-left: 5px ;
}
a#cookienoticebutton:visited {
	color: black ;
	background-color: #90ee90 ;
}
a#cookienoticebutton:hover, a#cookienoticebutton:active {
	color: yellow ;
	background-color: #0000c0 ;
}

/*
	(copied from tswnavbar.css, added font-weight:bold and padding:2px)
	tswnavbar.css	1.2.4
	Please use the Navigation Menu Wizard at
		https://www.thesitewizard.com/wizards/css-menu-buttons.shtml
	to generate your own customized menu buttons.
*/
#tswcssbuttons {
	width: 180px ;
	max-width: 100% ;
	text-align: center ;
}
#tswcssbuttons ul {
	margin: 0 ;
	padding: 0 ;
	list-style: none ;
}
#tswcssbuttons li {
	margin: 0 ;
	padding: 0 ;
	display: block ;
	list-style: none ;
	font-family: Arial, Helvetica, sans-serif ;
	font-weight: bold ;
}
#tswcssbuttons li a {
	color: #fff ;
	background-color: #487cff ;
	border: 1px outset #0000ff ;
	text-decoration: none ;
	display: block ;
	padding: 2px ;
}
#tswcssbuttons li a:hover {
	color: #ff0 ;
	background-color: #004080 ;
}
