﻿@charset "UTF-8";

body {
    color: #555;
    margin: 0;
    background-color: #edeef9;
}

body, input, select, textarea {
    font-family: "Lato", arial, sans-serif;
	font-display: swap;
    font-size: 1em;
    line-height: 1.3em;
}

a {
    border-bottom: none;
    color: #05e;
    text-decoration: none;
}

    a:hover {
        border-bottom-color: transparent;
        color: #33A !important;
    }

p {
    margin: 0.5em 0 0.7em 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #777;
    font-weight: 700;
    line-height: 1em;
    margin: 1em 0 0.5em 0;
}

    h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
        border: 0;
        color: inherit;
        text-decoration: none;
    }

@media (prefers-color-scheme: dark) {
    body {
        background-color: black;
        color: #ccc;
    }

    a {
        border-bottom: none;
        color: #58f;
    }

        a:hover {
            color: #88c !important;
        }

    h1, h2, h3, h4, h5, h6 {
        color: #ccc;
    }
}

h1 {
    font-size: 1.25em;
    line-height: 1.5em;
}

h2 {
    font-size: 1.5em;
    line-height: 1.25em;
}

h3 {
    font-size: 1.25em;
    line-height: 1.25em;
}

h4 {
    font-size: 1.25em;
    line-height: 1.5em;
}

h5 {
    font-size: 1em;
    line-height: 1.5em;
}

h6 {
    font-size: 1em;
    line-height: 1.5em;
}

hr {
    border: 0;
    border-bottom: solid 2px #f4f4f4;
    margin: 2.25em 0;
}

blockquote {
    border-left: solid 8px #e4e4e4;
    font-style: italic;
    margin: 0 0 0.8em 0;
    padding: 0.5em 0 0.5em 2em;
}

pre {
    font-family: monospace;
    font-size: 14px;
    margin: 0 0 0.8em 0;
    color: black;
}
@media (prefers-color-scheme: dark) {
    pre {
        color: #ccc;
    }
}
@media all and (max-width: 800px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
    pre {
        font-size: 12px;
    }
}

div.topbutton {
    position: fixed;
    bottom: 10px;
    right: 35px;
    z-index: 99;
    border: 1px solid black;
}
div.topbutton a {
    padding: 10px;
    display: block;
    background-color: #edeef9;
}
@media (prefers-color-scheme: dark) {
    div.topbutton a {
        background-color: black;
    }
    div.topbutton {
        border: 1px solid white;
    }
}

/* Section/Article */

header.major h1 {
    color: #05e;
    font-size: 1.75em;
    margin-bottom: 0.25em;
}

header.major h2 {
    color: #05e;
    font-size: 3em;
}

    header.major h2 + p {
        color: #777;
        font-size: 1.75em;
        font-weight: 700;
    }

@media (prefers-color-scheme: dark) {
    header.major h1 {
        color: #58f;
    }

    header.major h2 {
        color: #58f;
    }
}
/* Form */

form {
    margin: 0 0 0.8em 0;
}

label {
    color: #777;
    display: block;
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 1em 0;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    border-radius: 3px;
    border: none;
    border: solid 1px #e4e4e4;
    color: inherit;
    outline: 0;
    padding: 0 0.3em;
    text-decoration: none;
    font-size: 1em;
}
@media (prefers-color-scheme: dark) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    select,
    textarea {
        background-color: black;
    }
}

    input[type="text"]:invalid,
    input[type="password"]:invalid,
    input[type="email"]:invalid,
    select:invalid,
    textarea:invalid {
        box-shadow: none;
    }

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus,
    select:focus,
    textarea:focus {
        border-color: #05e;
    }

input[type="text"],
input[type="password"],
input[type="email"],
select {
    height: 1.5em;
}

textarea {
    padding: 0.25em 0.5em;
}

input[type="checkbox"],
input[type="radio"] {
    display: block;
    float: left;
    margin-right: -2em;
    opacity: 0;
    width: 1em;
    z-index: -1;
}

    input[type="checkbox"] + label,
    input[type="radio"] + label {
        text-decoration: none;
        color: #888;
        cursor: pointer;
        display: inline-block;
        font-weight: 400;
        padding-left: 2.4em;
        padding-right: 0.75em;
        position: relative;
    }

        input[type="checkbox"] + label:before,
        input[type="radio"] + label:before {
            -moz-osx-font-smoothing: grayscale;
            -webkit-font-smoothing: antialiased;
            font-style: normal;
            font-weight: normal;
            text-transform: none !important;
        }

        input[type="checkbox"] + label:before,
        input[type="radio"] + label:before {
            background-color: #fafafa;
            border-radius: 5px;
            border: solid 1px #e4e4e4;
            content: '';
            display: inline-block;
            height: 1.5em;
            width: 1.5em;
            top: 0;
            left: 0;
            position: absolute;
            text-align: center;
            line-height: 1.412em;
        }

    input[type="checkbox"]:checked + label:before,
    input[type="radio"]:checked + label:before {
        background-color: #989898;
        border-color: #989898;
        color: #ffffff;
        content: 'O';
    }

    input[type="checkbox"]:focus + label:before,
    input[type="radio"]:focus + label:before {
        border-color: #05e;
    }

    input[type="checkbox"] + label:before {
        border-radius: 5px;
    }

    input[type="radio"] + label:before {
        border-radius: 100%;
    }


