* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    font-size: 13pt;
    font-family:Mona, 'MS PGothic', sans-serif;
    line-height:1em;

}
.threadpost{
    display:none;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure,
ol,
ul {
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
}
.post a:visited{
    color:purple;
}
button {
    overflow: visible font: inherit;
    -webkit-font-smoothing: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    padding: 3px 6px;
    transition: .15s;
    color:inherit;
}
::-moz-focus-inner {
    padding: 0;
    border: 0;
}
:focus {
    outline: 0;
}
img {
    max-width: 100%;
    height: auto;
    border: 0;
}
body#frontpage,
body#subback,
body#image {
    background: #C5AD99;
    background-image: url(data:image/gif;base64,R0lGODdhPAA8AJkAANCznMWtmbOektzApiwAAAAAPAA8AAAC/5SPqcvtCJ6c1IUAsgZ48wuG4qV1njYMZxmkbjYGQpipJeDmuo7zdYoTRSwiRGuFg3lio4HpswF9SJzhobpMSXsZAVQoS6KcpoH3MsPIZsAtVWAbDoVYziuZ3nhhnavWVASVFkYVNdbixKbH0mXQQ8I0FdERVnOi4tXWcqFVZXKAqAbJNEoTdUT28vSlZvUoFRmpxIdh87LXw1Z4cAc5wzFIulIbt+FS6MELVBJsMPK7utqTAmfrbAPoqAlCVknaOkWsclej7VzlRyYJAhc+slTllDNFbZBIq+10I3WGJks77cc4bCSgAcsUp1SESd9+hRv4Q9wiT/aWwWIHMEQaXP/GyNn52EEfjIrYoGGkpVHaGEuF2kTZiFASvm8qp+2YR4xlophqHEKpcwlFOWjO0IB6cGRQMBlMm86oAFXBnzVRHcwbs2xFDkQ8lt28aSzMPHWFCHHNKkaDo44etk5LM7DerFJ/6hSTM6xSWrUkgGDieOIIl46IgNJxl7JwrnY34tzViuQiw2c1+k662wmoVhqC3yD29YOPLnhIbqBE9hOl0tBmLht6VDqy5NPPOKmQYabFRko+I7OAtEQYoTZeTAaLPQslI3d8RHPWzXiQpc3DlnsD468Wy+g1p58S9WTL7yItG5E5DgPtxOa/v7u5sgSOP62ARWr+GFimUcEsurX/wraQcslVFxgVIdhSgg243GZfW7EBAo+BCwqFW3L+hSYGf0pYhAsT9ghESFo7CHRXNIq5ch86cCxw0FI0ZXdOEQlQtQCNMjqjwIvi6YgaSV/9qENIQA75VXCzxdBIgJ005NBF2rBz23MxKKVMN/14otYezXyYR4bAuccOfFFK80lZfWDAESAGAhQOAlvpFU1yKUmnJikuUjXNc5J0GSZT0iUE3gf9+IejRwO+duYay+3DzkWBIPSYkZHYc1h7NLGB0IEjPahHP0Zl9A4TrW2TJVmBYNTneJfSkGmKoi1ayjmqIjlZcaGwFxxtbjB1ymd2ihVprgaWEqqHUzZajSYFKYq3J7FgZneqn1zAgtxIomQEqilTFjcYcibimlodUjrKrXqyOWqZFAUAADs=);
    max-width: 1600px;
    margin: 1em auto;
}
body#threadpage {
    background: #EFEFEF;
    margin: .5em;
}
textarea {
    margin-top: 4px;
    position: relative;
}
#frontpage textarea{
    width: 100%;
}
#frontpage form{
        max-width: 550px; 
}
textarea:focus,
input:focus {
    z-index: 100;
}
a {
    color: #00F;
    text-decoration: underline;
    cursor: pointer;
    transition: .15s;
}
a:hover {
    color: #F00;
}
label {
    display: inline-block;
}
/*frontpage*/

div.shell {
    border: 1px outset #FFF;
    padding: 0 7px 7px 7px;
    margin: 1em 2.5% 0 2.5%;
    background: #CCFFCC;
    text-align: left;

}
div.shell-thread {
    border: 1px outset #FFF;
    padding: 0 7px 7px 7px;
    background: #EFEFEF;
    width: 99%;
    display: inline-block;
    margin: .5% .5%;
    vertical-align: top;
}
div.shell > div,
div.shell-thread > div {
    border: 1px inset #FFF;
    padding: 7px;
    margin-top: 7px;
    display: block;
    position:relative;
}
.columnwidth {
    max-width: 49%;
    margin: 0.5% 0.5%;
}
.grid {
    margin: .5em 2% .25em;
}
.boardnav {
    overflow:auto;
}
.boardnav img{
    margin:-5px 2px -2px;
}

