html,body
{
    background-color: #1c1c1f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%232e2f31' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E");
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    font-size:14px;
    color:#d0d1d4;
    text-rendering: optimizeLegibility;
    line-height:1.5;
    margin:0;
    padding:0;
}

h1,h2,h3
{
    margin:0;
    padding:0;
}

h2
{
    font-size:24px;
}

h3
{
    font-size:12px;
}

article
{
	background-color:#2e2f31;
	margin-bottom:2px;
	padding:12px 24px;
}

article p
{
    margin-block:1.5em;
}

.articlecontent
{
    margin-bottom:16px;
}

#left p
{
    margin-block:0.5em;
}

a
{
    text-decoration: underline;
    color: #0cf;
}

a:hover, a:visited
{
    color:#fa0;
}

a:active
{
    color:#fa0;
}

/* article a[href^="http://"]:after, article a[href^="https://"]:after {
    margin-left: 3px;
    content: "";
    display: inline-block;
    height: 10px;
    width: 10px;
    background-image: url("/etc/external-link-ltr-icon.svg");
} */

#left ul, #left li
{
    list-style:none;
    margin:0;
    padding:0;
    text-indent:0;
}

.highlight > div
{
    background-color:#202022 !important;
    border:1px solid #d0d1d4;
    border-left:3px solid #fa0;
    padding:2px 6px;
}

code
{
    display:block;
    /* white-space:pre-wrap; */
    margin:auto;
    font-family:"Consolas", monospace;
    page-break-inside:avoid;
    font-size:12px;
    max-width:90%;
    overflow:auto;
    display:block;
    word-wrap:break-word;
}

pre
{
    background:none !important;
}

hr
{
    border:none;
    border-top:2px solid #202022;
}

table
{
    table-layout:fixed;
    width:100%; 
}

thead
{
    text-align:left;
}

th, td
{
    padding:4px;
    border-bottom:1px solid #79797a;
}

thead th:nth-child(1)
{
    width: 30%;
}

.important
{
    background-color:#572B2B;
}

.warning
{
    background-color:#574E2B;
}

.code
{
    padding:3px;
    color:#d62672;
    background-color:#202022;
    border-radius:1px;
    vertical-align: middle;
}

header
{
    background-color:#2e2f31;
    text-align:center;
    height:72px;
    padding:8px;
    border:2px solid #202022;
    border-radius:4px;
    margin-bottom:8px;
}

#wrapper
{
    width:768px;
    margin:8px auto;
}

#container
{
    display:flex;
    border:2px solid #202022;
    border-radius:4px;
    overflow: auto;
}

#left
{
	background-color:#2e2f31;
    float:left;
    width:170px;
    padding:8px;
    border-right:2px solid #202022;
    margin-left: -100%;
}

main
{
    float:left;
    width:576px;
    margin-left:188px; /* (8px * 2) + 2px */
}

/* #container::after,#left::after,#content::after
{
    content:"";
    display:block;
    clear:both;
} */

.image-container p, .video-container p
{
    font-size:12px;
    text-align:center;
    margin-block:0.5em;
    margin-bottom:32px;
}

.image-container img, .video-container video
{
    padding:6px;
    display:block;
    margin:auto;
    max-width:90%;
    border:1px solid #d0d1d4;
    background-color:#202022;
}

.title
{
    color:#0cf;
    font-weight:bold;
}

h1 a, h1 a:hover, h1 a:active, h1 a:visited
{
    text-decoration: none;
    color:inherit;
}

.date
{
    padding:4px 0px;
}

.video-wrapper, .videoplayer
{
    position:relative;
    padding-bottom:56.25%;
    height:0;
}

