body {
    background-color: #000;
    color: #fff;
    margin: 0;
    font-size: 16px;
    line-height: 21px;
    font-family: 'Roboto Mono', monospace;
}

input {
    font: inherit;
}

#main {
    margin-top: 50px;
}

.logo, .b-nav {
    position:absolute;
    z-index:999;
}
.logo a {
    display:inline-block;
    padding:10px 5px 10px 0px;
}
.b-nav {
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
    left: 0;
    width:100%;
    background-color:rgba(0, 0, 0, 0.8);
}
.b-nav .left {
    float:left;
}
.b-nav .right {
    float:right;
}
.b-nav a {
    display:inline-block;
    font-size: 26px;
    padding:10px;
}
.b-nav a[disabled="disabled"] {
    pointer-events: none;
    opacity: 0.5;
}

.pill-container {
    position: relative;
}
.pill {
    position: absolute;
    top: 0;
    right: -3px;
    font-size: 15px;
    line-height: 15px;
    padding: 0 3px;
    background-color: red;
    min-width: 13px;
    height: 18px;
    border-radius: 10px;
    text-align: center;
}

pre.txtv, #content-txtv {
    color: #FFF;
    background-color: #000;
    font: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
}
input.nav {
    background:none;
    border:none;
    color:#fff;
    margin:0 -3px 0 0;
    padding:0;
    width:2em;
    outline:none;
}

.txnews .txtv .bgB {
    background: none !important;
}

.section {
    margin-bottom: 50px;
    min-height: 25em;
}
.section .header {
    margin-bottom: 21px;
    padding: 2px 7px;
}
.section .footer {
    margin-top: 30px;
    padding: 2px 7px;
}
.section .content {
    margin: 21px 0px;
}
.section .body {
    padding: 19px 0 0 10px;
}
.section .news-new {
    display: inline-block;
}


