body{
    background: #333333 url('/images/bg-lines.png') repeat top left;
    font-family: Verdana, Geneva, Lucida, 'Lucida Grande', Arial, Helvetica, sans-serif;
}
.bodyframe{
    background-color: #666666;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}
.threadmessage{
    font-size: 10pt;
    background-color: #CCCCCC;
    margin-bottom: 10px;
    border: 2px solid #660011;
    /*overflow-x: auto;*/
}
.hfooter{
    text-align: right;
    font-weight: bold;
    padding: 3px 5px;
    max-width: 1230px;
    margin: auto;
}
footer{
    text-align: center;
    font-size: 8pt;
    color: #fff;
}
a, .redtext{
    color: #990011;
}
a:hover{
    color: #fff;
}
.banner{
    text-align: center;
    margin: 0;
    padding-bottom: 0;
}
.banner img{
    vertical-align: middle;
    max-width: 100%;
}
h2{
    margin: 8px 5px;
}
h4{
    background-color: #660011;
    color: #fff;
    margin: 0;
    font-weight: normal;
    padding: 0 5px;
    font-size: 9pt;
}
h4 a, h4 a:hover{
    color: #fff;
}
h4 > a{
    text-decoration: none;
}
.username{
    font-size: 11pt;
    font-weight: bold;

}
.alt2{
    background-color: #BBBBBB;
}
.thead{ /*spoilers*/
    background-color: #990011;
    color: #fff;
}
.messagebody{
    padding: 0 5px;
    overflow-x: auto;
}
.messagebody img{
    max-width: 100%;
    vertical-align: bottom;
}
.messagefooter{
    background-color: #bbbbbb;
    padding: 0 5px;
    border-top: 1px solid #660011;
}
.vtable{
    margin: 0 5px;
}
.vtable th{
    text-align: left;
}
.attachments{
    background-color: #BBBBBB;
    border: 1px inset #000;
    padding: 5px;
    margin-bottom: 10px;
}
.attachments legend{
    background-color: #990011;
    color: #fff;
    border: 1px inset #660011;

}
.attachments .attachmentimg{
    display: inline-block;
    margin: 0 5px 5px 0;
}
.attachment{
    display: inline;
}
.attachments .attachment{
    display: block;
    margin: 3px 0;
}
.atticon{
    vertical-align: bottom;
}
.polltable{
    background-color: #660011;
    width: 100%;
    margin: 5px 0;
}
.polltable td{
    background-color: #CCCCCC;
}
.polltable td:nth-child(even){
    background-color: #BBBBBB;
}
.pollnumber{
    text-align: right;
    min-width: 30px;
    width: 80px;
}
.pollbar {
    max-width: 18vw;
    width: 200px;
}
.pollbar div{
    height: 10px;
    border: 2px outset;
}

.albumpic{
    display: inline-block;
    text-align: center;
    margin: 5px;
    padding: 5px;
    background-color: #BBBBBB;
    border: 1px solid #000;
    vertical-align: middle;
}

.messageflex{
    overflow: hidden;
}
.userinfo{
    float: left;
    padding: 5px;
    font-size: 10pt;
    width: 100px;
    text-align: center;
    border-right: 1px solid #660011;
    border-bottom: 1px solid #660011;
    margin: 0 5px 5px 0;
}
.userinfo img{
    max-width: 100px;
}

/* thread list */
.threadlist{
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 1px;
    background-color: #000;
    margin-bottom: 10px;
}
.threadrowhead, .threadgrouprowhead{
    display: table-row;
}
.threadrowhead > div{
    display: table-cell;
    background-color: #660011;
    color: #fff;
    padding: 2px 4px;
    font-weight: bold;
    font-size: 8pt;
    vertical-align: middle;
}
.threadgrouprowhead > div{
    display: table-cell;
    background-color: #AA0011;
    color: #fff;
    padding: 2px 4px;
    font-weight: bold;
    font-size: 12pt;
    vertical-align: middle;
}
.threadrow{
    display: table-row;
}
.threadrow > div{
    display: table-cell;
    background-color: #CCCCCC;
    padding: 5px 4px;
    font-size: 10pt;
    vertical-align: middle;
}
.threadrow > div:nth-child(odd){
    background-color: #BBBBBB;
}
.threadrow > div.threadcellicon{
    text-align: center;
    white-space: nowrap;
    padding: 2px 4px;
}
.threadcellicon img{
    vertical-align: middle;
}
.threadcelltitle{
    width: 99%;
    line-height: 1;
}
.threadcellwho{
    color: inherit;
    text-decoration: none;
    font-size: 8pt;
}
.threadcelllast{
    white-space: nowrap;
    line-height: 1;
}
.threadcellr{
    text-align: right;
    white-space: nowrap;
}
.lastpostermobile{
    display: none;
}
.smallfont{
    font-size: 8pt;
}
.paginator{
    text-align: right;
    font-size: 8pt;
    margin-bottom: 10px;
}
.paginator a, .paginator b{
    display: inline-block;
    text-decoration: none;
    background-color: #CCCCCC;
    border: 1px solid #660011;
    text-align: center;
    padding: 2px 4px;
}
.pageheader{
    display: inline-block;
    background-color: #333333;
    color: #FFFFFF;
    padding: 2px 3px;
    border: 1px solid #660011;
}

/* Inline HTML fix */
pre.alt2{
    width: unset !important;
}


/* Mobile and small screen changes */
@media (max-width: 600px){
    .threadrowhead > div.lastpostmobilehide, .threadrow > div.threadcelllast{
        display: none;
    }
    .lastpostermobile{
        display: inline;
    }
    .paginator{
        font-size: 10pt;
    }
    .paginator a, .paginator b{
        padding: 3px 8px;
    }
    .threadcelltitle > a:not(.threadcellwho){
        font-size: 11pt;
        line-height: 1.3;
    }
}

/* Flexbox overrides */
@supports (display: flex){
    .messageflex{
        display: flex;
        overflow: visible;
    }
    .userinfo{
        margin: 0;
        flex-shrink: 0;
        border-bottom: none;
        float: none;
    }
    .messagebody{
        width: calc(100% - 10px);
    }

    /* Mobile + flexbox */
    @media (max-width: 600px){
        .messageflex{
            flex-direction: column;
        }
        .userinfo{
            text-align: left;
            width: 100%;
            padding: 5px 0;
            border-right: none;
            border-bottom: 1px solid #660011;
        }
        .userinfo img{
            padding-left: 5px;
            float: left;
        }
        .userinfo p{
            padding-left: 5px;
            float: left;
        }
    }
}

