@font-face {
    font-family: "Arimo";
    src: url("/css/font/arimo.ttf");
}
@font-face {
    font-family: "Terminus";
    src: url("/css/font/terminus.ttf");
}
@font-face {
    font-family: "Ubuntum";
    src: url("/css/font/ubuntum.ttf");
}
/* BASETAG */
html, body {
    padding: 0;
    margin: 0;
    font-size: 17px;
    font-family: Arial, Arimo, sans-serif;
    line-height: 1.3em;
}
a, a:visited {
    color: #888;
}
a:hover {
    color: #000;
}
img,
svg {
    max-width: 100%;
    box-sizing: border-box;
}
h1, h2, h3, h4 {
    font-weight: normal;
    padding: 8px 0;
    margin: 0;
    line-height: 1em;
    letter-spacing: -1px;
    text-align: left;
}
h1 {
    font-size: 30px;
}
h2 {
    font-size: 27px;
}
h3 {
    font-size: 23px;
    font-weight: bold;
}
h1 {
    padding: 0 0 12px 0;
}
p {
    margin: 0;
    padding: 8px 0;
}
ul {
    margin: 0;
    padding: 8px 0 8px 22px;
}
table {
    border-collapse: collapse;
}
table th,
table td {
    padding: 4px 6px;
    margin: 0;
}
input,
select,
textarea {
    font-size: 18px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px 12px;
    outline: none;
    color: #666;
    tab-size: 4;
}
textarea {
    width: 100%;
    height: 200px;
    box-sizing: border-box;
}
input:focus,
textarea:focus {
    border: 1px solid #000;
    color: #000;
}
button {
    background: #444;
    border: 1px solid #000;
    padding: 6px 16px;
    font-size: 18px;
    color: #ddd;
    outline: none;
    cursor: pointer;
}
button:hover {
    color: #fff;
}
button:active {
    background: #000;
}
code {
    font-size: 18px;
    font-family: monospace;
    letter-spacing: -1px;
    background: #eee;
    padding: 2px 4px;
}
blockquote {
    margin: 0;
    padding: 8px;
    background: #eee;
}
ul {
    margin: 0;
    padding: 0;
    list-style: square outside;
}
ul li {
    margin: 0 0 0 24px;
    padding: 0;
    list-style-position: outside;
}
hr {
    border: 0;
    border-top: 2px dashed #ccc;
    margin: 16px 0;
}
/* NAVIGATION */
nav {
    background: #e8e8e8;
    border-bottom: 1px solid #bbb;
}
nav ul {
    margin: 0 auto;
    padding: 0 4px;
    display: block;
}
nav ul li {
    border-top: 3px solid transparent;
    padding: 6px 8px 8px 8px;
    margin: 0;
    list-style: none;
}
nav ul li a {
    text-shadow: 0 0 1px #fff;
    text-decoration: none;
}
nav ul li a:hover {
    text-decoration: underline;
}
nav ul li.active {
    background: #fff;
    border-top: 3px solid #777;
    font-weight: bold;
}
nav ul li.active a {
    color: #444;
}
/* FONT */
.font15 {
    font-size: 15px;
    letter-spacing: -1px;
}
.font16 {
    font-size: 16px;
}
.font17 {
    font-size: 17px;
    line-height: 1.3em;
}
.font18 {
    font-size: 18px;
}
.font19 {
    font-size: 19px;
}
.font20 {
    font-size: 20px;
    line-height: 1.4em;
}
.font21 {
    font-size: 21px;
}
/* FLEX WIDTH */
.fw100 {
    flex-basis: 100px;
}
.fw200 {
    flex-basis: 200px;
}
.fw300 {
    flex-basis: 300px;
}
.fw400 {
    flex-basis: 400px;
}
/* WIDTH */
.wmax {
    width: 100%;
    box-sizing: border-box;
}
.w100 {
    width: 100px;
}
.w150 {
    width: 150px;
}
.w150 {
    width: 150px;
}
.w200 {
    width: 200px;
}
/* MARGIN, PADDING */
.ml8 {
    margin-left: 8px;
}
.mb8 {
    margin-bottom: 8px;
}
.mr8 {
    margin-right: 8px;
}
.mt6 {
    margin-top: 6px;
}
.mt8 {
    margin-top: 8px;
}
.mt12 {
    margin-top: 12px;
}
.mt4 {
    margin-top: 4px;
}
/* COMMON */
.flex {
    display: flex;
    box-sizing: border-box;
}
.wrap {
    flex-wrap: wrap;
}
.grow {
    flex-grow: 1;
}
.shrinkn {
    flex-shrink: 0;
}
.negpaper {
    background: #bbb;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
}
.t-center {
    text-align: center;
}
.pixelated {
    image-rendering: pixelated;
}
.nl {
    height: 16px;
}
.red {
    color: #f00;
    font-weight: bold;
}
.gray {
    color: #ccc;
}
.right {
    float: right;
}
.righta {
    text-align: right;
}
.center {
    text-align: center;
}
.mono {
    font-family: monospace;
    letter-spacing: -1px;
}
.serif {
    font-family: serif;
}
/* TABLE */
table.border th {
    background: #eee;
}
table.border td,
table.border th {
    border: 1px solid #ccc;
}
table.mono td,
table.mono th {
    font-family: monospace;
    font-size: 18px;
}
table td.arial {
    font-family: Arial, Arimo, serif;
    letter-spacing: 0;
}
table td.disable {
    background: #eee;
}
/* PAGE SPECIFIC */
.cpu-tr td {
    text-align: center;
}
.cpu-tr td.cpu-mrg {
    background: #e0e0e0;
}
.cpu-tr td.cpu-mrm {
    background: #f0f0f0;
}
.cpu-86 {
    max-width: 100%;
}
.cpu-86 td {
    vertical-align: top;
    line-height: 1.1em;
}
.cpu-86 td small {
    color: #888;
}
/* PAGE STRUCT */
.page {
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}
.header {
    background: #888 /* url(/i/other/2026.png) 180px bottom no-repeat */;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-bottom: 1px solid #444;
    line-height: 1.4em;
}
.header > div {
    padding: 10px 12px;
}
.header a {
    text-decoration: none;
    color: #fff;
}
.header a:hover {
    text-decoration: underline;
}
.header .lightbox {
    background: #999;
    border-left: 1px solid #aaa;
}
.header .lightbox a:hover {
    color: #ddd;
    text-decoration: none;
}
.content {
    text-align: justify;
    padding: 12px 12px 0 12px;
}
.content-blog {
    text-align: justify;
    padding: 12px 0 0 0;
}
.breadcrumb {
    padding: 12px 12px 0 12px;
    color: #aaa;
}
.pdbr .column {
    flex-basis: 400px;
    flex-grow: 1;
    text-align: left;
}
.cblock {
    padding: 0 0 12px 0;
}
.cblock > div {
    padding: 0 0 0 24px;
}
.cblock ul li {
    margin: 0 0 0 20px;
}
.table-of-contents li {
    text-align: left;
}
footer {
    flex-wrap: wrap;
    padding: 12px;
    color: #aaa;
}
footer.page {
    margin: 12px auto 0 auto;
}
/* MAIN BLOCK */
.main-block {
    padding: 24px 0 0 0;
    flex-wrap: wrap;
    text-align: left;
    line-height: 1em;
}
.main-block .block {
    padding: 0 16px 24px 0 ;
    flex-basis: 390px;
}
.main-block .block > a {
    float: left;
}
.main-block .block > a > img {
    image-rendering: pixelated;
    opacity: 0.75;
}
.main-block .block > a:hover > img {
    opacity: 1;
}
.main-block .block > div {
    margin-left: 74px;
}
.main-block .block .title {
    font-weight: bold;
    text-transform: uppercase;
}
.main-block .block .descr {
    color: #888;
    padding: 6px 0 0 0;
    line-height: 1.2em;
}
.tip-top {
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
}
.tip-top .daily {
    padding: 4px 0 0 4px;
    flex-grow: 1;
}
.tip-top .search {
    flex-shrink: 1;
}
.tip-top .search input[name=q] {
    width: 150px;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.tip-top .search input[name=q]:focus {
    width: 300px;
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
    border-radius: 4px;
}
/* MAKER */
textarea.editbox {
    margin: 8px 0 4px 0;
    height: 700px;
    font-size: 20px;
    font-family: Ubuntum, monospace;
    line-height: 1.25em;
    letter-spacing: -1px;
}
textarea#write {
    font-family: Arial, Arimo, serif;
    line-height: 1.4em;
}
/* TOGGLE */
.toggle {
    cursor: pointer;
    display: inline-block;
}
.toggle-switch {
    display: inline-block;
    background: #e4e4e4;
    box-shadow: -1px -1px 1px #000;
    border-radius: 16px;
    width: 30px;
    height: 15px;
    position: relative;
    vertical-align: middle;
    transition: background 0.25s;
}
.toggle-switch:before, .toggle-switch:after {
    content: "";
}
.toggle-switch:before {
    display: block;
    background: linear-gradient(to bottom, #fff 0%, #eee 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
    width: 15px;
    height: 15px;
    position: absolute;
    top: -1px;
    left: -1px;
    transition: left 0.25s;
}
.toggle:hover .toggle-switch:before {
    background: linear-gradient(to bottom, #fff 0%, #fff 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.toggle-checkbox:checked + .toggle-switch {
    background: #47c177;
}
.toggle-checkbox:checked + .toggle-switch:before {
    left: 15px;
}
.toggle-checkbox {
    position: absolute;
    visibility: hidden;
}
.toggle-label {
    margin-left: 5px;
    position: relative;
    top: 2px;
}
/* CODE */
.code {
    overflow-x: auto;
}
.code > div,
.code-completion {
    white-space: pre;
    text-align: left;
    font-size: 18px;
    font-family: monospace;
    color: #666;
    line-height: 1.2em;
    letter-spacing: -1px;
    tab-size: 4;
}
.code-completion {
    line-height: 1.4em;
}
.code-asm,
.code-z80 {
    text-transform: uppercase;
}
.code .line,
.code .label {
    font-weight: bold;
}
.code .macro {
    font-weight: bold;
}
.code .keyword {
    font-weight: bold;
    color: #333;
}
.code .comment {
    color: #aaa;
}
.code .defines {
    font-style: italic;
}
.code .defs {
    font-weight: bold;
    color: #555;
}
.code .numeric {
    color: #888;
}
.code-bas {
    text-transform: uppercase;
}
.code-prg > div {
    border-bottom: 1px dotted #f0f0f0;
}
.code-prg > div:hover {
    background: #f0f0f0;
    color: #000;
}
.code-prg > div:hover * {
    color: #000;
}
/* Z80 */
.z80-keyhint {
    background: #000;
    color: #fff;
    padding: 4px;
    margin: -4px;
    outline: #fff 2px solid;
}
.z80-instructions {
    padding: 4px;
    margin: 0;
    border-collapse: collapse;
}
.z80-instructions td,
.z80-instructions th {
    border: 1px solid #ccc;
    font-family: monospace;
    line-height: 1.1em;
    font-size: 16px;
    padding: 4px;
    color: #444;
}
.z80-instructions th {
    background: #aee;
}
.z80-instructions th.head {
    width: 16px;
}
.z80-instructions td {
    width: 100px;
}
.z80-instructions td u {
    font-weight: bold;
    color: #000;
}
.z80-instructions td span {
    float: right;
    font-size: 16px;
    color: #888;
}
#zxspectrum {
    width: 640px;
    height: 480px;
    image-rendering: pixelated;
    border: 1px solid #888;
}
/* BLOGOSPHERE */
.blog {
    flex-direction: row-reverse;
}
.blog > .b-sidebar {
    width: 300px;
    margin: 0 12px 0 12px;
}
.blog .b-post {
    max-width: 950px;
    margin: 0 0 12px 0;
}
.b-title,
.b-title-mid {
    background: #888;
    padding: 8px;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    text-align: center;
    margin: 0 0 4px 0;
}
.b-title-mid {
    margin: 8px 0 4px 0;
}
.b-title-mid a,
.b-header a {
    color: #fff;
    text-decoration: none;
}
.b-title-mid a:hover,
.b-header a:hover {
    text-decoration: underline;
}
.blog .b-header {
    background: #666;
    padding: 8px 12px;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
}
.blog .b-body {
    padding: 12px;
}
.blog .b-tags {
    padding: 0 12px 8px 0;
    color: #888;
}
.blog .b-param {
    padding: 8px 0 0 12px;
    color: #888;
}