@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
*{
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;

}

input[name="name"]{width:25%;max-width:150px;min-width:80px;}
#newthread input[type="submit"], input[type="submit"]{
    background:rgba(0,0,0,0.2);
        color:white;
    padding:5px;
    margin:4px 4px 0px 0px;
    #float:right;
}
#newthread input[type="submit"]:hover, input[type="submit"]:hover{
    background:rgba(0,0,0,0.3);
    cursor:pointer;

}
label{
    vertical-align: center;
    margin-right:.5em;
    font-size:0.85em
}

label input {
  display: none;/* <-- hide the default checkbox */
}
label span {/* <-- style the artificial checkbox */
  height: 1.1em;
  width: 1.1em;
  margin:-.2em .5em -.2em;
  border: 2px solid rgba(0,0,0,0.2);
  display: inline-block;
  vertical-align: center;
  background:white;

    margin-left:10px;
}
label span:hover, label:hover span{
    border: 2px solid rgba(0,0,0,0.1)
}
[type=checkbox]:checked + span {/* <-- style its checked state */
    background:rgba(0,0,0,0.2);
}

input[type="submit"], .button::-moz-focus-inner, #frontpage .links a::-moz-focus-inner  {
    border: 0
}
input[type="submit"]:hover, .button:hover,{
    background-color: rgba(158, 158, 158, .2)
}
input[type="submit"]:focus:not(:active), .button:focus:not(:active), .button.is-checked, #options .active {
    background-color: rgba(0, 0, 0, .12)
}
input[type="submit"]:active, .button:active{
    background-color: rgba(158, 158, 158, .4);
}
input[type="text"]{margin-left:4px;}
textarea, input[type="text"]{
    border: solid 1px #eee;
    font-family: "Open Sans", "Helvetica", "Arial", sans-serif;
    font-size:13px;
    padding:4px 8px;
}
textarea:hover, textarea:active, input[type="text"]:hover, input[type="text"]:active{
    border:solid 1px #ccc;
    z-index:200;
}

label span:hover, label:hover span{
    border: 2px solid rgba(0,0,0,0.1)
}
[type=checkbox]:checked + span {/* <-- style its checked state */
    background:rgba(0,0,0,0.2);
}

select {
   background: #f5f5f5;
   width: 200px;
   padding: 5px;
   font-size: 12px;
   border: none;
   border-radius: 0;
   height: 27px;
   }
body {
    font-family: "Open Sans", sans-serif;
    color:#0f0f0f;
    font-size:14px;
}
body#frontpage, body#subback, body#image {
    background: #E5B98D;
    max-width:1400px;
    margin:1em auto;
}
body#threadpage {
    background: #E9C49E;
}
.form .hide {
    display: none;
}

textarea {
    margin-top: 4px;
}
a {
    color: #3683C2;
    text-decoration: underline;
    cursor: pointer;
}
a:hover {
    color: #F00;
}
textarea{
    width:100%;
    max-width:550px;
}
/*frontpage*/
div.shell {
    #border: 1px outset #000;
    #padding: 0 7px 7px 7px;
    margin: 0 4.5% 1em;
    background: #fdfdfd;
    text-align:left;
}

div.shell-thread {
    margin: 1% 1%;
    background: #fdfdfd;
    width: 98%;
    display: inline-block;
    vertical-align: top;
    box-shadow: 3px 3px 4px #C0966B;
}
.columnwidth {
    max-width: 48%;
}
.grid {
    margin: .5em 4% .25em;
}
div.shell > div,
div.shell-thread > div {
    padding: 10px 20px;
    display: block;

}
#threadlist .links {
    font-weight: bold;
}
.links a,
#threadlist .thread,
#subback .thread {
    margin-right: 6px;
}

#threadmenu .form{
    width:500px;
    float:right;
        background:#F0E7CE;
    color: #686868;
    min-height:250px;
}
#threadmenu #threadlist {
    margin-right:500px;

}
#threadmenu #threadlist div div{
    height:230px;
    overflow:hidden;
}
#threadmenu #threadlist div .links{
    background:linear-gradient(to bottom, rgba(255, 255, 255, 0) 1%, rgba(255, 255, 255, 0.08) 5%, rgba(255, 255, 255, 0.28) 15%, #FFFFFF 40%) repeat scroll 0% 0% transparent;
    height:20px;
    position:relative;
    margin-top:-40px;
    padding-top:20px;
    border:none;
    text-align:center;
    -webkit-box-sizing: content-box;
       -moz-box-sizing: content-box;
            box-sizing: content-box;

}

.subject h2 {
    display: inline-block;
    margin: 0;
	  line-height: 100%;
    width:100%;
    font-size: 1.5em;
    margin-top:5px;
    font-style: unset;
    font-weight:700;
    #text-align:center;
    margin-left:0px;
    
    
}