.boardnav form[name="boardselector"] {
    display: none;
}
.boardnav .right {
    font-weight:bold;
    float: right;
    display: inline-block;
}
#options div {
    display: inline-block;
    font-weight: bold;
    padding: 6px
}
.shell #options:target {
    display: block !important;
}
.button.active {
    background-color: inherit;
}
.links a,
#threadlist .thread,
#subback .thread {
    margin-right: 6px;
    margin-top: 6px;
}
.footer {
    display: flex;
}
.footer > div > div {
    height: 13em;
    position: relative;
}
#newthread {
    min-width: 520px;
    margin-left: -2%;
}
#threadlist {
    flex-grow: 1 !important;
}
#threadlist > div{
    overflow:hidden;
}
#threadlist .links {
    background:#CCFFCC;
    #border-top:double 7px #CCFFCC;
    #background-clip: padding-box;
    box-shadow:0 -7px 7px #CCFFCC;
    text-align: center;
    font-weight: bold;
    padding:.5em 0 7px; 
    position: absolute;
    bottom:0;
    left: 0;
    right: 0;
}
#frontpage .quickscroll{
    position:absolute;
    right:10px;
    top:-20px;
    padding-top:26px;
    z-index:5;
}

.subject h2 {
    display: inline;
    line-height: 120%;
    font-size: 1.5em;
}
.subject a {
    color: #F00;
    text-decoration: none;
}

.subject a:hover {
    text-decoration: underline;
}
.subject .threadpost {
    font-weight: bold;
}
.recent {
    margin: 0.5em 0 0.5em 0;
}
.form {
    margin-top: 1em;
}
.form h2 {
    margin-bottom: 8px;
}
/*threadpage*/

#threadpage h2 {
    margin: 8px 0;
    color: #F00;
    line-height: 120%;
    font-size: 1.3em;
    font-weight: normal;
}
.post .num {
    font-weight: bold;
    cursor: pointer;
}
.post .name {
    font-weight: bold;
    color: green;
}
.post .sage {
    color: #00C!important;
    text-decoration: underline;
}
.post .sage:hover {
    color: #F00!important;
    cursor: pointer;
}
.post .trip {
    color: green;
}
.backlinks {
    margin: 0px 0px 0px 32px;
    font-size: small;
    opacity: 0.8;
}
.backlinks a {
    text-decoration: none;
}
.backlinks a:hover {
    text-decoration: underline;
}
.comment,
.preview {
    margin: 6px 0px 6px 16px;
    padding: 4px 0px 4px 16px;
    overflow: auto;
}
.preview {
    border-left: solid 2px #666;
    background: #EFEFEF;
}
#hover {
    position: fixed;
    background: #efefef;
    padding: 7px;
    border: solid 1px rgba(0,0,0,0.9);
    z-index: 100;
    max-width:600px;
    left: -2000px;
    pointer-events: none;
}
/* Subback */

#subback a {
    color: black;
}
#subback h1 {
    text-align: center;
    margin: 10px;
}
#subback table {
    padding: 10px;
}
#subback th:last-child {
    text-align: center;
}
#subback td:last-child {
    font-size: 0.75em;
    white-space: nowrap;
}
/* Markup style */

:lang(ja) {
    
    font-family: Mona, 'MS PGothic';
    font-size: 12pt;
    white-space: pre;
}

code {
    display: inline-block;
    white-space: pre;
    overflow: auto;
    overflow-y: hidden;
    width: 100%;
}
blockquote {
    border-left: solid 2px #666;
    padding: 0px 0px 0px 10px;
    margin-left: 0px;
    display: block;
}
blockquote:hover {
    background: #f0f0e0;
}
.spoiler {
    display: inline-block;
    background: #000;
    color: #000;
    padding: 1px 1px;
    margin: -1px 0px;
}
.spoiler:hover {
    color: #FFF;
}
/*Image Uploader*/

#image .grid {
    text-align: center;
}
#image #upload {
    margin: 5px;
    min-height: 50px;
}
#image .admin {
    float: right;
    z-index:20;
    border: none;
}
.thumb {
    display: inline-block;
    max-width: 230px;
}
.thumb .image {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    width: 215px;
    height: 200px;
}
.thumb .info {
    display: block;
    text-align: center;
}
/*Responsive elements */

@media screen and (max-width: 1080px) {
    #newthread {
        width: 400px;
        float: right;
    }
    #frontpage div.shell-thread {
        min-width: 99% !important;
        margin: .5em .5%;
    }
    .footer {
        display: block;
    }
    #threadlist,
    #newthread {
        width: 95%;
        margin: .5em 2.5%;
        float: none;
        min-width:initial;
    }
    #newthread > div{
        height:initial;
    }
    #options #layoutoptions {
        display: none;
    }
}
@media only screen and (max-width: 480px) {
    body {
        font-size: 10pt;
        line-height: 1.1em;
    }
    body#frontpage{
        margin:0 .3em .6em !important;
    }
    :lang(ja) {
    font-size: 10pt;
}
    .boardnav {
        text-align: center;
    }
    .boardnav .right {
        float: none;
    }
    .boardnav select {
        width:180px;
    }
    .boardnav form[name="boardselector"] {
        display: inline-block !important;
        margin: 0px 7px 4px;
        font-size: 0.8em;
    }
    .boardbar {
        display: none !important;
    }
    .shell-thread .num {
        padding: 3px;
        margin: -3px;
    }
    input[name="name"] {
        max-width:100px;
        width:40%;
        min-width:50px;
    }
    .comment{
        margin-left:4px;
    }
.shell, .grid, .shell-thread{
    margin:0.3em 0 !important;
    width:100% !important;
}
}
div.header:nth-child(3){
    display:none;
}
.shell.header{
    margin:-.5em 2.5% .5em;
}
.header h1{
    font-size:1.5em;
    font-weight: normal;
}
.header img{
    margin-bottom:.25em;
}
#rules{
padding:14px;
}
.hide {
    display: none !important;
}