/* Button */

input[type="submit"],
input[type="reset"],
input[type="button"],
.button {
    -moz-appearance: none;
    -webkit-appearance: none;
    -o-appearance: none;
    -ms-appearance: none;
    appearance: none;
    -moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    -webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    -o-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    -ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    background-color: #989898;
    border-radius: 5px;
    border: 0;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    height: 2.25em;
    line-height: 2.25em;
    padding: 0 0.5em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    margin-bottom: 0.25em;
}

    input[type="submit"]:hover,
    input[type="reset"]:hover,
    input[type="button"]:hover,
    .button:hover {
        background-color: #a5a5a5;
        color: #ffffff !important;
    }

    input[type="submit"]:active,
    input[type="reset"]:active,
    input[type="button"]:active,
    .button:active {
        background-color: #8b8b8b;
    }


::-webkit-input-placeholder {
    color: #aaa !important;
    font-style: italic;
    opacity: 1.0;
}

:-moz-placeholder {
    color: #aaa !important;
    font-style: italic;
    opacity: 1.0;
}

::-moz-placeholder {
    color: #aaa !important;
    font-style: italic;
    opacity: 1.0;
}

:-ms-input-placeholder {
    color: #aaa !important;
    font-style: italic;
    opacity: 1.0;
}

.formerize-placeholder {
    color: #aaa !important;
    font-style: italic;
    opacity: 1.0;
}


/* Image */
img {
    max-width: 100%;
    height: auto;
}

    img[align="right"] {
        margin-left: 0.5em;
    }

    img[align="left"] {
        margin-right: 0.5em;
    }

/* List */

ol {
    list-style: decimal;
    margin: 0 0 0.8em 0;
    padding-left: 1.25em;
}

    ol li {
        padding-left: 0.25em;
    }
    
    ol > li > ol {
        list-style-type: lower-alpha;
        margin: 0;
    }

    ol > li > ol > li > ol {
        list-style-type: upper-roman;
        margin: 0;
    }

ul {
    list-style: disc;
    margin: 0 0 0.8em 0;
    padding-left: 1em;
}

    ul li {
        padding-left: 0.5em;
    }

li > ul {
    margin: 0;
}


dl {
    margin: 0 0 0.8em 0;
}

@media all and (max-width: 800px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
	.maintext li {
        margin-top: 12px;
        margin-bottom: 12px;
    }
        .maintext li a {
		    font-size: 1.25em;
	    }
}

/* Table */

table {
    border: none;
    border-collapse: collapse;
    margin: 0 0 0.8em 0;
    width: 100%;
	display: block;
	overflow-y: scroll;
}

    table tbody tr {
        border: none;
    }

        table tbody tr:nth-child(2n + 1) {
            background-color: #fafafa;
        }

    table td {
        padding: 0.25em 0.25em;
        font-size: 1em;
    }

    table th {
        border: none;
        background-color: #ccc;
        font-weight: 700;
        padding: 0.25em;
        text-align: left;
    }

@media (prefers-color-scheme: dark) {
    table tbody tr:nth-child(2n + 1) {
        background-color: #222;
    }

    table th {
        background-color: #444;
    }
}

/* Wrapper */

#wrapper {
    background-color: #fff;
    margin-right: 2em;
    margin-left: 2em;
}

@media (prefers-color-scheme: dark) {
    #wrapper {
        background-color: black;
    }
}


@media all and (max-width: 800px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
    #wrapper {
        margin-right: 0;
        margin-left: 0;
    }
}

/* Header */

#header {
    width: 100%;
    top: 0;
}

    #header > header {
        padding: 0.5em 1em 0.5em 1em;
        height: 5em;
    }

    #header img {
        border-radius: 100%;
        overflow: hidden;
        height: 100%;
        float: left;
        margin-right: 0.5em;
    }

    #header h1 {
        margin-left: 1em;
        line-height: 3.75em;
        overflow: hidden;
        margin: 0;
    }