.boardnav form[name="boardselector"] {
    display: none;
}
.boardnav .right {
    float: right;
	display: inline-block;
}
#options > div {
    display: inline-block;
    font-weight: bold;
    padding: 6px
}
#options button{
    padding:3px;
}
.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;
    margin-top:2em;
    margin-bottom:-2em;
}
.footer > div > div {
    height: 18em;
    position: relative;
}
#newthread {
    background:#F0E7CE;
    width: 1000px;
    margin-left: -4.5%;
}
#threadlist {
    flex-grow: 1 !important;
}
#threadlist > div{
    overflow:hidden;
}
#threadlist .links {
    background:#FFF;
    #border-top:double 7px #FFF;
    #background-clip: padding-box;
    box-shadow:0 -.5em .5em #FFF;
    text-align: center;
    font-weight: bold;
    padding:.5em 0 1em; 
    position: absolute;
    bottom:0;
    left: 0;
    right: 0;
}
.subject .threadpost{display:none;}
.subject a {
    color: #0f0f0f;
    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-top: 0;
    margin-bottom: 8px;
}
/*threadpage*/

#threadpage > div{
    max-width:1000px;
    background:#fdfdfd;
    margin:-22em auto 16em;
    padding:35px 1.5em;
    min-height:30em;
    position:relative;
}

#threadpage hr{
    width:100%;
        background-image: repeating-linear-gradient(125deg, #EE4C47 0px, #EE4C47 30px, transparent 30px, transparent 50px, #5CACEB 50px, #5CACEB 80px, transparent 80px, transparent 100px);
    height:14px;
	border:none !important;
    position:absolute;
    background-clip: content-box;
        bottom:.5em;
            padding-right:3em;

}
#threadpage hr:first-of-type{
top:.5em;
}
#threadpage form:before{
    content:'Write a reply!';
    font-weight:bold;
    display:block;
}
#threadpage .form{
    background:inherit;
    background-image: repeating-linear-gradient(125deg, #EE4C47 0px, #EE4C47 30px, transparent 30px, transparent 50px, #5CACEB 50px, #5CACEB 80px, transparent 80px, transparent 100px);
    padding-bottom:7px;
position:absolute;
    bottom:-15em;
    -webkit-box-shadow: 1px 1px 5px -1px rgba(50, 50, 50, 0.25);
-moz-box-shadow:    1px 1px 5px -1px rgba(50, 50, 50, 0.25);
box-shadow:         1px 1px 5px -1px rgba(50, 50, 50, 0.25);
}
#threadpage form{
    background:#fdfdfd;
    padding: 1.5em;
}

#threadpage h2 {
    margin: 8px 0;
    color: ;
	  line-height: 120%;
    font-size: 1.7em;
    font-weight: 700;
}
.posthead{
    margin:10px -2px;
    padding:0px 7px;
    background:rgba(0,0,0,0.02)
}
#frontpage .posthead, #threadpage{
    background:#F0E7CE;
    color: #686868;
    
}
.shell-thread .links{
    margin-top:1em;
}
.shell-thread div:nth-child(2) .posthead {
    overflow:hidden;
    background:none !important;
}

.post .num {
    font-weight: bold;
    #font-style:italic;
    cursor: pointer;
    float:right;
}
.post .name {
    font-weight: bold;
    color: #416D91;
}
.post .sage {color:#3683C2!important;text-decoration:underline;}
.post .sage:hover{color:#F00!important;cursor:pointer;}
.post .trip {
    color: #416D91;
}
.backlinks {
    margin: -.5em 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: absolute;
    background: #efefef;
    padding: 10px;
    border: solid 1px black;
    z-index: 100;
    left: -2000px;
}
/* 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;
    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;
    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;
        margin-top:-.5em !important;
    }
    #frontpage div.shell-thread {
        min-width: 98% !important;
        margin: 1% 1%;
    }
    .footer {
        display: block;
    }
    #threadlist,
    #newthread {
        width: 91%;
        margin: .5em 4.5%;
        float: none;
    }
    #newthread > div{
        height:initial;
    }
    #options #layoutoptions {
        display: none;
    }
}
@media only screen and (max-width: 480px) {
    body {
        font-size: 12px;
        line-height: 1.1em;
    }
    .boardnav {
        text-align: center;
    }
    .boardnav .right {
        float: none;
    }
    .boardnav form[name="boardselector"] {
        display: inline-block !important;
        margin: 0px 15px 4px;
        font-size: 0.8em;
    }
    .boardbar {
        display: none !important;
    }
    @font-face {
        font-family: "Mona";
        src: url(mona.woff) format("woff");
    }
    .shell-thread .num {
        padding: 3px;
        margin: -3px;
    }
    .shell-thread > div{
        padding:.5em 1em !important;
    }
    input[name="name"] {
        max-width:100px;
        width:40%;
        min-width:50px;
    }
}
.hide {
    display: none !important;
}