/* Clean setup */
* {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    font-weight: normal;
    font-family: 'DejaVu Sans',Verdana,Helvetica,sans-serif;
    vertical-align: baseline;
    box-sizing: border-box;
}

/* Background */

* {
    color: #004400;
}

body {
    background: #eeffee;
}

header {
    background: #ddffdd;
}

footer {
    background: #ddffdd;
}

main article pre {
    background: #ffffff;
}

/* Background (Dark) */

@media screen and (prefers-color-scheme: dark) {
    * {
        color: #ddffdd;
    }

    body {
        background: #001100;
    }

    header {
        background: #003300;
    }

    footer {
        background: #003300;
    }

    main article pre {
        background: #000000;
    }
}

/* Header */

header nav {
    max-width: 640px;
    margin: 0px auto;
}

header h1 a {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    width:540px;
    height:48px;
    text-align: center;
}

header nav ul {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: block;
    flex: 0 1 auto;
    list-style-type: none;
}

header nav ul li a {
    display: inline-flex;
}

/* Header navigation title */

.nav-item-title::before {
    display: block;
    width: 16px;
    height: 16px;
    content: url("/logo.svg");
    user-select: none;
    position: absolute;
    left:50%;
    top:8px;
    transform: translateX(-50%);
    filter: grayscale() contrast(100);
    image-rendering: crisp-edges;
}

.nav-item-title {
    width: 540px;
    padding-top: 26px;
    font-size: 0.8em;
    text-decoration: none;
}

@media only screen and (max-width: 640px) {
    .nav-item-title {
        width: calc(100% - 96px);
        padding-top: 26px;
        font-size: 0.8em;
        text-decoration: none;
    }
}

/* Header navigation left */

.nav-item-exit {
    display: block;
    width: 48px;
    height: 48px;
    padding: 8px;
    content: url("/action-exit.svg");
    padding: 8px;
    user-select: none;
}

/* Header navigation right */

.nav-item-bottom {
    display: block;
    width: 48px;
    height: 48px;
    content: url("/action-down.svg");
    padding: 8px;
    user-select: none;
}

footer p a {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    width:540px;
    height:48px;
    transform: translateY(-48px);
    text-align: center;
}

/* Footer navigation title */

.nav-item-legal::before {
    display: block;
    width: 16px;
    height: 16px;
    content: url("/action-legal.svg");
    user-select: none;
    position: absolute;
    left:50%;
    top:8px;
    transform: translateX(-50%);
    filter: grayscale() contrast(100);
    image-rendering: crisp-edges;
}

.nav-item-legal {
    width: 540px;
    padding-top: 20px;
    font-size: 0.8em;
    text-decoration: none;
}

@media only screen and (max-width: 640px) {
    .nav-item-legal {
        width: calc(100% - 96px);
        padding-top: 26px;
        font-size: 0.8em;
        text-decoration: none;
    }
}

/* Footer navigation left */

.nav-item-back {
    display: block;
    width: 48px;
    height: 48px;
    content: url("/action-back.svg");
    padding: 8px;
    user-select: none;
}

/* Footer navigation right */

.nav-item-top {
    display: block;
    width: 48px;
    height: 48px;
    content: url("/action-up.svg");
    padding: 8px;
    user-select: none;
}

header h1 a:hover {
    background-color: #008800;
}

header nav li a:hover {
    background-color: #008800;
}

header nav li a img {
    width: 32px;
    height: 32px;
    margin: 8px;
    filter: brightness(200%);
}

footer nav {
    max-width: 640px;
    margin: 0px auto;
}

footer nav ul {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
}

footer nav ul li {
    display: block;
    flex: 0 1 auto;
    list-style-type: none;
}

footer nav ul li a {
    display: inline-flex;
}

footer nav li a:hover {
    background-color: #008800;
}

footer p a:hover {
    background-color: #008800;
}

footer{
    height: 48px;
}

main {
    max-width: 640px;
    min-height: calc(100vh - (48px * 2));
    margin: 0px auto;
}