@media all and (max-width: 535px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 535px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 535px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 535px), only screen and (min-device-pixel-ratio: 2) and (max-width: 535px), only screen and (min-resolution: 192dpi) and (max-width: 535px), only screen and (min-resolution: 2dppx) and (max-width: 535px) {
    #header h1 {
        margin-left: 1em;
        line-height: 1.25em;
        overflow: hidden;
    }
}

/* Nav bar */

#header > nav {
    text-align: center;
    background: #05e;
    color: #d1f1e9;
}

    #header > nav ul {
        list-style: none;
        margin: 0 0.25em;
        padding: 0;
        display: block;
    }

        #header > nav ul:after,
        #header > nav:after {
            content: " ";
            display: block;
            font-size: 0;
            height: 0;
            clear: both;
            visibility: hidden;
        }

        #header > nav ul li {
            border-top: solid 0.25em #05e;
            display: block;
            float: left;
            padding: 0;
            position: relative;
        }

            #header > nav ul li a {
                border: 0;
                color: #ffffff !important;
                display: block;
                padding: 0.5em;
                text-decoration: none;
            }

                #header > nav ul li a.active {
                    background-color: #fff;
                    color: #05e !important;
                }

@media (prefers-color-scheme: dark) {
    #header > nav ul li a.active {
        background-color: black;
        color: #fff;
    }
}


@media all and (max-width: 400px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 400px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 600px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 600px), only screen and (min-device-pixel-ratio: 2) and (max-width: 600px), only screen and (min-resolution: 192dpi) and (max-width: 600px), only screen and (min-resolution: 2dppx) and (max-width: 400px) {
    #header > nav ul li {
        padding-left: 8px;
    }

        #header > nav ul li a {
            padding: 10px 6px;
            font-size: 1em;
        }
}

@media (prefers-color-scheme: dark) {
    #header > nav ul li a.active {
        color: #fff !important;
    }
}

/* Main */

#main > section {
    border-top: solid 6px #f4f4f4;
}

    #main > section > .container {
        padding: 0em 2em 3em 2em;
        overflow: auto;
    }

    #main > section:first-child {
        border-top: 0;
    }

    #main > section:before {
        content: '';
        display: block;
        width: 100%;
    }

@media all and (max-width: 800px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
    #main > section > .container {
        padding: 0em 1em 3em 1em;
    }
}


.codeshell {
    font-weight: bold;
    color: white;
    background-color: #666;
    padding: 0.5em;
    margin-bottom: 0.8em;
    overflow: auto;
    width: auto;
}
pre.codeshell {
    white-space: pre;
    word-wrap: normal;
}
.codeshell pre {
    white-space: pre;
    word-wrap: normal;
}

.codefile {
    border: 1px solid black;
    padding: 0.5em;
    margin-bottom: 0.8em;
    overflow: auto;
    width: auto;
}
pre.codefile {
    white-space: pre;
    word-wrap: normal;
}
.codefile pre {
    white-space: pre;
    word-wrap: normal;
}

@media (prefers-color-scheme: dark) {
    .codeshell {
        background-color: #444;
    }

    .codefile {
        border: 1px solid #ccc;
    }
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

div.hiliteme_vs {
    overflow: auto;
    width: auto;
    border: solid gray;
    border-width: .1em .1em .1em .8em;
    padding: .2em .6em;
}

    div.hiliteme_vs pre {
        white-space: pre;
        word-wrap: normal;
    }

/* blog */
.DataGridTable h4 {
    line-height: 1em;
    margin: 0.5em 0;
}
.DataGridTable .article {
    margin: 0.5em;
}
.DataGridTable tbody tr.articlepager td table {
    width: auto;
}

/* Footer */
#footer {
    background-color: #fafafa;
    border-top: 0;
    color: #555;
    overflow: hidden;
    padding: 1em;
}

@media (prefers-color-scheme: dark) {
    #footer {
        background-color: #444;
        color: #DDD;
    }
}


#footer p {
    display: inline-block;
    font-size: 0.8em;
    line-height: 1.1em;
}

#footer .copyright {
    line-height: 1em;
    list-style: none;
    padding: 0;
}

    #footer .copyright li {
        border-left: solid 1px #d4d4d4;
        display: inline-block;
        font-size: 0.8em;
        margin-left: 1em;
        padding-left: 1em;
    }

        #footer .copyright li:first-child {
            border-left: 0;
            margin-left: 0;
            padding-left: 0;
        }

        #footer .copyright li a {
            color: inherit;
        }

@media print {
    #header {
        display: none;
    }

    #one:before {
        background-image: none;
        display: none;
        width: 100%;
    }

    div.topbutton {
        display: none;
    }
}