/* #dce, #98a, #435, #213, #001 */
html, body {
	margin: 0;
	padding: 0;
	border: 0;
}
html, body {
	height: 100%;
}
html {
	background: #001 url('stars-left.png') fixed top left repeat-y;
	color: #dce;
	padding-left: 16px;
	overflow-y: scroll;
	display: flex;
	justify-content: center;
}
body {
	width: 100%;
	max-width: 55rem;
	padding: 0 1em 0 0;
}
body, button, input, textarea {
	font-family: Georgia, Verdana, serif;
}
textarea.koodi {
	font-family: monospace;
}
* {
	color: inherit;
	background-color: transparent;
}

main {
	margin-left: 1rem;
}
main > :not(h1):not(h2):not(h3) {
	margin-left: 1rem;
}

h1 {
	clear: both;
}
ol.stats {
	font-size: 75%;
}
ol.stats span {
	background-color: #dce;
	color: #001;
	padding: 0 1px;
	text-align: right;
	border-bottom: 1px solid #001;
	display: inline-block;
}

header {
	display: flex;
	flex-flow: row wrap;
	justify-content: left;
}
#logo {
	width: 300px;
	height: 160px;
	background: url('php-haaste-logo.png') no-repeat;
	background-size: contain;
	font-size: 0;
	color: transparent;
}
nav {
	display: flex;
	flex-flow: row wrap;
	justify-content: left;
}
nav ul {
	padding: 0;
	margin: 32px 16px 16px;
	list-style-type: circle;
	padding-left: 1em;
}

a, a:visited {
	text-decoration: underline;
}

fieldset {
	margin: 0;
	border: 0;
	padding: 0;
	position: relative;
}
fieldset.submit {
	margin: 1em 0;
}
button, input, textarea {
	background-color: #102;
	border: 2px solid #dce;
	margin: 2px;
	padding: 1px 3px;
	vertical-align: middle;
}
input, textarea {
	border-color: #435 #98a #98a #435;
}
button {
	border-color: #98a #435 #435 #98a;
	padding: 1px 5px;
}

img, div.koodi {
	border: 1px solid #435;
	border-color: #435 #213 #213 #435;
	margin: 8px 0;
}
p.huomautus {
	font-style: italic;
}

#alapalkki {
	font-size: 67%;
	margin-top: 1em;
	padding-bottom: 0.5em;
	color: #98a;
}

h1, h2, h3, p, ul, ol, dl {
	text-indent: 0;
	padding: 0;
	margin-top: 1em;
	margin-bottom: 1em;
}
ul, ol {
	padding: 0 0 0 2em;
}
h1, h2, h3 {
	border-bottom: 2px dotted #98a;
}
h1 {
	margin-top: 0;
	font-size: 200%;
}
h2 {
	font-size: 150%;
}
h3 {
	font-size: 100%;
	color: #98a;
}

table.border {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid black;
	border-color: #435 #213 #213 #435;
}
table.border td, table.border th {
	padding: 1px 0.5em;
	border: 1px solid black;
	border-color: #213 #435 #435 #213;
}

ul#osat {
	list-style-type: none;
	display: block;
	margin-bottom: 2em;
}
ul#osat li {
	display: inline-block;
	width: 5em;
}
ul#osat li.piilossa {
	color: #435;
}

dl#tehtavat {
	display: block;
	width: 35em;
	max-width: 98%;
}
#tehtavat dt {
	float: left;
	width: 3em;
	margin: 0;
	border-bottom: 1px dotted #435;
}
#tehtavat dd {
	margin: 0;
	border-bottom: 1px dotted #435;
}
#tehtavat dd.ratkaisu {
	float: right;
}
#tehtavat .piilossa {
	color: #435;
}

div.koodi {
	overflow: auto;
}
div.koodi pre {
	margin: 0;
	padding: 4px;
	counter-reset: rivinumero 0;
	border-left: 0 solid gray;
	white-space: pre-wrap;
}

.koodi em {
	font-weight: normal !important;
	font-style: normal;
}
.varit-php {
	color: #dc5;
}
.varit-php em.string {
	color: #d35;
}
.varit-php em.comment {
	color: #43e;
}
.varit-php em.keyword {
	color: #4c5;
}