main article {
    text-align: justify;
    text-justify: inter-word;
    padding: 8px;
}

main article h1 {
    padding: 8px;
    font-size: 1.50em;
}

main article h2 {
    padding: 8px;
    font-size: 1.40em;
}

main article h3 {
    padding: 8px;
    font-size: 1.30em;
}

main article h4 {
    padding: 8px;
    font-size: 1.20em;
}

main article h5 {
    padding: 8px;
    font-size: 1.10em;
}

main article h6 {
    padding: 8px;
    font-size: 1.00em;
}

main article p {
    padding: 8px;
    line-height: 1.5em;
    font-size: 1.00em;
}

main article em {
    font-style: italic;
}

main article img {
    max-width: 100%;
    display: block;
    margin: 0px auto;
}

main article pre {
    padding: 16px;
    line-height: 1.5em;
    font-size: 1em;
    overflow: auto;
}

main article pre code {
  font-family: 'Courier New', monospace;
    font-size: 16px;
}

main article ol li, main article ul li {
    padding: 8px;
    line-height: 1em;
    font-size: 0.80em;
    margin-left: 24px;
}

main article hr {
    margin: 8px;
    border-width: 1px;
    border-style: solid;
    border-color: #004400;
}

@media print {
    * {
        color: #000000;
    }

    body {
        background: #ffffff;
    }

    header, #top, footer {
        display: none !important;
    }
}


/*


form {
    padding: 8px;
}
input, textarea, select {
    background: #111111;
    padding: 8px;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
}
html,body {
    height: 100%;
    margin: 0;
}
.wrapper {
    min-height: 100%;
    margin-bottom: -2.175em;
}
.footer-main, .push {
    height: 2.175em;
}
#header-main-nav-toggle {
    display: none;
}
#header-main-nav-toggle:checked + .nav {
    display: block;
}
header .nav li a:hover {
    background-color: #111;
}
.footer-main .nav {
    background-color: #003300;
}
.footer-main .nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.footer-main .nav li {
    float: left;
}
.footer-main .nav li.top {
    float: right;
}
.footer-main .nav li a {
    display: block;
    color: white;
    text-align: center;
    padding: 8px 16px;
    text-decoration: none;
}
.footer-main .nav li a:hover {
    background-color: #111;
}
.content-main .article {
    padding: 8px;
}
.content-main .article hr {
    margin: 8px;
    border-width: 1px;
    border-style: solid;
    border-color: #888888;
}*/

details summary {
	width: 100%;
    padding: 8px;
}

details {
  padding: 8px;
  background: #ffffff;
  margin-top: 16px;
  margin-bottom: 16px;
}

details:hover{
  background: #ccffcc;
}

details[open], details[open] summary{
  background: #ccffcc;
}

@media screen and (prefers-color-scheme: dark) {

    details {
      padding: 8px;
      background: #000000;
      margin-top: 16px;
      margin-bottom: 16px;
    }

    details:hover{
      background: #003300;
    }

    details[open], details[open] summary{
      background: #003300;
    }

}

form {
    background: #ccffcc;
    padding-left: 8px;
    padding-right: 8px;
}

textarea, input[type='file'], input[type='button'], input[type='submit'] {
	width: 100%;
	background-color: #eeeeee;
	padding: 8px;
	margin-bottom:8px;
}

input[type='file'] {
	height: 48px;
}

textarea {
	height: 48px;
	resize: vertical;
	font-family: monospace;
}

input[type='button'], input[type='submit'] {
	height: 48px;
}

 input[type='button']:hover, input[type='submit']:hover {
	background-color: #cccccc;
}

@media screen and (prefers-color-scheme: dark) {

    form {
    background-color: #004400;
    }

	textarea, input[type='file'], input[type='button'], input[type='submit'] {
		background-color: #000000;
	}

	input[type='button']:hover, input[type='submit']:hover {
		background-color: #333333;
	}

}