input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* tv */
a, a:visited, a:visited:hover { color: #fff; text-decoration:none }
.BK, .BK a, .BK a:visited, .BK a:visited:hover,
.N, .N a, .N a:visited, .N a:visited:hover { color: #000 !important; }
.bgBK, .bgN { background-color: #000; }
.C, .C a, .C a:visited, .C a:visited:hover { color: #0FF !important; }
.bgC { background-color: #0FF; }
.G, .G a, .G a:visited, .G a:visited:hover { color: #0F0 !important; }
.bgG { background-color: #0F0; }
.M, .M a, .M a:visited, .M a:visited:hover { color: #F0F !important; }
.bgM { background-color: #F0F; }
.R, .R a, .R a:visited, .R a:visited:hover { color: #F00 !important; }
.bgR { background-color: #F00; }
.W, .W a, .W a:visited, .W a:visited:hover { color: #FFF !important; }
.bgW { background-color: #FFF; }
.Y, .Y a, .Y a:visited, .Y a:visited:hover { color: #FF0 !important; }
.bgY { background-color: #FF0; }
.B, .B a, .B a:visited, .B a:visited:hover { color: #00F !important; }
.bgB { background-color: #00F; }
.DH { font-weight: bold }
.LG {
    transform: scale(1, 2.1);
    transform-origin: top;
    display: inline-block;
    line-height: 19px;
    position: relative;
    font-weight: bold;
}
.block {

}

#permlink {
    position: absolute;
    top: -100px;
}

.published span.inactive {
    color: #F00 !important;
}

span.date {
    cursor: pointer;
}

div.image {
    padding-bottom: 20px;
}
div.image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#editor {
    textarea {
        width: 100%;
        height: 80vh;
        resize: none;
    }
    textarea, button {
        font-family: inherit;
    }
    .field {
        margin: 20px 0;
    }
}

#content-txtv {
    margin: 0 10px;

    h1 {
        font: inherit;
        transform: scale(1, 2.1);
        transform-origin: top;
        display: inline-block;
        line-height: 19px;
        position: relative;
        font-weight: bold;
        color: #FF0;
    }
    h2, h3, h4, h5, h6 {
        font: inherit;
        font-weight: bold;
        color: #FF0;
    }

    a, a:visited, a:visited:hover {
        color: inherit;
        text-decoration:underline
    }
    h1, h2, h3, h4, h5, h6, p, ul, ol {
        margin: 20px 0;
    }
    h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
        margin-top: 0;
    }
    blockquote, pre {
        margin: 20px;
    }
    table {
        width: 100%;
        border-collapse: collapse;
    }
    td, th {
        border-bottom: 1px solid #555;
    }

    ul, ol {
        padding-left: 20px;
    }
}

/* START cornerbox_menu */
html,
body,
.container,
.content-wrap {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.container {
    background: #000;
    position: relative;
    margin: auto;
}

.content-wrap {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.content-wrap::-webkit-scrollbar {
    display: none;
}

.content {
    position: relative;
}

/* Overlay */
.content::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    content: '';
    opacity: 0;
    -webkit-transition: opacity 0.3s, -webkit-transform 0s 0.3s;
    transition: opacity 0.3s, transform 0s 0.3s;
    -webkit-transform: translate3d(100%,0,0);
    transform: translate3d(100%,0,0);
}

/* Menu Button */
.menu-actions {
    position: absolute;
    z-index: 1000;
    margin: 0px;
    right: 0px;
    border: none;
}

.menu-actions a {
    padding: 10px 5px 10px 10px;
    display: inline-block;
    font-size: 26px;
    float: left;
}

.menu-button:hover {
    opacity: 0.6;
}

/* Close Button */
.close-button {
    width: 1em;
    height: 1em;
    position: absolute;
    right: 1em;
    top: 1em;
    overflow: hidden;
    text-indent: 1em;
    border: none;
    background: transparent;
    color: transparent;
}

.close-button::before,
.close-button::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    background: #b8b7ad;
}

.close-button::before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.close-button::after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/* Menu */
.menu-wrap {
    position: absolute;
    z-index: 1001;
    background: #00f;
    color: #fff;
    padding: 10px;
    -webkit-transform: translate3d(320px,-320px,0);
    transform: translate3d(320px,-320px,0);
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    right:0;
}
.menu-top {
    position: absolute;
    right: 210px;
    top: 1px;
}

ul.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.icon-list li {

}
ul.icon-list li a {
    text-decoration: none;
    display: block;
    padding: 8px 0px;
}
ul.icon-list li .link {
    text-decoration: none;
}
ul.icon-list li form {
    padding-bottom: 8px;
}
ul.icon-list li input {
    padding: 2px 4px;
    box-sizing: border-box;
    width: 10em;
    margin: 0;
}

/* Shown menu */
.show-menu .menu-wrap {
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

.show-menu .content-wrap {
    -webkit-transform: translate3d(-80px,80px,0);
    transform: translate3d(-80px,80px,0);
}

.show-menu .content::before {
    opacity: 1;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

/* END cornerbox_menu */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption of Modal Image */
.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

@media screen and (min-width: 460px) {
    .container {
        width: 460px;
    }
    pre.txtv span {
        background-size: 13px 26px;
    }
    .LG {
        line-height: 23px;
    }
}

@media screen and (min-width: 460px) {
    body {
        font-size: 19px;
        line-height: 25px;
    }
    pre.txtv span {
        background-size: 13px 26px;
    }
    .LG {
        line-height: 23px;
    }
}
@media screen and (max-width: 459px) {
    body {
        font-size: 17px;
        line-height: 23px;
    }
    pre.txtv span {
        background-size: 11px 23px;
    }
    .menu-top {
        right: 185px;
    }
    .LG {
        line-height: 19px;
    }
}
@media screen and (max-width: 413px) {
    body {
        font-size: 17px;
        line-height: 22px;
    }
    pre.txtv span {
        background-size: 11px 22px;
    }
}
@media screen and (max-width: 410px) {
    body {
        font-size: 16px;
        line-height: 21px;
    }
    pre.txtv span {
        background-size: 11px 21px;
    }
}
@media screen and (max-width: 385px) {
    body {
        font-size: 15px;
        line-height: 20px;
    }
    pre.txtv span {
        background-size: 10px 21px;
    }
    .menu-top {
        right: 165px;
    }
    .menu-top .search {
        width: 170px;
    }
}
@media screen and (max-width: 359px) {
    body {
        font-size: 14px;
        line-height: 19px;
    }
    .menu-top {
        right: 165px;
    }
}
@media screen and (max-width: 339px) {
    body {
        font-size: 13px;
        line-height: 18px;
    }
}
@media screen and (max-width: 315px) {
    body {
        font-size: 12px;
        line-height: 16px;
    }
    pre.txtv span {
        background-size: 10px 16px;
    }
}
@media screen and (max-width: 290px) {
    body {
        font-size: 11px;
        line-height: 15px;
    }
    pre.txtv span {
        background-size: 7px 15px;
    }
}