.video-wrapper iframe, .videoplayer video
{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

.videoplayer video
{
    background:black !important;
}

.videoplayer-title, .videoplayer-description
{
    font-weight:bold;
    font-size:16px;
}

.pagination
{
	padding:12px 24px;
	background-color:#2e2f31;
    margin-top:2px;
}

.kpan
{
    padding:12px 0px;
    background-color: #2e2f31;
    margin-top:8px;
    border: 2px solid #202022;
    border-radius: 4px;
}

.kpan iframe
{
    margin:0 auto;
    border: none;
    display:block;
}

.tip
{
    display: block;
    border:1px solid #2e2f31;
    width:460px;
    height:90px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    padding:8px;
    font-size:24px;
    font-weight:bold;
    position:relative;
    margin-bottom:8px;
}

.tip:hover
{
    border-color: #fa0;
}

.tip-content
{
    position:absolute;
    bottom:4px;
    left:8px;
}

.medialist.medialistscroll, .videodescription
{
    height:224px;
    overflow:hidden;
    overflow-y:scroll;
}

.videodescription
{
    padding:16px;
    background-color:#202022;
    white-space: pre-wrap;
}

.medialist a
{
    color:#d0d1d4 !important;
    text-decoration: none;
}

.mediaitem
{
    position:relative;
    width:496px;
    height:90px;
    margin-bottom:8px;
    background-color:#202022;
    border:1px solid #1a1a1b;
    cursor:pointer !important;
}

.mediaitem:hover
{
    border-color:#fa0;
}

.mediaitem-thumb
{
    position:absolute;
    left:0;
    z-index: 10;
}

.mediaitem-thumb img {
    width: 160px;
    height: 90px;
    object-fit: cover;
}

.mediaitem-type
{
    position:absolute;
    right:8px;
    bottom:0;
    text-transform:uppercase;
    font-weight:bold;
    font-size:36px;
    color:#313134;
    user-select:none;
}

.mediaitem-data
{
    padding-left:168px;
}

.mediaitem-title, .mediaitem-date
{
    display:block;
}

.mediaitem-title
{
    font-weight:bold;
    font-size:16px;
}

.mediaitem-date
{
    font-style:italic;
    font-size:12px;
}

/* #region isso (comments) */

article hr:last-child {
    display: none;
}

.commentarea
{
    margin-top:16px;
}

.isso-comment > div.text-wrapper > .isso-comment-header .author
{
    color:#d0d1d4 !important;
}

.textarea
{
    color:#d0d1d4 !important;
    background-color:#202022 !important;
}

.post-action input, .input-wrapper input
{
    background-color:#202022 !important;
    color:#d0d1d4 !important;
    border:none !important;
}

#isso-thread
{
    margin-top:32px;
}

#isso-thread .textarea.placeholder
{
    color:#757575 !important;
}

#isso-thread * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
#isso-thread .isso-comment-header a {
    text-decoration: none;
}

#isso-thread {
    padding: 0;
    margin: 0;
}
#isso-thread > h4 {
    color: #555;
    font-weight: bold;
}
#isso-thread > .isso-feedlink {
    float: right;
    padding-left: 1em;
}
#isso-thread > .isso-feedlink > a {
    font-size: 0.8em;
    vertical-align: bottom;
}
#isso-thread .textarea {
    min-height: 58px;
    outline: 0;
}
#isso-thread .textarea.placeholder {
    color: #757575;
}

#isso-root .isso-comment {
    max-width: 68em;
    padding-top: 0.95em;
    margin: 0.95em auto;
}
#isso-root .preview .isso-comment {
    padding-top: 0;
    margin: 0;
}
#isso-root .isso-comment:not(:first-of-type),
.isso-follow-up .isso-comment {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.isso-comment > div.avatar {
    display: block;
    float: left;
    width: 7%;
    margin: 3px 15px 0 0;
}
.isso-comment > div.avatar > svg {
    max-width: 48px;
    max-height: 48px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.isso-comment > div.text-wrapper {
    display: block;
}
.isso-comment .isso-follow-up {
    padding-left: calc(7% + 20px);
}
.isso-comment > div.text-wrapper > .isso-comment-header, .isso-comment > div.text-wrapper > .isso-comment-footer {
    font-size: 0.95em;
}
.isso-comment > div.text-wrapper > .isso-comment-header {
    font-size: 0.85em;
}
.isso-comment > div.text-wrapper > .isso-comment-header .spacer {
    padding: 0 6px;
}
.isso-comment > div.text-wrapper > .isso-comment-header .spacer,
.isso-comment > div.text-wrapper > .isso-comment-header a.permalink,
.isso-comment > div.text-wrapper > .isso-comment-header .note,
.isso-comment > div.text-wrapper > .isso-comment-header a.parent {
    color: gray !important;
    font-weight: normal;
    text-shadow: none !important;
}
.isso-comment > div.text-wrapper > .isso-comment-header .spacer:hover,
.isso-comment > div.text-wrapper > .isso-comment-header a.permalink:hover,
.isso-comment > div.text-wrapper > .isso-comment-header .note:hover,
.isso-comment > div.text-wrapper > .isso-comment-header a.parent:hover {
    color: #606060 !important;
}
.isso-comment > div.text-wrapper > .isso-comment-header .note {
    float: right;
}
.isso-comment > div.text-wrapper > .isso-comment-header .author {
    font-weight: bold;
    color: #555;
}
.isso-comment > div.text-wrapper > .textarea-wrapper .textarea,
.isso-comment > div.text-wrapper > .textarea-wrapper .preview {
    margin-top: 0.2em;
}
.isso-comment > div.text-wrapper > div.text p {
    margin-top: 0.2em;
}
.isso-comment > div.text-wrapper > div.text p:last-child {
    margin-bottom: 0.2em;
}
.isso-comment > div.text-wrapper > div.text h1,
.isso-comment > div.text-wrapper > div.text h2,
.isso-comment > div.text-wrapper > div.text h3,
.isso-comment > div.text-wrapper > div.text h4,
.isso-comment > div.text-wrapper > div.text h5,
.isso-comment > div.text-wrapper > div.text h6 {
    font-size: 130%;
    font-weight: bold;
}
.isso-comment > div.text-wrapper > div.textarea-wrapper .textarea,
.isso-comment > div.text-wrapper > div.textarea-wrapper .preview {
    width: 100%;
    border: 1px solid #2e2f31;
    border-radius: 2px;
    box-shadow: 0 0 2px #888;
}
.isso-comment > div.text-wrapper > .isso-comment-footer {
    font-size: 0.80em;
    color: gray !important;
    clear: left;
}
.isso-feedlink,
.isso-comment > div.text-wrapper > .isso-comment-footer a {
    font-weight: bold;
    text-decoration: none;
}
.isso-feedlink:hover,
.isso-comment > div.text-wrapper > .isso-comment-footer a:hover {
    color:#fa0 !important;
    text-shadow: none !important;
}
.isso-comment > div.text-wrapper > .isso-comment-footer > a {
    position: relative;
    top: .2em;
}
.isso-comment > div.text-wrapper > .isso-comment-footer > a + a {
    padding-left: 1em;
}
.isso-comment > div.text-wrapper > .isso-comment-footer .votes {
    color: gray;
}
.isso-comment > div.text-wrapper > .isso-comment-footer .upvote svg,
.isso-comment > div.text-wrapper > .isso-comment-footer .downvote svg {
    position: relative;
    top: .2em;
}
.isso-comment .isso-postbox {
    margin-top: 0.8em;
}
.isso-comment.isso-no-votes span.votes {
    display: none;
}

.isso-postbox {
    max-width: 68em;
    margin: 0 auto 2em;
    clear: right;
}
.isso-postbox > .form-wrapper {
    display: block;
    padding: 0;
}
.isso-postbox > .form-wrapper > .auth-section,
.isso-postbox > .form-wrapper > .auth-section .post-action {
    display: block;
}
.isso-postbox > .form-wrapper .textarea,
.isso-postbox > .form-wrapper .preview {
    margin: 0 0 .3em;
    padding: .4em .8em;
    border-radius: 3px;
    background-color: #2e2f31;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.isso-postbox > .form-wrapper input[type=checkbox] {
    vertical-align: middle;
    position: relative;
    bottom: 1px;
    margin-left: 0;
}
.isso-postbox > .form-wrapper .notification-section {
    font-size: 0.90em;
    padding-top: .3em;
}
#isso-thread .textarea:focus,
#isso-thread input:focus {
    border-color: rgba(0, 0, 0, 0.8);
}
.isso-postbox > .form-wrapper > .auth-section .input-wrapper {
    display: inline-block;
    position: relative;
    max-width: 25%;
    margin: 0;
}
.isso-postbox > .form-wrapper > .auth-section .input-wrapper input {
    padding: .3em 10px;
    max-width: 100%;
    border-radius: 3px;
    background-color: #2e2f31;
    line-height: 1.4em;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.isso-postbox > .form-wrapper > .auth-section .post-action {
    display: inline-block;
    float: right;
    margin: 0 0 0 5px;
}
.isso-postbox > .form-wrapper > .auth-section .post-action > input {
    padding: calc(.3em - 1px);
    border-radius: 2px;
    border: 1px solid #2e2f31;
    background-color: #2e2f31;
    cursor: pointer;
    outline: 0;
    line-height: 1.4em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.isso-postbox > .form-wrapper > .auth-section .post-action > input:hover {
    background-color: #2e2f31;
}
.isso-postbox > .form-wrapper > .auth-section .post-action > input:active {
    background-color: #202022;
}
.isso-postbox > .form-wrapper .preview,
.isso-postbox > .form-wrapper input[name="edit"],
.isso-postbox.preview-mode > .form-wrapper input[name="preview"],
.isso-postbox.preview-mode > .form-wrapper .textarea {
    display: none;
}
.isso-postbox.preview-mode > .form-wrapper .preview {
    display: block;
}
.isso-postbox.preview-mode > .form-wrapper input[name="edit"] {
    display: inline;
}
.isso-postbox > .form-wrapper .preview {
    background-color: #202022;
    background: repeating-linear-gradient( -45deg, #202022, #202022 10px, #2e2f31 10px, #2e2f31 20px );
}
.isso-postbox > .form-wrapper > .notification-section {
    display: none;
    padding-bottom: 10px;
}
@media screen and (max-width:600px) {
    .isso-postbox > .form-wrapper > .auth-section .input-wrapper {
        display: block;
        max-width: 100%;
        margin: 0 0 .3em;
    }
    .isso-postbox > .form-wrapper > .auth-section .input-wrapper input {
        width: 100%;
    }
}

#isso-thread h4
{
    color:#d0d1d4 !important;
    margin:0 0 12px 0 !important;
    padding:0 !important;
}

.delete, .edit
{
    display:none;
}

/* Reverse root comment order */
#isso-root
{
    display: flex;
    flex-direction: column-reverse;
}

.isso-comment
{
    flex: 0;
    width: 100%;
}

svg[data-hash='6cd03b53e8c2'] /* Comment highlighting for me. This is stupid. */
{
    box-shadow:0px 0px 0px 4px #00ccff !important;
}

/* #endregion */

/* mobile */
@media only screen and (max-width: 796px) {
    html,body {
        background-image: none;
    }

    header {
        border: none;
        border-radius: 0px;
    }

    #wrapper {
        width: 100%;
        margin: 0;
    }

    #container {
        display: block;
        border: none;
        border-radius: 0px;
    }

    #left {
        box-sizing: border-box;
        float: none;
        border: none;
        border-radius: 0px;
        width: 100%;
        margin: 8px 0;
    }

    main {
        float: none;
        width: 100%;
        margin: 0;
    }

    article {
        margin-bottom: 24px;
    }

    main > article:last-of-type {
        margin-bottom: 8px;
    }

    .kpan {
        display: none;
    }

    .video-wrapper img {
        width: 100%;
        height: auto;
    }

    #left ul:not(#buttons) {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    #left ul:not(#buttons) li {
        flex: 0 0 calc((100% / 3) - 12px);
        text-align: center;
        border: 2px solid #202022;
        margin: 4px 2px;
        padding: 2px;
    }

    #left ul#contact li {
        flex: 0 0 calc((100% / 2) - 12px);
    }

    ul#buttons {
        text-align: center;
    }

    #left ul#buttons li {
        display: inline-block;
    }

    #left ul > span {
        display: block;
        width: 100%;
    }

    #left ul img[style*="float"] {
        display: none;
    }

    .mediaitem {
        width: calc(100% - 2px);
    }

    .mediaitem-type {
        display: none;
    }
}